This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
namespace Tests.Helpers | |
{ | |
/// <summary> | |
/// Assists working with test files. | |
/// </summary> | |
/// <remarks>By default this class assumes your test files will be located |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ Binding ] | |
public class RegistrationSteps | |
{ | |
private RegistrationId _regId; | |
[ Given( @"account registered" ) ] | |
public void GivenAccountRegistered( RegistrationInfo regInfo ) | |
{ | |
var regId = new RegistrationId( Guid.NewGuid() ); | |
Sp.SendToCore( new CreateRegistration( regId, regInfo ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* /kb4/.* { | |
rewrite ^/kb4/(.*) /$1 break; | |
proxy_pass http://127.0.0.1:5601; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_send_timeout 600s; | |
proxy_read_timeout 600s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func f(c chan func() (int, string)) { | |
c <- (func() (int, string) { return 0, "s" }) | |
} | |
func main() { | |
c := make(chan func() (int, string)) |