Exemplo n.º 1
0
 public void GetTeamsTest()
 {
     var repo = new HockeyRepo();
     var teams = repo.GetTeams();
 }
Exemplo n.º 2
0
 public void AddPlayerTest()
 {
     var player = new Player { FirstName = "first", LastName = "last", Positions = new List<Position> { new Position { Name = "Goalie" } } };
     var repo = new HockeyRepo();
     repo.AddPlayer(player);
 }
Exemplo n.º 3
0
 public void GetPlayersTest()
 {
     var repo = new HockeyRepo();
     repo.GetPlayers();
 }
Exemplo n.º 4
0
 private ICollection<Position> GetPosition(string fullName)
 {
     var split = fullName.Split(' ').Reverse().FirstOrDefault();
     split = split?.Substring(1, split.Length - 2);
     var repo = new HockeyRepo();
     var position = repo.GetPosition(split);
     var list = new List<Position>();
     if (position != null)
         list.Add(position);
     return list;
 }