예제 #1
0
 public async Task <RetrivePayoutResponse> GetRetrivePayoutAsync(string payoutId, CancellationToken ct = default(CancellationToken))
 {
     return(await this.ProcessAsync <RetrivePayoutResponse>(
                PayUClientUrlBuilder.BuildRetrievePayoutsUrl(this.settings.Url, this.settings.ApiVersion, payoutId),
                HttpMethod.Get,
                ct));
 }
예제 #2
0
 public RetrivePayoutResponse GetRetrivePayout(string payoutId)
 {
     return(this.Process <RetrivePayoutResponse>(
                PayUClientUrlBuilder.BuildRetrievePayoutsUrl(this.settings.Url, this.settings.ApiVersion, payoutId),
                HttpMethod.Get));
 }
 public static void BuildRetrievePayoutsUrl_CorrectParameters_CorrectBuildedUrl()
 {
     Assert.Equal(new Uri("http://localhost:3000/api/v2.1/payouts/payoutId"),
                  PayUClientUrlBuilder.BuildRetrievePayoutsUrl("http://localhost:3000", "v2.1", "payoutId"));
 }
 public static void BuildRetrievePayoutsUrl_NullEmptyApiVersion_ThrowsArgumentException(string apiVersion, string payoutId)
 {
     Assert.Throws <ArgumentException>(() => PayUClientUrlBuilder.BuildRetrievePayoutsUrl("http://localhost:3000", apiVersion, payoutId));
 }