private void OpenExtensionsDialogCommand_Execute() { using (var addinsView = new AddinsView()) { var dialog = new AddinsPresenter(addinsView, _model.GetService <Engine.IExtensionService>()); dialog.Show(); } }
public void Setup() { _view = new AddinViewFake(); _extensionService = Substitute.For<IExtensionService>(); _extensionPoint = Substitute.For<IExtensionPoint>(); _extensionNodes = new List<IExtensionNode>(); _extensionPoint.Extensions.Returns(_extensionNodes); _extensionService.ExtensionPoints.Returns(new []{_extensionPoint}); _presenter = new AddinsPresenter(_view, _extensionService); }
public void Setup() { _view = new AddinViewFake(); _extensionService = Substitute.For <IExtensionService>(); _extensionPoint = Substitute.For <IExtensionPoint>(); _extensionNodes = new List <IExtensionNode>(); _extensionPoint.Extensions.Returns(_extensionNodes); _extensionService.ExtensionPoints.Returns(new [] { _extensionPoint }); _presenter = new AddinsPresenter(_view, _extensionService); }
public void TearDown() { _presenter = null; _view = null; _extensionService = null; }
private void OpenExtensionsDialogCommand_Execute() { using(var addinsView = new AddinsView()) { var dialog = new AddinsPresenter(addinsView, _model.GetService<Engine.IExtensionService>()); dialog.Show(); } }