Exemplo n.º 1
0
 public void DeleteProductWcf()
 {
     using (var proxy = new BestilNemtServiceRef.BestilNemtServiceClient())
     {
         proxy.Open();
         var product = new Product("The product1 name", 23.45m, "The product1 description", "The product1 catagory", "Img path");
         var id      = proxy.AddProduct(product);
         var i       = proxy.DeleteProduct(id);
         Assert.AreEqual(1, i);
     }
 }