Beispiel #1
0
        public void AddPollyPolicies_ShouldRegisterCircuitBreakerManagerAsSingleton()
        {
            var serviceCollection = new ServiceCollectionImpl();
            var dict = new Dictionary <string, ICircuitBreakerPolicy> {
                { "Test", GetCircuitBreakerPolicy() }
            };

            serviceCollection.AddPollyPolicies(dict);

            AssertManagerRegistered(serviceCollection);
        }