Exemplo n.º 1
0
        /// <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));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Tests the merchant billing statement.
 /// </summary>
 /// <returns>MerchantBillingStatement html</returns>
 public async Task <ActionResult> TestMerchantBillingStatementHtml()
 {
     return(await GetTemplate(TestMerchantBillingStatement.GetData(), "/Report/MerchantBillingStatement"));
 }