public void TestContactWebRequest() { SerializingWebRequester requester = new SerializingWebRequester(); string expectedResponse = requester.ConstructSerializedString( "GET", "/v1/phoneid/contact/61811111234", null, this.CreateDefaultQueryString()); string actualResponse = this.CreateService(requester).ContactLookupRaw("61811111234"); Assert.AreEqual(expectedResponse, actualResponse); }
public void TestLiveWebRequest() { SerializingWebRequester requester = new SerializingWebRequester(); string expectedResponse = requester.ConstructSerializedString( "GET", "/v1/phoneid/live/61811111234", null, this.CreateDefaultQueryString()); string actualResponse = this.CreateService(requester).LiveLookupRaw("61811111234"); Assert.AreEqual(expectedResponse, actualResponse); }