public void Should_Fail_Get_All_Data()
        {
            var mockFacade = new Mock <IGarmentReceiptCorrectionReportFacade>();

            var mockMapper = new Mock <IMapper>();

            GarmentReceiptCorrectionReportController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetReport(null, null, null, null, 0, 0, "");

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

            mockFacade.Setup(x => x.GetReport(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <DateTimeOffset>(), It.IsAny <DateTimeOffset>(), It.IsAny <string>(), It.IsAny <int>(), It.IsAny <int>()))
            .Returns(Tuple.Create(new List <GarmentReceiptCorrectionReportViewModel> {
                ViewModel
            }, 25));

            var mockMapper = new Mock <IMapper>();

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

            GarmentReceiptCorrectionReportController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetReport(null, null, null, null, 0, 0, "");

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