Exemple #1
0
        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);
        }
Exemple #2
0
 public void Initialize()
 {
     _workspace = new Workspace();
 }
Exemple #3
0
 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;
        }