public void TestDtoToDetail()
        {
            OrderDTO orderDTO = new OrderDTO();

            orderDTO.MarkChildForInsertion(new OrderDetailDTO {
                Id = 1, ProductId = 123, ProductName = "FakeProduct", QuantityInUnits = 123, UnitPrice = 123.32m, Version = 0
            });
            orderDTO.MarkChildForUpdate(new OrderDetailDTO {
                Id = 2, ProductId = 123, ProductName = "FakeProduct", QuantityInUnits = 123, UnitPrice = 123.32m, Version = 0
            });
            orderDTO.MarkChildForDeletion(new OrderDetailDTO {
                Id = 3, ProductId = 123, ProductName = "FakeProduct", QuantityInUnits = 123, UnitPrice = 123.32m, Version = 0
            });

            IEnumerable <ChangeItem> changeItems = OrderAdapter.GetChangeItems(orderDTO, new Order());

            Assert.AreEqual <int>(3, changeItems.Count());
        }