Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public TransactionFake(MongoFake db, MongoActionLog log)
 => (_db, _log) = (db, log);
Ejemplo n.º 3
0
 public static ActionLogAssertions Should(this MongoActionLog log)
 {
     return(new ActionLogAssertions(log));
 }