public void Init() { App.Current.DrawingToolkit = new Mock <IDrawingToolkit> ().Object; App.Current.ViewLocator = new VAS.Core.MVVMC.ViewLocator(); DrawingInit.ScanViews(); LMDrawingInit.ScanViews(); }
private GUIToolkit() { MainWindow = new MainWindow(this); MainWindow.Hide(); Scanner.ScanViews(App.Current.ViewLocator); DrawingInit.ScanViews(); LMDrawingInit.ScanViews(); VASUIMultimediaInit.ScanViews(); }
public void TestViewInstanceCreation() { AnalysisEventButtonView analysisButtonView; TimerButtonView timerButtonView; DrawingInit.ScanViews(); App.Current.DrawingToolkit = new CairoBackend(); Assert.DoesNotThrow(() => analysisButtonView = (AnalysisEventButtonView)App.Current.ViewLocator.Retrieve(dashboard.ViewModels [0].View)); Assert.DoesNotThrow(() => timerButtonView = (TimerButtonView)App.Current.ViewLocator.Retrieve(dashboard.ViewModels [5].View)); }