Пример #1
0
        public async Task <ScheduleResponse> GetLastMatchupAsync(TeamIds mainTeamId, TeamIds secondTeamId)
        {
            var team = await _owlApiService.GetTeamAsync((int)mainTeamId);

            var lastMatchup = team.GetLastMatchup((int)secondTeamId);

            return(lastMatchup);
        }
Пример #2
0
        public async Task GetTeamAsync(int teamId)
        {
            // Arrange

            // Act
            var result = await client.GetTeamAsync(teamId);

            // Assert
            result.ShouldNotBeNull();
            result.AbbreviatedName.ShouldNotBeNull();
            result.Id.ShouldNotBeNull();
            result.Logo.ShouldNotBeNull();
            result.Name.ShouldNotBeNull();
            result.HomeLocation.ShouldNotBeNull();
            result.AddressCountry.ShouldNotBeNull();
        }