public Test_ServiceMap(ComposedFixture fixture) { this.composedFixture = fixture; this.serviceMap = CreateServiceMap(); composedFixture.Start( () => { composedFixture.AddServiceFixture <WebService>("web-service", new KubeServiceFixture <WebService>(), () => CreateWebService()); composedFixture.AddServiceFixture <RelayService>("relay-service", new KubeServiceFixture <RelayService>(), () => CreateRelayService()); }); this.webServiceFixture = (KubeServiceFixture <WebService>)composedFixture["web-service"]; this.relayServiceFixture = (KubeServiceFixture <RelayService>)composedFixture["relay-service"]; Assert.True(webServiceFixture.IsRunning); Assert.True(relayServiceFixture.IsRunning); }
public Test_QueueService(ComposedFixture fixture) { this.composedFixture = fixture; composedFixture.Start( () => { composedFixture.AddFixture("nats", new NatsFixture(), natsFixture => { natsFixture.StartAsComposed(); }); composedFixture.AddServiceFixture("queue-service", new KubeServiceFixture <QueueService>(), () => CreateQueueService()); }); this.natsFixture = (NatsFixture)composedFixture["nats"]; this.queueServiceFixture = (KubeServiceFixture <QueueService>)composedFixture["queue-service"]; }
public Test_WebService(KubeServiceFixture <WebService> fixture) { fixture.Start(() => CreateService()); this.fixture = fixture; }
public Test_ComplexService(KubeServiceFixture <ComplexService> fixture) { fixture.Start(() => CreateService()); this.fixture = fixture; }