コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }