private InventoryTransferDto GetInventoryTransfer4()
        {
            InventoryTransferDto dto = new InventoryTransferDto();
            dto.Date = DateTime.Now;
            dto.Summary = "Test Inventory Transfer CRUD with decimal quantities";
            dto.Notes = "Inventory Transfer from API";
            dto.Tags = "IT, Test";

            InventoryTransferItemDto item = new InventoryTransferItemDto();
            item.Quantity = -2.5M;
            item.InventoryItemUid = this.Cat5Cable.Uid;
            item.UnitPriceExclTax = 50.00M;
            item.TotalPriceExclTax = -125.00M;
            dto.Items.Add(item);

            item = new InventoryTransferItemDto();
            item.Quantity = 1;
            item.InventoryItemUid = this.HardDisk.Uid;
            item.UnitPriceExclTax = 125.00M;
            item.TotalPriceExclTax = 125.00M;
            dto.Items.Add(item);

            return dto;
        }
        private InventoryTransferDto GetInventoryTransfer1()
        {
            InventoryTransferDto dto = new InventoryTransferDto();
            dto.Date = DateTime.Now;
            dto.Summary = "Test Inventory Transfer CRUD";
            dto.Notes = "Inventory Transfer from API";
            dto.Tags = "IT, Test";

            InventoryTransferItemDto item = new InventoryTransferItemDto();
            item.Quantity = -2;
            item.InventoryItemUid = this.HardDisk.Uid;
            item.UnitPriceExclTax = 120.50M;
            item.TotalPriceExclTax = -241.00M;
            dto.Items.Add(item);

            item = new InventoryTransferItemDto();
            item.Quantity = 1;
            item.InventoryItemUid = this.AsusLaptop.Uid;
            item.UnitPriceExclTax = 241.00M;
            item.TotalPriceExclTax = 241.00M;
            dto.Items.Add(item);

            return dto;
        }
 protected virtual ITask CreateUpdateTask(InventoryTransferDto inventoryTransfer)
 {
     UpdateInventoryTransferTask task = (UpdateInventoryTransferTask)base.CreateUpdateTask(inventoryTransfer);
     return task;
 }
 private void AssertEqual(InventoryTransferDto expected, InventoryTransferDto actual)
 {
     foreach (InventoryTransferItemDto expectedItem in expected.Items)
     {
         this.AssertExistsAndRemove(expectedItem, actual.Items);
     }
 }
 protected virtual ITask CreateInsertTask(InventoryTransferDto inventoryTransfer)
 {
     InsertInventoryTransferTask task = (InsertInventoryTransferTask)base.CreateInsertTask(inventoryTransfer);
     return task;
 }