public IHystrixThreadPoolProperties GetThreadPoolProperties(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolPropertiesSetter setter)
 {
     if (setter == null)
     {
         setter = UnitTestSetterFactory.GetThreadPoolPropertiesSetter();
     }
     return(new MockingHystrixThreadPoolProperties(setter));
 }
예제 #2
0
        public TestCommandBuilder()
        {
            TestCircuitBreaker cb = new TestCircuitBreaker();

            Owner                        = CommandGroupForUnitTest.OwnerOne;
            DependencyKey                = null;
            ThreadPoolKey                = null;
            CircuitBreaker               = cb;
            ThreadPool                   = null;
            CommandPropertiesDefaults    = UnitTestSetterFactory.GetCommandPropertiesSetter();
            ThreadPoolPropertiesDefaults = UnitTestSetterFactory.GetThreadPoolPropertiesSetter();
            Metrics                      = cb.Metrics;
            FallbackSemaphore            = null;
            ExecutionSemaphore           = null;
            ExecutionHook                = new TestExecutionHook();
        }