public GameModel(Deck deck, BlackJackHandDealer dealer, BlackJackHandPlayer player) { this.deck = deck ?? throw new ArgumentNullException(nameof(deck)); this.dealer = dealer ?? throw new ArgumentNullException(nameof(dealer)); this.player = player ?? throw new ArgumentNullException(nameof(player)); }
public GameModel() { dealer = new BlackJackHandDealer(); player = new BlackJackHandPlayer(); deck = new Deck(); }