public DeclineThirdPartyResponse DeclineThirdParty(DeclineThirdPartyRequest request) { var jsonRequest = Util.JsonOperation.SerializeRequest(request); var jsonResponse = _declineThirdParty.Request(jsonRequest); return(JsonConvert.DeserializeObject <DeclineThirdPartyResponse>(jsonResponse)); }
public void DeclineThirdPartySuccessTest() { Client client = CreateMockTestClientNullRequiredFieldsRequest("Mocks/payout/modifyResponse-success.json"); Payout payout = new Payout(client); DeclineThirdPartyRequest request = new DeclineThirdPartyRequest(); DeclineThirdPartyResponse result = payout.DeclineThirdParty(request); Assert.AreEqual("[payout-confirm-received]", result.Response); Assert.AreEqual("8815131762537886", result.PspReference); }