public void Returns_False_If_AppSetting_Does_Not_Exist() { var hystrixCommandIdentifier = new HystrixCommandIdentifier("NonExistingGroup", "NonExistingCommand"); var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options); // Act bool value = hystrixConfigurationService.GetCircuitBreakerForcedClosed(); Assert.Equal(false, value); }
public void Returns_GetCircuitBreakerForcedClosed_AppSetting_As_Boolean_For_GroupA_And_DependencyX() { var hystrixCommandIdentifier = new HystrixCommandIdentifier("GroupA", "DependencyX"); var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options); // Act bool value = hystrixConfigurationService.GetCircuitBreakerForcedClosed(); Assert.Equal(true, value); }