Exemplo n.º 1
0
        public void All_interceptors_should_be_called_after_execution()
        {
            Interceptor1.Replay();
            Interceptor2.Replay();
            TheService.Execute(new CommandWithExecutor());

            Interceptor1.AssertWasCalled(i => i.OnAfterExecution(null), options => options.IgnoreArguments());
            Interceptor2.AssertWasCalled(i => i.OnAfterExecution(null), options => options.IgnoreArguments());
        }