public MainWindowViewModel(IPDFManager pdfManager, IIOManager ioManager, IFileNameManager fileNameManager, IDataManager dataManager, IDataConnector <IVOAType> dataConnector, ICSVManager csvManager ) { mainWindow = dataManager.MainWindow; this.pdfManager = pdfManager; this.ioManager = ioManager; this.fileNameManager = fileNameManager; this.dataManager = dataManager; this.dataConnector = dataConnector; this.csvManager = csvManager; #if DEBUG TemplatePath = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName; TemplatePath = Path.GetFullPath(Path.Combine(TemplatePath, @"..\")); TemplatePath += @"masts_dvr_tool.Tests\StubForms\mockForm.pdf"; #endif Prefix = "VOA"; EncryptionLabel = "Encryption?"; EncryptionEnabled = true; }
public void TestSetup() { IFileNameManager fileNameManager = new FileNameManager(); IIOManager ioManager = new IOManager(fileNameManager); ICSVRepository csvRepository = new CSVRepository(); csvManager = new CSVManager(csvRepository, ioManager); }