public void TestUpdate()
        {
            CrudProxy proxy             = new InventoryAdjustmentProxy();
            InventoryAdjustmentDto dto1 = this.GetInventoryAdjustment1();

            proxy.Insert(dto1);

            Assert.IsTrue(dto1.Uid > 0, "Uid must be > 0 after save.");
            dto1.Summary = "Updated inventory adjustment";
            proxy.Update(dto1);

            InventoryAdjustmentDto dto2 = (InventoryAdjustmentDto)proxy.GetByUid(dto1.Uid);

            AssertEqual(dto1, dto2);
        }
        public void TestUpdateWithDecimalQuantity()
        {
            CrudProxy proxy             = new InventoryAdjustmentProxy();
            InventoryAdjustmentDto dto1 = this.GetInventoryAdjustment2();

            proxy.Insert(dto1);

            Assert.IsTrue(dto1.Uid > 0, "Uid must be > 0 after save.");
            dto1.Summary = "Updated inventory adjustment";
            var adjustmentItem = (InventoryAdjustmentItemDto)dto1.Items[0];

            adjustmentItem.Quantity          = 1.5M;
            adjustmentItem.UnitPriceExclTax  = 100.00M;
            adjustmentItem.TotalPriceExclTax = 150.00M;

            proxy.Update(dto1);

            InventoryAdjustmentDto dto2 = (InventoryAdjustmentDto)proxy.GetByUid(dto1.Uid);

            AssertEqual(dto1, dto2);
        }