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(); }
public ConsulTests(AppHostFixture fixture) { this.fixture = fixture; this.host = fixture.Host; this.plugin = host.GetPlugin <ConsulFeature>(); }