static void Main(string[] args) { Random random = new Random(); CardFactory cardFactory = new CardFactory(); Deck deck = new Deck(cardFactory, random); Player player = new Player(); Dealer dealer = new Dealer(deck); HandsFactory handsFactory = new HandsFactory(); BlackjackGame game = new BlackjackGame(dealer, player, handsFactory); GameView gameView = new GameView(); GameController gameController = new GameController(game, gameView); MainController mainController = new MainController(gameController, gameView); mainController.RunGame(); }
public void CreateNewHands_ShouldReturnANewHandsObject() { HandsFactory sut = new HandsFactory(); Assert.IsType <Hands>(sut.CreateNewHands(It.IsAny <List <ICard> >(), It.IsAny <int>(), It.IsAny <List <ICard> >(), It.IsAny <int>())); }