public void Should_Error_Get_Report_DO()
        {
            var mockFacade = new Mock <IGarmentDeliveryOrderFacade>();

            var mockMapper = new Mock <IMapper>();


            GarmentDeliveryOrderController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetReportDO(It.IsAny <DateTime>(), It.IsAny <DateTime>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <long>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>());

            Assert.Equal((int)HttpStatusCode.InternalServerError, GetStatusCode(response));
        }
        public void Should_Success_Get_Report_DO()
        {
            var mockFacade = new Mock <IGarmentDeliveryOrderFacade>();

            mockFacade.Setup(x => x.GetReportDO(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <long>(), It.IsAny <DateTime>(), It.IsAny <DateTime>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>(), It.IsAny <int>()))
            .Returns(Tuple.Create(new List <GarmentDeliveryOrderReportViewModel>(), 5));

            var mockMapper = new Mock <IMapper>();

            mockMapper.Setup(x => x.Map <List <GarmentDeliveryOrderViewModel> >(It.IsAny <List <GarmentDeliveryOrder> >()))
            .Returns(new List <GarmentDeliveryOrderViewModel> {
                ViewModel
            });

            GarmentDeliveryOrderController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetReportDO(It.IsAny <DateTime>(), It.IsAny <DateTime>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <long>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>());

            Assert.Equal((int)HttpStatusCode.OK, GetStatusCode(response));
        }