コード例 #1
0
 private void OpenExtensionsDialogCommand_Execute()
 {
     using (var addinsView = new AddinsView())
     {
         var dialog = new AddinsPresenter(addinsView, _model.GetService <Engine.IExtensionService>());
         dialog.Show();
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void TearDown()
 {
     _presenter = null;
     _view = null;
     _extensionService = null;
 }
コード例 #5
0
ファイル: MainPresenter.cs プロジェクト: nunit/nunit-gui
 private void OpenExtensionsDialogCommand_Execute()
 {
     using(var addinsView = new AddinsView())
     {
         var dialog = new AddinsPresenter(addinsView, _model.GetService<Engine.IExtensionService>());
         dialog.Show();
     }
 }
コード例 #6
0
 public void TearDown()
 {
     _presenter        = null;
     _view             = null;
     _extensionService = null;
 }