/// <summary> /// Tests the merchant billing statement. /// </summary> /// <returns>MerchantBillingStatement html</returns> public async Task <ActionResult> TestMerchantBillingStatementPdf() { using (var client = new HttpClient()) { var response = await client.PostAsJsonAsync(GetUri("/Report/MerchantBillingStatementPdf").AbsoluteUri, TestMerchantBillingStatement.GetData()); response.EnsureSuccessStatusCode(); return(File(await response.Content.ReadAsStreamAsync(), MediaTypeNames.Application.Pdf)); } }
/// <summary> /// Tests the merchant billing statement. /// </summary> /// <returns>MerchantBillingStatement html</returns> public async Task <ActionResult> TestMerchantBillingStatementHtml() { return(await GetTemplate(TestMerchantBillingStatement.GetData(), "/Report/MerchantBillingStatement")); }