public IHystrixThreadPoolProperties GetThreadPoolProperties(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolPropertiesSetter setter) { if (setter == null) { setter = UnitTestSetterFactory.GetThreadPoolPropertiesSetter(); } return(new MockingHystrixThreadPoolProperties(setter)); }
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(); }