Beispiel #1
0
            public void Returns_1000_If_AppSetting_Does_Not_Exist()
            {
                var hystrixCommandIdentifier    = new HystrixCommandIdentifier("NonExistingGroup", "NonExistingCommand");
                var hystrixConfigurationService = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options);

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

                Assert.Equal(1000, value);
            }
Beispiel #2
0
            public void Returns_CommandTimeoutInMilliseconds_AppSetting_As_Integer_For_GroupA_And_DependencyX()
            {
                var hystrixCommandIdentifier = new HystrixCommandIdentifier("GroupA", "DependencyX");
                var sut = new HystrixLocalConfigurationService(hystrixCommandIdentifier, options);

                // Act
                int result = sut.GetCommandTimeoutInMilliseconds();

                Assert.Equal(1500, result);
            }