public Lrap1Response Submit(Lrap1AttachmentRequest request) { EdrsAttachmentService.newAttachmentRequest webRequest; webRequest = _objectSerializer.XmlDeserializeFromString <EdrsAttachmentService.newAttachmentRequest>(request.Payload); webRequest.arg0.ApplicationMessageId = request.ApplicationId; return(RequestSender.Send(webRequest, request.Username, request.Password)); }
public When_an_Lrap1_attachment_is_submitted() { //Arrange _fakeObjectSerializer = A.Fake <IObjectSerializer>(); _fakeRequestSender = A.Fake <IRequestSender>(); _lrap1AttachmentRequest = new Lrap1AttachmentRequest() { Payload = "payload data" }; _sut = new EdrsCommunicator(_fakeObjectSerializer); _sut.RequestSender = _fakeRequestSender; }