/// <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); }
public HandsHistoryTest() { _context = new HandsTestContext(); _handsHistoryManager = _context.HandsHistoryManager; _room = RoomType.PokerKing; // Need zero hands after init. _handsHistoryManager.TotalHands.Should().Be(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>(); }