示例#1
0
        public void Process(SubmitLrap1Command message)
        {
            var response = _commsService.Send(message);

            if (response == ResponseType.None)
            {
                _messageSender.Send(message);
            }
        }
示例#2
0
        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);
        }