Example #1
0
        public Task <ITransaction> StartTransactionAsync()
        {
            var log = new MongoActionLog();

            Log.Add(new MongoActions.Transaction(log));
            ITransaction tx = new TransactionFake(this, log);

            return(Task.FromResult(tx));
        }
Example #2
0
 public TransactionFake(MongoFake db, MongoActionLog log)
 => (_db, _log) = (db, log);
Example #3
0
 public static ActionLogAssertions Should(this MongoActionLog log)
 {
     return(new ActionLogAssertions(log));
 }