Beispiel #1
0
        public void SetUp()
        {
            environment = "environment";
            application = "application";

            serviceLocator = Substitute.For <IServiceLocator>();
            serviceLocator.Locate(environment, application).Returns(_ => topology);

            provider = new ServiceDiscoveryClusterProvider(serviceLocator, environment, application, log);

            blacklist = null;
        }
Beispiel #2
0
        public void SetUp()
        {
            environment = "environment";
            application = "application";

            serviceLocator = Substitute.For <IServiceLocator>();
            serviceLocator.Locate(environment, application).Returns(_ => topology);

            var settings = new ServiceDiscoveryClusterProviderSettings {
                ServiceTopologyTransform = new NeverForgetReplicasTransform()
            };

            provider = new ServiceDiscoveryClusterProvider(serviceLocator, environment, application, settings, log);
        }