示例#1
0
        public async Task <CompetitorElement[]> GetTeamsByDivisionAsync(DivisionIds divisionId)
        {
            var teams = await _owlApiService.GetTeamsAsync();

            var divisionTeams = teams.Competitors.Where(c => c.Competitor.OwlDivision == (int)divisionId).ToArray();

            return(divisionTeams);
        }
        public async Task GetTeamsAsync()
        {
            // Arrange

            // Act
            var result = await client.GetTeamsAsync();

            // Assert
            result.ShouldNotBeNull();
            result.Competitors.Length.ShouldBe(12);
        }