示例#1
0
        public IRepository InsertHand(IConvertedPokerHand convertedPokerHand)
        {
            _transactionManager.Execute((Action)(() => _pokerHandDao.Insert(convertedPokerHand)));

            return(this);
        }
        public void Insert_HandWithoutPlayers_DoesNotInsertItIntoDatabase()
        {
            _sut.Insert(_hand);

            _hand.Id.ShouldBeEqualTo(UnsavedValue);
        }