BoxKite.Twitter.Tests.TestableUserSession.ExpectGet C# (CSharp) Method

ExpectGet() public method

public ExpectGet ( string url ) : void
url string
return void
        public void ExpectGet(string url)
        {
            expectedGetUrl = url;
        }

Usage Example

        public async Task Get_Place_Info()
        {
            // arrange
            session.Returns(await Json.FromFile("data\\placegeo\\placeinfo.txt"));
            session.ExpectGet("https://api.twitter.com/1.1/geo/id/df51dec6f4ee2b2c.json");

            var placegeo = await session.GetPlaceInfo("df51dec6f4ee2b2c");

            Assert.IsNotNull(placegeo);
            placegeo.FullName.ShouldBeEquivalentTo("Presidio, San Francisco");
            placegeo.BoundingBox.GeoCoordinates[0][0][0].ShouldBeEquivalentTo(-122.48530488);
        }
All Usage Examples Of BoxKite.Twitter.Tests.TestableUserSession::ExpectGet