public MockingHystrixCommandProperties(HystrixCommandPropertiesSetter setter)
        {
            if (setter == null)
                throw new ArgumentNullException("setter");

            this.setter = setter;
        }
Exemplo n.º 2
0
 public IHystrixCommandProperties GetCommandProperties(HystrixCommandKey commandKey, HystrixCommandPropertiesSetter setter)
 {
     if (setter == null)
     {
         setter = UnitTestSetterFactory.GetCommandPropertiesSetter();
     }
     return new MockingHystrixCommandProperties(setter);
 }
 private static IHystrixCircuitBreaker GetCircuitBreaker(HystrixCommandKey key, HystrixCommandGroupKey commandGroup, HystrixCommandMetrics metrics, HystrixCommandPropertiesSetter properties)
 {
     return new HystrixCircuitBreakerImpl(new MockingHystrixCommandProperties(properties), metrics);
 }
 internal static HystrixCommandMetrics GetMetrics(HystrixCommandPropertiesSetter properties)
 {
     return new HystrixCommandMetrics(CommandKeyForUnitTest.KeyOne, CommandGroupForUnitTest.OwnerOne, new MockingHystrixCommandProperties(properties), HystrixEventNotifierDefault.Instance);
 }
Exemplo n.º 5
0
 public HystrixCommandSetter AndCommandPropertiesDefaults(HystrixCommandPropertiesSetter commandPropertiesDefaults)
 {
     CommandPropertiesDefaults = commandPropertiesDefaults;
     return(this);
 }
Exemplo n.º 6
0
 public string GetCommandPropertiesCacheKey(HystrixCommandKey commandKey, HystrixCommandPropertiesSetter setter)
 {
     return null;
 }
Exemplo n.º 7
0
 public HystrixCommandSetter AndCommandPropertiesDefaults(HystrixCommandPropertiesSetter commandPropertiesDefaults)
 {
     CommandPropertiesDefaults = commandPropertiesDefaults;
     return this;
 }