Beispiel #1
0
        public async Task <Rank[]> GetLikesScoreboardAsync(RankLikesPlatform platform, Size size)
        {
            var requestPlatform = platform.ToApiString();
            var requestSize     = size.ToApiString();

            var jsonAsStream = await ApiProcessor.GetAsync($"{_baseUrl}/charts/{requestPlatform}/rankLikes/{requestSize}");

            var apiData = await _jsonHelper.Deserialise <Rank[]>(jsonAsStream);

            return(apiData);
        }
Beispiel #2
0
        public async Task DemoRun_GetLikesScoreboardAsync(RankLikesPlatform platform, Size size)
        {
            //Arrange
            RanksClient client = new RanksClient();

            //Act
            var result = await client.GetLikesScoreboardAsync(platform, size);

            //Assert
            Assert.NotNull(result);
        }
Beispiel #3
0
 public Task <Rank[]> GetLikesScoreboardAsync(RankLikesPlatform platform, Size size)
 {
     return(_service.GetLikesScoreboardAsync(platform, size));
 }