Exemplo n.º 1
0
 /// <summary>
 /// Generally used to intialize a UnitOfWork with a mock ITransaction.
 /// </summary>
 public static void InitializeWithTransaction(ITransaction transaction)
 {
     ResetTransaction();
      TransactionElection election = new TransactionElection(transaction);
      election.TransactionComplete += OnTransactionComplete;
      Globals.Data[ModelConstants.TRANSACTION_ELECTION_KEY] = election;
 }
Exemplo n.º 2
0
 protected override void Before_each_spec()
 {
     _stubTransaction = Stub<ITransaction>();
      _election = new TransactionElection(_stubTransaction);
 }
Exemplo n.º 3
0
 protected override void Before_each_spec()
 {
     _transaction = Mock<ITransaction>();
      _election = new TransactionElection(_transaction);
 }