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 StatementControllerFileOperations( [NotNull] IUiContext uiContext, [NotNull] LoadFileController loadFileController, [NotNull] IApplicationDatabaseService applicationDatabaseService) { if (uiContext == null) { throw new ArgumentNullException(nameof(uiContext)); } if (loadFileController == null) { throw new ArgumentNullException(nameof(loadFileController)); } if (applicationDatabaseService == null) { throw new ArgumentNullException(nameof(applicationDatabaseService)); } this.messageBox = uiContext.UserPrompts.MessageBox; this.loadFileController = loadFileController; ViewModel = new StatementViewModel(uiContext, applicationDatabaseService); }
public StatementControllerFileOperations( [NotNull] IUiContext uiContext, [NotNull] LoadFileController loadFileController, [NotNull] IApplicationDatabaseService applicationDatabaseService) { if (uiContext == null) { throw new ArgumentNullException(nameof(uiContext)); } if (loadFileController == null) { throw new ArgumentNullException(nameof(loadFileController)); } if (applicationDatabaseService == null) { throw new ArgumentNullException(nameof(applicationDatabaseService)); } this.messageBox = uiContext.UserPrompts.MessageBox; this.loadFileController = loadFileController; ViewModel = new StatementViewModel(uiContext, applicationDatabaseService); }