示例#1
0
        public void Executing_command_should_executure_correct_handler_with_it()
        {
            var theCommand = new CommandWithExecutor();

            ExecutorForCommandWithExecutor.Replay();
            TheService.Execute(theCommand);

            ExecutorForCommandWithExecutor.AssertWasCalled(e => e.Execute(theCommand));
        }
示例#2
0
        public void Executing_command_should_executure_correct_handler_with_it()
        {
            var theCommand = new CommandWithExecutor();

            ExecutorForCommandWithExecutor.Replay();
            TheService.Execute(theCommand);

            ExecutorForCommandWithExecutor.AssertWasCalled(e => e.Execute(theCommand));
        }