public void Process(SubmitLrap1Command message) { var response = _commsService.Send(message); if (response == ResponseType.None) { _messageSender.Send(message); } }
public void the_LRAP1Attachment_is_submitted_to_the_AgentGateway(ResponseType responseType) { //Arrange A.CallTo(() => _fakeCommsService.Send(_command)).Returns(responseType); //Act _sut.Process(_command); //Assert A.CallTo(() => _fakeCommsService.Send(A <SubmitLrap1AttachmentCommand> .Ignored)).MustHaveHappened(Repeated.Exactly.Once); }