Beispiel #1
0
        public async Task TestCommitCallsCommitTransaction()
        {
            mockSession.Setup(s => s.CommitTransactionAsync(It.IsAny <string>(), It.IsAny <MemoryStream>(),
                                                            It.IsAny <CancellationToken>())).Returns(GetAsyncTransactionResult(TxnId));

            // We must not have any exceptions
            await asyncTransaction.Commit();
        }