public void ImportArchiv_execute2_NoException() { // arrange var messegaBoxService = new MessageBoxService(); var importService = new ImportServiceForTesting(true); var exportService = new ExportServiceForTesting(true); var fileService = new FileServiceForTesting(true, true, true, true); var searchService = new SearchServiceForTesting(true, true, true); var itemlist = new List <MetadataItem>(); var DMS = new DocumentManagementService(itemlist, messegaBoxService, importService, exportService, fileService, searchService); // act void Calculation() => DMS.ImportArchiv(); // assert Assert.DoesNotThrow(Calculation); }
private void OnCmdLogin() { if (string.IsNullOrEmpty(Benutzername)) { _messegaBoxService.Show("Bitte tragen Sie einen Benutzernamen ein..."); return; } if (_documentManagementService.RepositoryExists()) { _documentManagementService.ImportArchiv(); var searchView = new MainView(Benutzername, _documentManagementService, _messegaBoxService); searchView.Show(); _loginView.Close(); } }