Esempio n. 1
0
        public void ShouldRequestContinue_ReturnsFalse_IfPlaybookNotInConfig()
        {
            var mockConfig = new MicroservicesConfig();
            var mockShortCircuitImplementation = new GetGlobalActionsShortCircuit(mockConfig);

            var result = mockShortCircuitImplementation.ShouldRequestContinue(mockConfig);

            Assert.AreEqual(result, false);
        }
Esempio n. 2
0
        public void ShouldRequestContinue__Returns_False_If_Playbook_Not_In_Config()
        {
            var configProps = new Dictionary <string, string>();
            var mockConfig  = new MockConfig(configProps);
            var mockShortCircuitImplementation = new GetGlobalActionsShortCircuit(mockConfig);

            var result = mockShortCircuitImplementation.ShouldRequestContinue(mockConfig);

            Assert.AreEqual(result, false);
        }
Esempio n. 3
0
 private static void AddMediatRPipelineBehavior(this IServiceCollection services)
 {
     GetEventTypesShortCircuit.RegisterMe(services);
     GetEventTypeShortCircuit.RegisterMe(services);
     GetGlobalActionsShortCircuit.RegisterMe(services);
 }