Esempio n. 1
0
            public void Returns_5000_If_AppSetting_Does_Not_Exist()
            {
                var hystrixCommandIdentifier    = new HystrixCommandIdentifier("NonExistingGroup", "NonExistingCommand");
                var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options);

                // Act
                int value = hystrixConfigurationService.GetCircuitBreakerSleepWindowInMilliseconds();

                Assert.Equal(5000, value);
            }
Esempio n. 2
0
            public void Returns_CircuitBreakerSleepWindowInMilliseconds_AppSetting_As_Integer_For_GroupA_And_DependencyX()
            {
                var hystrixCommandIdentifier    = new HystrixCommandIdentifier("GroupA", "DependencyX");
                var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options);

                // Act
                int value = hystrixConfigurationService.GetCircuitBreakerSleepWindowInMilliseconds();

                Assert.Equal(6000, value);
            }