Ejemplo n.º 1
0
        /// <summary>
        /// Tests the hero tile preview image.
        /// </summary>
        /// <returns>HeroTilePreviewImage Template</returns>
        public async Task <ActionResult> TestHeroTilePreviewImage()
        {
            using (var client = new HttpClient())
            {
                var response = await client.PostAsJsonAsync(GetUri("/Preview/HeroTileImage").AbsoluteUri, TestDealPreview.GetCardlinkDealPreviewModel());

                response.EnsureSuccessStatusCode();
                return(File(await response.Content.ReadAsStreamAsync(), MediaTypeNames.Image.Jpeg));
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Tests the hero tile preview image upload.
 /// </summary>
 /// <returns>HeroTilePreviewImage upload status</returns>
 public async Task <ContentResult> TestHeroTilePreviewImageUpload()
 {
     return(await GetTemplate(TestDealPreview.GetCardlinkDealPreviewModel(), "/Preview/UploadHeroTileImage"));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Tests the Hero Tile Preview Html template.
 /// </summary>
 /// <returns>HeroTilePreviewHtml Template</returns>
 public async Task <ContentResult> TestHeroTilePreviewHtml()
 {
     return(await GetTemplate(TestDealPreview.GetCardlinkDealPreviewModel(), "/Preview/HeroTileHtml"));
 }