public void Given_Retrieve_When_PassedValidQuery_Then_Should_ReturnTeamById()
        {
            Arena arena = Arena.Create(1, "arena", 121);
            var   team  = TeamFactory.GetEntity("TeamTestName", "ShortName",
                                                20, "url", arena);

            RepositoryMock.Setup(r => r.GetById(id)).Returns(team);
            var model = TeamFactory.GetModel(team);

            MapperMock.Setup(m => m.Map <TeamModel>(team)).Returns(model);

            var result = ExecuteQuery();

            result.Should().NotBeNull();
            result.Team.Should().NotBeNull();
        }
        public void Given_Retrieve_When_PassedValidQuery_Then_Should_ReturnTeamById()
        {
            Arena arena = Arena.Create(1, "arena", 121);
            var   teams = TeamFactory.GetEntity("TeamTestName", "ShortName",
                                                20, "url", arena).ToQueryableCollection();

            RepositoryMock.Setup(r => r.GetTeamsByLeagueId(leagueId)).Returns(teams);
            var models = TeamFactory.GetModel(teams.First()).ToReadOnlyCollection();

            MapperMock.Setup(m => m.Map <IReadOnlyCollection <TeamModel> >(teams)).Returns(models);

            var result = ExecuteQuery();

            result.Should().NotBeNull();
            result.Teams.Should().NotBeNull();
        }