public void When_Sending_A_Command_That_Passes_Policy_Check() { _commandProcessor.Send(_myCommand); //_should_send_the_command_to_the_command_handler MyDoesNotFailPolicyHandler.Shouldreceive(_myCommand).Should().BeTrue(); //_should_not_retry _retryCount.Should().Be(0); }
public void When_Sending_A_Command_That_Passes_Policy_Check() { _commandProcessor.Send(_myCommand); //_should_send_the_command_to_the_command_handler Assert.True(MyDoesNotFailPolicyHandler.Shouldreceive(_myCommand)); //_should_not_retry Assert.AreEqual(0, _retryCount); }