예제 #1
0
        public void Order_Delete_Test()
        {
            OrderClient client = new OrderClient("NetTcpBinding_IOrder");

            client.Open();

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

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

            client.Delete(_dto.Id);

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

            Assert.IsNull(result);
        }