Beispiel #1
0
        public InMemoryTransactionStoreTests()
        {
            timeProvider = A.Fake <IProvideTime>();
            A.CallTo(() => timeProvider.TodayAsString()).Returns(Today);

            transactionStore = new InMemoryTransactionStore(timeProvider);
        }
Beispiel #2
0
        public BankStatementPrint()
        {
            textPrinter  = A.Fake <IPrintText>();
            timeProvider = A.Fake <IProvideTime>();

            var transactionStore = new InMemoryTransactionStore(timeProvider);
            var statementPrinter = new BankStatementPrinter(textPrinter);

            account = new Account(transactionStore, statementPrinter);
        }