Пример #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
 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;
 }