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;
        }
        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 void AssertExistsAndRemove(
              InventoryTransferItemDto expectedItem,
              ArrayList actualItems
          )
        {
            int count = actualItems.Count;
            for (int i = 0; i < count; i++)
            {
                InventoryTransferItemDto actualItem = (InventoryTransferItemDto)actualItems[i];

                if (
                        actualItem.Quantity == expectedItem.Quantity
                        && actualItem.InventoryItemUid == expectedItem.InventoryItemUid
                        && actualItem.UnitPriceExclTax == expectedItem.UnitPriceExclTax
                        && actualItem.TotalPriceExclTax == expectedItem.TotalPriceExclTax
                    )
                {
                    actualItems.RemoveAt(i);
                    return;
                }
                Assert.IsTrue(false, "Unable to find the expected inventory adjustment item in the collection.");
            }
        }