public void GetWithDefaultClientTest() { var item = new SipPeer { Id = "10", SiteId = "1", Name = "test", IsDefaultPeer = true }; using (var server = new HttpServer(new[] { new RequestHandler { EstimatedMethod = "GET", EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/sites/1/sippeers/10", Helper.AccountId), ContentToSend = Helper.CreateXmlContent(new SipPeerResponse { SipPeer = item }) } })) { var r = SipPeer.Get("1", "10").Result; if (server.Error != null) { throw server.Error; } Helper.AssertObjects(item, r); } }