Beispiel #1
0
        public void Should_Success_GetReport()
        {
            var serviceProvider = GetServiceProvider();

            InventorySummaryService service = new InventorySummaryService(serviceProvider.Object, _dbContext(GetCurrentMethod()));
            var data = _dataUtil(service).GetTestData();

            var Response = service.GetReport(null, null, 1, 25, "{}", 7);

            Assert.NotNull(Response);
        }
        public void Should_Success_GetReport_with_Order()
        {
            var serviceProvider = GetServiceProvider();

            InventorySummaryService service = new InventorySummaryService(serviceProvider.Object, _dbContext(GetCurrentMethod()));
            var data = _dataUtil(service).GetTestData();

            var orderProperty = new
            {
                code = "asc"
            };
            string order = JsonConvert.SerializeObject(orderProperty);

            var Response = service.GetReport(null, null, 1, 25, order, 7);

            Assert.NotNull(Response);
        }