public void TestExportWithPictures() { _importer.ImportConfiguration = _importConfigurations[1]; var articles = _importer.Import(ImporterTest.TestLargeArchive); Assert.AreEqual(articles.Count, 712); Workspace workspace = new Workspace(); workspace.Add(articles); _exporter.Template = _templates[0]; var result = _exporter.Export(workspace, Guid.NewGuid().ToString() + FileExtension, new UserRequestData()); Assert.IsNotNull(result); }
public void Initialize() { _workspace = new Workspace(); }
public void CleanUp() { _workspace.RemoveAll(); _workspace = null; }
private void Initialize() { _importConfigurations = ImportConfigParser.ParseImportSettings("imports.ini"); _templates = ExportConfigParser.ParseExportSettings("exports.ini"); _workspace = new Workspace(); _importer = new Importer(); _exporter = new Exporter(); InitializeImportMenu(); InitializeExportMenu(); InitializeMenuItems(); _articlesDataGrid.ItemsSource = _workspace.Articles; _articlesDataGrid.PreviewKeyDown += PreviewKeyDownHandler; }