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

            mockFacade.Setup(x => x.ReadLoader(It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>(), null, It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>()))
            .Throws(new Exception());

            var mockMapper = new Mock <IMapper>();

            GarmentDeliveryOrderController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetLoader();

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

            mockFacade.Setup(x => x.ReadLoader(It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>(), null, It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>()))
            .Returns(new ReadResponse <dynamic>(new List <dynamic>(), 1, new Dictionary <string, string>()));

            var mockMapper = new Mock <IMapper>();

            GarmentDeliveryOrderController controller = GetController(mockFacade, null, mockMapper);
            var response = controller.GetLoader();

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