public async Task BeforeEach() { app = await TestAppInstance.Create(); app.Model.PluginFormatsManager.RegisterPluginFormats(pluginLoader.Manifest); Factory.Create(app.Model.ExpensibilityEntryPoint); }
public async Task Before() { viewsFactory = Substitute.For <PA.UI.Presenters.Factory.IViewsFactory>(); viewsFactory.CreateMessageContentView().SetViewModel( Arg.Do <PA.UI.Presenters.MessagePropertiesDialog.IViewModel>(x => messagePropertiesViewModel = x)); messagePropertiesOSView = new object(); viewsFactory.CreateMessageContentView().OSView.Returns(messagePropertiesOSView); app = await TestAppInstance.Create(); app.Model.PluginFormatsManager.RegisterPluginFormats(manifest); PA.UI.Presenters.Factory.Create( PA.Factory.Create(app.Model.ExpensibilityEntryPoint), app.Presentation.ExpensibilityEntryPoint, app.Model.ExpensibilityEntryPoint, viewsFactory ); await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("network_trace_with_keys_1.tar.gz")); await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty); }