public async Task Should_Success_Get_Xls_Null_Parameters()
        {
            GarmentInternNoteFacades facade = new GarmentInternNoteFacades(_dbContext(GetCurrentMethod()), GetServiceProvider().Object);
            var model = await dataUtil(facade, GetCurrentMethod()).GetTestData();

            var response = facade.GenerateExcelIn("", "codeTest", null, null, null, null, null, null, null, 8);

            Assert.IsType <System.IO.MemoryStream>(response);
        }
Ejemplo n.º 2
0
        public async Task Should_Success_Get_Xls()
        {
            GarmentInternNoteFacades facade = new GarmentInternNoteFacades(_dbContext(GetCurrentMethod()), GetServiceProvider().Object);
            var model = await dataUtil(facade, GetCurrentMethod()).GetTestData();

            var response = facade.GenerateExcelIn(model.INNo, null, null, null, null, 7);

            Assert.IsType(typeof(System.IO.MemoryStream), response);
        }