public async Task Setup() { documentManager = await Runtime.GetService <DocumentManager> (); documentControllerService = await Runtime.GetService <DocumentControllerService> (); shell = (MockShell)await Runtime.GetService <IShell> (); }
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); }