public void Returns_6_If_AppSetting_Does_Not_Exist() { var hystrixCommandIdentifier = new HystrixCommandIdentifier("NonExistingGroup", "NonExistingCommand"); var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options); // Act int value = hystrixConfigurationService.GetMetricsRollingPercentileWindowBuckets(); Assert.Equal(6, value); }
public void Returns_MetricsRollingPercentileWindowBuckets_AppSetting_As_Integer_For_GroupA_And_DependencyX() { var hystrixCommandIdentifier = new HystrixCommandIdentifier("GroupA", "DependencyX"); var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options); // Act int value = hystrixConfigurationService.GetMetricsRollingPercentileWindowBuckets(); Assert.Equal(3000, value); }