Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     _workspace = new Workspace();
 }
Ejemplo n.º 3
0
 public void CleanUp()
 {
     _workspace.RemoveAll();
     _workspace = null;
 }
Ejemplo n.º 4
0
        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;
        }