public void CreatePersonRequest_OKResponse() { ClientData clientData = _clientDataHelper.TestData; ResultsObject ro = new ResultsObject() { Accountno = _testAccountno, ReferenceNumber = clientData.Key5, }; ro.Responses = new List <ResponseDetails>(); ro = _restClient.CreatePersonRequest(ro, clientData); Assert.IsTrue(ro.Accountno == _testAccountno); Assert.IsTrue(ro.Responses[0].URL.Contains("/people/")); Assert.IsTrue(ro.Responses[0].SendResponse == Enums.Enums.SendResponse.OK); }
public ResultsObject ProcessCreatePersonRequest(ClientData clientData) { ResultsObject ro = new ResultsObject(); if (ro.Responses == null) { ro.Responses = new List <ResponseDetails>(); } ; ro.Accountno = clientData.Accountno; ro.ReferenceNumber = clientData.Key5; ro = _apiClient.CreatePersonRequest(ro, clientData); ro = _apiClient.SendUpdateEmailAddressRequest(Enums.SendRequest.UEMAILADDR, ro, clientData.UEmailAddr); ro = _apiClient.SendUpdatePhoneNumberRequest(Enums.SendRequest.PHONE1, ro, clientData.Phone1); ro = CreateCommunicationPreferences(ro, clientData); _applicationLogging.Log(ro); return(ro); }