Ejemplo n.º 1
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);
        }
        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);
        }
Ejemplo n.º 3
0
 public void TearDown()
 {
     _presenter = null;
     _view = null;
     _extensionService = null;
 }
 public void TearDown()
 {
     _presenter        = null;
     _view             = null;
     _extensionService = null;
 }