//void or bool
 public bool AddGameInformation(int _Game_id, GameInformation _list)
 {
     var query = from g in context.MyGames where g.GameId == _Game_id select g;
     Game found_game = null;
     bool result = true;
     try
     {
         found_game = query.Single<Game>();
         found_game.GamesPlayed.Add(_list);
         context.SaveChanges();
     }
     catch (InvalidOperationException)
     {
         result = false;
     }
     catch (ArgumentNullException)
     {
         result = false;
     }
     return result;
 }
 public void GameInformationEnsurePropertiesWork()
 {
     GameInformation newgame = new GameInformation { ScoreHoleOne = 3 };
 }
 public void GameInformationEnsureICanCreateInstance()
 {
     GameInformation newgame = new GameInformation();
     Assert.IsNotNull(newgame);
 }