Beispiel #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);
        }
Beispiel #2
0
        public void SaveEmptyHands()
        {
            Action saveAction = () => _handsHistoryManager.SaveHands(null);

            saveAction.Should().Throw <ArgumentNullException>();
        }