Beispiel #1
0
        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);
        }
Beispiel #2
0
        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"];
        }
Beispiel #3
0
        public Test_WebService(KubeServiceFixture <WebService> fixture)
        {
            fixture.Start(() => CreateService());

            this.fixture = fixture;
        }
Beispiel #4
0
        public Test_ComplexService(KubeServiceFixture <ComplexService> fixture)
        {
            fixture.Start(() => CreateService());

            this.fixture = fixture;
        }