public RequestCorrelationFeatureTests(AppHostFixture fixture)
 {
     appHost   = fixture.AppHost;
     generator = A.Fake <IIdentityGenerator>();
     A.CallTo(() => generator.GenerateIdentity()).Returns(newId);
     feature = new RequestCorrelationFeature {
         IdentityGenerator = generator
     };
 }
        public HealthCheckServiceTests(AppHostFixture fixture)
        {
            this.fixture = fixture;
            this.fixture.Host.Container.RegisterAutoWired<HealthCheckService>();
            consulFeature = fixture.Host.GetPlugin<ConsulFeature>();

            var mockHttpRequest = new MockHttpRequest("Heartbeat", "GET", "json", "heartbeat", null, null, null);

            service = new HealthCheckService { Request = mockHttpRequest };
        }
 public ServiceGatewayFactoryBaseDecoratorTests(AppHostFixture fixture)
 {
     appHost   = fixture.AppHost;
     decorated = A.Fake <ServiceGatewayFactoryBase>();
     gateway   = new ServiceGatewayFactoryBaseDecorator(HeaderName, decorated);
 }
 public HostHealthCheckTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
 }
Beispiel #5
0
 public ConsulAppSettingsTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
     appSettings  = new ConsulAppSettings(KeySpecificity.LiteralKey);
 }
 public GatewayServiceDiscoveryExceptionResolverTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
 }
 public RequestExtensionsTests(AppHostFixture fixture)
 {
     appHost = fixture.AppHost;
 }
 public ConsulClientTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
 }
 public ConsulFeatureTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
 }
Beispiel #10
0
 public KeyUtilitiesTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
 }