public NewGame(GameVM _game) { XamlReader.Load(this); game = _game; new_game_options = new NewGameOptionsVM(); DataContext = new_game_options; BindControls(); }
public NewGame(GameVM gameVM) { XamlReader.Load(this); _gameVM = gameVM; new_game_options = new NewGameOptionsVM(gameVM); DataContext = new_game_options; BindControls(); }
public void NewGame() { _gameVM = new GameVM(); _newGameOptions = NewGameOptionsVM.Create(_gameVM); Assert.DoesNotThrow(() => _gameVM.CreateGame(_newGameOptions)); }