public void Setup()
        {
            _console          = Substitute.For <IConsole>();
            _clock            = Substitute.For <IClock>();
            _transactionStore = new TransactionStore(_clock);
            _statementPrinter = new StatementPrinter(_console);

            _account = new Account(_transactionStore, _statementPrinter);
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     _transactionStore = Substitute.For <IStoreTransactions>();
     _statementPrinter = Substitute.For <IPrintStatements>();
     _account          = new Account(_transactionStore, _statementPrinter);
 }
Ejemplo n.º 3
0
 public Account(IStoreTransactions transactionStore, IPrintStatements statementPrinter)
 {
     _transactionStore = transactionStore;
     _statementPrinter = statementPrinter;
 }