Exemple #1
0
        /// <summary>
        /// Save hands in context.
        /// </summary>
        public IReadOnlyList <Hand> SaveHands(int countHands, int countPlayers, RoomType room)
        {
            var hands = HandsGenerator.CreateCollectionHands(countHands, countPlayers, room);

            HandsHistoryManager.SaveHands(hands);

            return(hands);
        }
Exemple #2
0
        public HandsHistoryTest()
        {
            _context             = new HandsTestContext();
            _handsHistoryManager = _context.HandsHistoryManager;

            _room = RoomType.PokerKing;

            // Need zero hands after init.
            _handsHistoryManager.TotalHands.Should().Be(0);
        }
Exemple #3
0
 /// <summary>
 /// Ctor <see cref="HandsTestContext"/>.
 /// </summary>
 public HandsTestContext()
 {
     NotificationManager = new Mock <INotificationManager>();
     HandsHistoryManager = new HandsHistoryManager(new Mock <IParser>().Object, NotificationManager.Object);
     CommandManager      = new Mock <ICommandManager>();
 }