BoxKite.Twitter.Tests.TrendsExtensionsTests.Get_Trends_For_Place C# (CSharp) Метод

Get_Trends_For_Place() приватный Метод

private Get_Trends_For_Place ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
        public async Task Get_Trends_For_Place()
        {
            // arrange
            session.Returns(await Json.FromFile("data\\trends\\trendsforplace.txt"));
            session.ExpectGet("https://api.twitter.com/1.1/trends/place.json");

            var placetrends = await session.GetTrendsForPlace(1);

            Assert.IsNotNull(placetrends);
            placetrends.Count().ShouldBeEquivalentTo(1);
            placetrends.ToList()[0].locations.Count().ShouldBeEquivalentTo(1);
            placetrends.ToList()[0].locations.ToList()[0].name.ShouldBeEquivalentTo("Worldwide");
        }