コード例 #1
0
        public async Task Should_Success_Get_Generate_Data_Excel_Null_Parameter()
        {
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(_dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var Response = facade.GenerateExcel("", "", DateTime.MinValue, DateTime.MaxValue, 7);

            Assert.IsType(typeof(System.IO.MemoryStream), Response);
        }
コード例 #2
0
        public async Task Should_Success_Get_Generate_Data_Excel()
        {
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(GetServiceProvider(GetCurrentMethod()).Object, _dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var Response = facade.GenerateExcel(null, model.SupplierId, DateTime.MinValue, DateTime.MaxValue, 7);

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