public void OrderDetail_Create_Test()
        {
            OrderDetailClient client = new OrderDetailClient("NetTcpBinding_IOrderDetail");

            client.Open();
            client.Create(_dto);

            OrderDetailDTO result = client.Read(_dto.Id);

            Assert.IsNotNull(result);
        }
        public void OrderDetail_Delete_Test()
        {
            OrderDetailClient client = new OrderDetailClient("NetTcpBinding_IOrderDetail");

            client.Open();

            OrderDetailDTO exists = client.Read(_dto.Id);

            if (exists == null)
            {
                client.Create(_dto);
            }

            client.Delete(_dto.Id);

            OrderDetailDTO result = client.Read(_dto.Id);

            Assert.IsNull(result);
        }
        public void OrderDetail_Update_Test()
        {
            OrderDetailClient client = new OrderDetailClient("NetTcpBinding_IOrderDetail");

            client.Open();
            client.Create(_dto);
            _dto.Id                  = Guid.NewGuid();
            _dto.Product.Id          = Guid.NewGuid();
            _dto.Product.Description = "Pants";
            _dto.Product.Price       = 123.45M;

            client.Update(_dto);

            OrderDetailDTO result = client.Read(_dto.Id);

            Assert.IsNotNull(result);
            Assert.AreEqual("Pants", _dto.Product.Description);
            Assert.AreEqual(123.45M, _dto.Product.Price);
        }