public void MapBOToModelList()
        {
            var mapper = new BOLPurchaseOrderDetailMapper();
            BOPurchaseOrderDetail bo = new BOPurchaseOrderDetail();

            bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1, 1, 1, 1, 1m);
            List <ApiPurchaseOrderDetailResponseModel> response = mapper.MapBOToModel(new List <BOPurchaseOrderDetail>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
        public void MapBOToModel()
        {
            var mapper = new BOLPurchaseOrderDetailMapper();
            BOPurchaseOrderDetail bo = new BOPurchaseOrderDetail();

            bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1, 1, 1, 1, 1m);
            ApiPurchaseOrderDetailResponseModel response = mapper.MapBOToModel(bo);

            response.DueDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.LineTotal.Should().Be(1m);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.OrderQty.Should().Be(1);
            response.ProductID.Should().Be(1);
            response.PurchaseOrderDetailID.Should().Be(1);
            response.PurchaseOrderID.Should().Be(1);
            response.ReceivedQty.Should().Be(1);
            response.RejectedQty.Should().Be(1);
            response.StockedQty.Should().Be(1);
            response.UnitPrice.Should().Be(1m);
        }