public async Task Should_Success_Get_Generate_Data_Excel1_Not_Found()
        {
            var serviceProvider           = new Mock <IServiceProvider>();
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(_dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var Response = facade.GenerateDataExcel(DateTime.MinValue, DateTime.MinValue, 7);

            Assert.IsType(typeof(System.IO.MemoryStream), Response);
        }
示例#2
0
        public async Task Should_Success_Get_Generate_Data_Excel1()
        {
            var serviceProvider           = new Mock <IServiceProvider>();
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(GetServiceProvider(GetCurrentMethod()).Object, _dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var Response = facade.GenerateDataExcel(null, null, 7);

            Assert.IsType <System.IO.MemoryStream>(Response);
        }