public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IRandomGenerator randomGenerator = new RandomGenerator(); var dealer = new Dealer(randomGenerator); var checkHand = new CheckHandType(); var handTypes = new HandTypes(randomGenerator); IWriter messageBoxWriter = new MessageBoxWriter(); var pokerTable = new PokerTable(dealer, checkHand, handTypes, messageBoxWriter); Application.Run(pokerTable); }