public void GetRequest_AnonymousFollow_CorrectQuery(List<long> follow)
        {
            var sut = new Query(new HttpUtils()) { Follow = follow };

            var request = sut.GetRequest();

            var content = request.Content.ReadAsStringAsync().Result;
            content.ToLower().Should().Be("follow=" + string.Join("%2c", follow));
        }
        public void GetRequest_AnonymousLocations_CorrectQuery(Locations locations)
        {
            var sut = new Query(new HttpUtils()) { Locations = locations };

            var request = sut.GetRequest();

            var content = request.Content.ReadAsStringAsync().Result;
            content.ToLower().Should().Be("locations=" + locations.ToString().Replace(",", "%2c"));
        }
        public void GetRequest_AnonymousData_ContainAllParameters(Locations locations, List<long> follow, List<string> track)
        {
            var sut = new Query(new HttpUtils()) { Locations = locations, Follow = follow, Track = track};

            var request = sut.GetRequest();

            var content = request.Content.ReadAsStringAsync().Result;
            content.Should().Contain("locations=");
            content.Should().Contain("follow=");
            content.Should().Contain("track=");
        }
        public void GetRequest_DifferentTracks_CorrectQuery(string track1, string track2, string track3, string result)
        {
            var tracks = new List<string>();
            if (track1 != null) tracks.Add(track1);
            if (track2 != null) tracks.Add(track2);
            if (track3 != null) tracks.Add(track3);
            var sut = new Query(new HttpUtils()) { Track = tracks };

            var request = sut.GetRequest();

            var content = request.Content.ReadAsStringAsync().Result;
            content.ToLower().Should().Be(result.ToLower());
        }