Пример #1
0
 public void Init()
 {
     App.Current.DrawingToolkit = new Mock <IDrawingToolkit> ().Object;
     App.Current.ViewLocator    = new VAS.Core.MVVMC.ViewLocator();
     DrawingInit.ScanViews();
     LMDrawingInit.ScanViews();
 }
Пример #2
0
 private GUIToolkit()
 {
     MainWindow = new MainWindow(this);
     MainWindow.Hide();
     Scanner.ScanViews(App.Current.ViewLocator);
     DrawingInit.ScanViews();
     LMDrawingInit.ScanViews();
     VASUIMultimediaInit.ScanViews();
 }
Пример #3
0
        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));
        }