Beispiel #1
0
        public void OpenDocument_execute_NoException()
        {
            // arrange
            var messegaBoxService = new MessageBoxServiceForTesting();
            var importService     = new ImportServiceForTesting(false);
            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.OpenDocument(Guid.Parse("3fc6a223-369b-4efd-a0c4-f563ee6d67f8"), 2020, "document.docx");

            // assert
            Assert.DoesNotThrow(Calculation);
        }
 private void OnCmdOeffnen()
 {
     _documentManagementService.OpenDocument(SelectedMetadataItem.DokumentenGuid, SelectedMetadataItem.ValutaDatum.Year, SelectedMetadataItem.FileName);
 }