public void DeleteTest() { using (var server = new HttpServer(new RequestHandler { EstimatedMethod = "DELETE", EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/portins/1", Helper.AccountId) })) { var client = Helper.CreateClient(); var portIn = new PortIn { Id = "1" }; portIn.SetClient(client); portIn.Delete().Wait(); if (server.Error != null) { throw server.Error; } } }