コード例 #1
0
        public async Task Setup()
        {
            documentManager = await Runtime.GetService <DocumentManager> ();

            documentControllerService = await Runtime.GetService <DocumentControllerService> ();

            shell = (MockShell)await Runtime.GetService <IShell> ();
        }
コード例 #2
0
        public void SetUp()
        {
            this.shell            = new MockShell();
            this.keyMappingEvent  = new MockKeyMappingEvent();
            this.fullScreenEvent  = new MockFullScreenEvent();
            this.statusEvent      = new MockStatusEvent();
            this.saveProjectEvent = new MockSaveProjectEvent();
            this.eventAggregator  = new MockEventAggregator();

            this.eventAggregator.AddMapping <KeyMappingEvent>(this.keyMappingEvent);
            this.eventAggregator.AddMapping <FullScreenEvent>(this.fullScreenEvent);
            this.eventAggregator.AddMapping <StatusEvent>(this.statusEvent);
            this.eventAggregator.AddMapping <SaveProjectEvent>(this.saveProjectEvent);
        }
コード例 #3
0
        public async Task Setup()
        {
            Runtime.RegisterServiceType <IShell, MockShell> ();
            Runtime.RegisterServiceType <ProgressMonitorManager, MockProgressMonitorManager> ();

            //			serviceProvider = ServiceHelper.SetupMockShell ();
            documentManager = await Runtime.GetService <DocumentManager> ();

            shell = await Runtime.GetService <IShell> () as MockShell;

            documentControllerService = await Runtime.GetService <DocumentControllerService> ();

            while (documentManager.Documents.Count > 0)
            {
                await documentManager.Documents[0].Close(true);
            }

            eventTracker = new DocumentManagerEventTracker(documentManager);
        }
コード例 #4
0
 public MockShellRouter(MockShell shell)
 {
     this.shell = shell;
 }