public Lrap1Response Submit(Lrap1Request request)
        {
            EdrsSubmissionService.RequestApplicationToChangeRegisterV1_0Type webRequest;

            webRequest =
                _objectSerializer
                    .XmlDeserializeFromString<EdrsSubmissionService.RequestApplicationToChangeRegisterV1_0Type>(
                        request.Payload);

            webRequest.MessageId = request.ApplicationId;

            return RequestSender.Send(webRequest,request.Username,request.Password);
        }
        public When_an_Lrap1_is_submitted()
        {
            //Arrange
            _fakeObjectSerializer = A.Fake<IObjectSerializer>();
            _fakeRequestSender = A.Fake<IRequestSender>();

            _lrap1Request = new Lrap1Request()
            {
                Payload = "payload data"
            };

            _sut = new EdrsCommunicator(_fakeObjectSerializer);
            _sut.RequestSender = _fakeRequestSender;
        }