public void MapToModel()
        {
            GarmentLeftoverWarehouseExpenditureAvalService service = new GarmentLeftoverWarehouseExpenditureAvalService(_dbContext(GetCurrentMethod()), GetServiceProvider().Object);

            var data = new GarmentLeftoverWarehouseExpenditureAvalViewModel
            {
                Buyer = new BuyerViewModel
                {
                    Id   = 1,
                    Code = "Buyer",
                    Name = "Buyer"
                },
                ExpenditureDate  = DateTimeOffset.Now,
                ExpenditureTo    = "JUAL LOKAL",
                Description      = "Remark",
                LocalSalesNoteNo = "LocalSalesNoteNo",
                OtherDescription = "sadd",
                Items            = new List <GarmentLeftoverWarehouseExpenditureAvalItemViewModel>
                {
                    new GarmentLeftoverWarehouseExpenditureAvalItemViewModel
                    {
                        AvalReceiptNo = "roNo",
                        Unit          = new UnitViewModel
                        {
                            Id   = "1",
                            Code = "Unit",
                            Name = "Unit"
                        },
                        Quantity      = 1,
                        AvalReceiptId = 1,
                        Product       = new ProductViewModel
                        {
                            Id   = "1",
                            Code = "Product",
                            Name = "Product"
                        },
                        Uom = new UomViewModel
                        {
                            Id   = "1",
                            Unit = "Uom"
                        }
                    }
                }
            };

            var result = service.MapToModel(data);

            Assert.NotNull(result);
        }