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

            this.setter = setter;
        }
 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);
 }
Exemple #5
0
 public HystrixCommandSetter AndCommandPropertiesDefaults(HystrixCommandPropertiesSetter commandPropertiesDefaults)
 {
     CommandPropertiesDefaults = commandPropertiesDefaults;
     return(this);
 }
 public string GetCommandPropertiesCacheKey(HystrixCommandKey commandKey, HystrixCommandPropertiesSetter setter)
 {
     return null;
 }
 public HystrixCommandSetter AndCommandPropertiesDefaults(HystrixCommandPropertiesSetter commandPropertiesDefaults)
 {
     CommandPropertiesDefaults = commandPropertiesDefaults;
     return this;
 }