public MainViewModel( ScanViewModel scanViewModel, ConnectedDevicesViewModel connectViewModel, ServerViewModel serverViewModel, TestCasesViewModel testCasesViewModel) { this.Scan = scanViewModel; this.ConnectedDevices = connectViewModel; this.Server = serverViewModel; this.TestCases = testCasesViewModel; }
public MainWindow() { InitializeComponent(); var repository = new LocalDocumentRepository("Storage", new TestCaseMetadataParser()); repository.Initialize(); var vm = new TestCasesViewModel(); vm.Initialize(); DataContext = vm; }