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 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 void DiscoveryClient_Should_BeNull()
        {
            var plugin = new ConsulFeature();

            plugin.Settings.GetDiscoveryClient().Should().BeNull();
        }
        public void ServiceChecks_Should_Be_Empty()
        {
            var plugin = new ConsulFeature();

            plugin.Settings.GetServiceChecks().Should().BeEmpty();
        }
Exemple #5
0
 public ConsulTests(AppHostFixture fixture)
 {
     this.fixture = fixture;
     this.host    = fixture.Host;
     this.plugin  = host.GetPlugin <ConsulFeature>();
 }
        public void ServiceChecks_Should_Be_Empty()
        {
            var plugin = new ConsulFeature();

            plugin.Settings.GetServiceChecks().Should().BeEmpty();
        }
        public void DiscoveryClient_Should_BeNull()
        {
            var plugin = new ConsulFeature();

            plugin.Settings.GetDiscoveryClient().Should().BeNull();
        }