public void GetTestSuiteExcelTemplateTest() { var response = new East.Tool.UseCaseTranslator.WebAPI.Controllers.V1_0.TemplateController().GetTestSuiteExcelTemplate(); Assert.IsNotNull(response); Assert.IsTrue(response.StatusCode == HttpStatusCode.OK); Assert.IsTrue(response.Content.Headers.ContentType.MediaType == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); Assert.IsTrue(response.Content.Headers.ContentDisposition.DispositionType == "attachment"); Assert.IsTrue(response.Content.Headers.ContentDisposition.FileName == "TestSuiteTemplate.xlsx"); }
public void GetUseCaseScenarioSetTemplateTest() { var response = new East.Tool.UseCaseTranslator.WebAPI.Controllers.V1_0.TemplateController().GetUseCaseScenarioSetTemplate(); Assert.IsNotNull(response); Assert.IsTrue(response.StatusCode == HttpStatusCode.OK); Assert.IsTrue(response.Content.Headers.ContentType.MediaType == "text/plain"); Assert.IsTrue(response.Content.Headers.ContentType.CharSet == "utf-8"); Assert.IsTrue(response.Content.Headers.ContentDisposition.DispositionType == "attachment"); Assert.IsTrue(response.Content.Headers.ContentDisposition.FileName == "UseCaseScenarioSetTemplate.md"); }