Ejemplo n.º 1
0
        public void should_return_PollingConsulServiceDiscoveryProvider()
        {
            var stopsPollerFromPolling = 10000;
            var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "", 1, "", "", stopsPollerFromPolling), "");

            provider.ShouldBeOfType <PollConsul>();
        }
Ejemplo n.º 2
0
        public void should_return_ConsulServiceDiscoveryProvider()
        {
            var reRoute = new DownstreamReRouteBuilder()
                          .WithServiceName("")
                          .Build();

            var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("", "", 1, "", "", 1), reRoute);

            provider.ShouldBeOfType <Consul>();
        }
Ejemplo n.º 3
0
        public void should_return_PollingConsulServiceDiscoveryProvider()
        {
            var stopsPollerFromPolling = 10000;

            var reRoute = new DownstreamReRouteBuilder()
                          .WithServiceName("")
                          .Build();

            var provider     = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "", 1, "", "", stopsPollerFromPolling), reRoute);
            var pollProvider = provider as PollConsul;

            pollProvider.ShouldNotBeNull();
            pollProvider.Dispose();
        }
Ejemplo n.º 4
0
        public void should_return_ConsulServiceDiscoveryProvider()
        {
            var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("", "", 1, "", "", 1), "");

            provider.ShouldBeOfType <Consul>();
        }