public void TestCancel()
 {
     var gameSettings = new GameSettings(2, 2, 1, new RandomPointGenerator());
     var viewModel = new SettingsViewModel
     {
         GameSettings = gameSettings
     };
     viewModel.CancelCommand.Execute(null);
     Assert.IsFalse(viewModel.Saved);
 }
 private void RaiseSettingsRequest()
 {
     var settingsViewModel = new SettingsViewModel
     {
         GameSettings = GameViewModel.GameSettings
     };
     SettingsRequest.Raise(settingsViewModel, result =>
     {
         if (result.Saved)
         {
             // Start a new game with the new settings
             GameViewModel.NewGameCommand.Execute(result.GameSettings);
         }
     });
 }