Exemplo n.º 1
0
 public Account(
     IProvideDate dateProvider,
     IStoreTransactions transactionsStore,
     IAmConsole console)
 {
     this.dateProvider = dateProvider
                         ?? throw new ArgumentNullException(nameof(dateProvider));
     this.transactionsStore = transactionsStore
                              ?? throw new ArgumentNullException(nameof(transactionsStore));
     this.console = console
                    ?? throw new ArgumentNullException(nameof(console));
 }
Exemplo n.º 2
0
 private FakeConsole()
 {
     consoleMock = A.Fake <IAmConsole>();
 }
 public StatementPrinter(IAmConsole console)
 {
     this.console = console
                    ?? throw new ArgumentNullException(nameof(console));
 }