public StatementFileManager( [NotNull] LoadFileController loadFileController, [NotNull] IVersionedStatementModelRepository statementModelRepository, [NotNull] IBankStatementImporterRepository importerRepository, [NotNull] UiContext uiContext) { if (loadFileController == null) { throw new ArgumentNullException("loadFileController"); } if (statementModelRepository == null) { throw new ArgumentNullException("statementModelRepository"); } if (importerRepository == null) { throw new ArgumentNullException("importerRepository"); } if (uiContext == null) { throw new ArgumentNullException("uiContext"); } this.loadFileController = loadFileController; this.statementModelRepository = statementModelRepository; this.importerRepository = importerRepository; this.messageBox = uiContext.UserPrompts.MessageBox; }
public StatementRepository( [NotNull] IVersionedStatementModelRepository statementModelRepository, [NotNull] IBankStatementImporterRepository importerRepository) { if (statementModelRepository == null) { throw new ArgumentNullException(nameof(statementModelRepository)); } if (importerRepository == null) { throw new ArgumentNullException(nameof(importerRepository)); } this.statementModelRepository = statementModelRepository; this.importerRepository = importerRepository; }
public StatementRepository( [NotNull] IVersionedStatementModelRepository statementModelRepository, [NotNull] IBankStatementImporterRepository importerRepository) { if (statementModelRepository == null) { throw new ArgumentNullException(nameof(statementModelRepository)); } if (importerRepository == null) { throw new ArgumentNullException(nameof(importerRepository)); } this.statementModelRepository = statementModelRepository; this.importerRepository = importerRepository; }