public void NhlService_GetNhlTeamsAsync_CallsRepo()
        {
            // Arrange
            _nhlRepository.Setup(r => r.GetNhlTeamsAsync()).ReturnsAsync(new List <DataContracts.NHLTeamContract>());

            // Act
            var result = _nhlService.GetNhlTeamsAsync();

            // Assert
            _nhlRepository.Verify(s => s.GetNhlTeamsAsync(), Times.Once());
        }
        public async Task <IHttpActionResult> GetNhlTeams()
        {
            var teams = await _nhlService.GetNhlTeamsAsync();

            if (teams == null)
            {
                return(NotFound());
            }

            return(Ok(teams));
        }