public void Setup() { _console = Substitute.For <IConsole>(); _clock = Substitute.For <IClock>(); _transactionStore = new TransactionStore(_clock); _statementPrinter = new StatementPrinter(_console); _account = new Account(_transactionStore, _statementPrinter); }
public void Setup() { _transactionStore = Substitute.For <IStoreTransactions>(); _statementPrinter = Substitute.For <IPrintStatements>(); _account = new Account(_transactionStore, _statementPrinter); }
public Account(IStoreTransactions transactionStore, IPrintStatements statementPrinter) { _transactionStore = transactionStore; _statementPrinter = statementPrinter; }