public void it_is_submitted_to_the_Edrs_attachment_service()
 {
     _sut.Send(_lrap1AttachmentSubmission);
     A.CallTo(() => _fakeEdrsCommunicator.Submit(A <Lrap1AttachmentRequest>
                                                 .That.Matches(r => r.Payload == _lrap1AttachmentSubmission.Payload &&
                                                               r.ApplicationId == _lrap1AttachmentSubmission.ApplicationId)))
     .MustHaveHappened(Repeated.Exactly.Once);
 }
 public void without_a_ApplicationId_throws()
 {
     _lrap1Submission.ApplicationId = null;
     Assert.Throws <ArgumentException>(() => _sut.Send(_lrap1Submission));
 }