示例#1
0
        public void MapItem_Return_Success()
        {
            Guid id = Guid.NewGuid();
            GarmentDeliveryReturnItemDto dto             = new GarmentDeliveryReturnItemDto(new GarmentDeliveryReturnItem(id, id, 1, 1, "preparingItemId", new ProductId(1), "productCode", "productName", "designColor", "roNo", 1, new UomId(1), "uomUnit"));
            CreateViewModelMapper        viewModelMapper = new CreateViewModelMapper();

            viewModelMapper.MapItem(dto, id);
        }
示例#2
0
 public GarmentDeliveryReturnItem MapItem(GarmentDeliveryReturnItemDto viewModel, Guid headerId)
 {
     return(new GarmentDeliveryReturnItem(Guid.NewGuid(), headerId, viewModel.UnitDOItemId, viewModel.UENItemId, viewModel.PreparingItemId, new ProductId(viewModel.Product.Id), viewModel.Product.Code, viewModel.Product.Name, viewModel.DesignColor, viewModel.RONo, viewModel.Quantity, new UomId(viewModel.Uom.Id), viewModel.Uom.Unit));
 }