public void ShouldExecuteCommand_WhenModalStateIsValid()
        {
            var result = ArrangeAndAct_WhenModelStateIsValid();

            _commandExecutor
            .AssertWasCalled(x => x.ExecuteCommand(Arg <DummyExecuteCommand> .Is.Anything));
        }
Example #2
0
 public void it_should_call_the_handler()
 {
     _handler.AssertWasCalled(h => h.Execute(_testCommand));
 }
Example #3
0
 public void POST_ShouldExecuteATestWhenCanTryUpdateModelReturnsTrue()
 {
     PostArrangeExecute();
     _commandExecutor.AssertWasCalled(x => x.ExecuteCommand(Arg <DummyReadExecuteCommand> .Is.Anything));
 }