MOP

.Document), node.DocumentService.Delete(doc)); Assert.IsTrue(r.IsSuccessful); Assert.IsTrue(r.Resource.Id == doc.Id); Assert.IsNull(node.DocumentService.Get(doc.Id)); client.AccountService.DeleteCurrent(); Assert.IsNull(node.DocumentService.Get(doc.Id)); } [Test] public void Test_DocumentService_DeleteDoesNotExist() { MockHttpClient client = new MockHttpClient(ID, SECRET); AuthenticatedNode node = client.GetNode(); MOP.Document doc = new MOP.Document("This is a new document"); Response r = null; Assert.Throws(new TestDelegate( delegate() { r = node.DocumentService.Delete(doc); }) ); Assert.IsNull(r); } [Test] public void Test_DocumentService_Update() { MockHttpClient client = new MockHttpClient(ID, SECRET); AuthenticatedNode node = client.GetNode(); MOP.Document doc = new MOP.Document("This is a new document"); doc = node.DocumentService.Create(doc); doc.Description = "This is an edited description"; Response r = node.DocumentService.Update(doc); Assert.IsTrue(r.IsSuccessful); Assert.IsTrue(r.Resource.Id == doc.Id); Assert.IsTrue(r.Resource.Description == doc.Description); client.AccountService.DeleteCurrent(); Assert.IsNull(node.DocumentService.Get(doc.Id)); } [Test] public void Test_DocumentService_UpdateDoesNotExist() { MockHttpClient client = new MockHttpClient(ID, SECRET);

How it works
  • Submit an enquiry to a product.
  • Wait for a call from nearest supplier from your area.
  • Get quote and product details.
  • Choose best from them.
Recently Added Suppliers