예제 #1
0
 public void UpdatePlayers()
 {
     var rosterFormatter = new RosterFormatter();
     var players = rosterFormatter.GetFormattedRoster();
     var repo = new BaseballRepo();
     foreach (var player in players)
     {
         var current = repo.GetPlayer(player.Person.FirstName, player.Person.LastName);
         if (current == null)
             repo.AddPlayer(player);
     }
 }
예제 #2
0
 public void GetPlayerTest()
 {
     var repo = new BaseballRepo();
     var player = repo.GetPlayer("Christian", "Bloesl");
 }