using System.Collections.Generic;
public static void Main()
interface ITeamRepository {
class TeamRepository : ITeamRepository {
public TeamRepository(Table table) {
private readonly List<Team> _teams;
this._teams = new List<Team>();
public void AddTeam(Team team)
team.Id = ++this._nextTeamId;
public List<Team> QueryTeams() {
public Team GetTeam(int Id){
return _teams.Find(t => t.Id == Id);