public QAInstallersExplorerBarItem(IQaBranch qaBranch, IExplorerBarItem parent, IServiceLocator serviceLocator) : base(parent, serviceLocator) { _qaBranch = qaBranch; if (!UseLazyLoading) { foreach (var item in GetLazyLoadedItems()) { this.Items.Add(item); } } }
private void InitDependencies() { _qaBranch = Substitute.For <IQaBranch>(); _parent = Substitute.For <IExplorerBarItem>(); _explorerBarItemsRepositoryFactory = Substitute.For <IExplorerBarItemsRepositoryFactory>(); _explorerBarItemsRepository = Substitute.For <IExplorerBarItemsRepository>(); _explorerBarItemsRepositoryFactory.GetRepository(Arg.Any <IExplorerBarItem>()).Returns(_explorerBarItemsRepository); _pubSubMediator = new Spark.Wpf.Common.TestHelpers.MockPubSubMediator(); _serviceLocator = ServiceLocatorBuilder.ServiceLocator() .WithService(_explorerBarItemsRepositoryFactory) .WithService(_pubSubMediator) .Build(); }
public IExplorerBarItem CreateQAInstallersItem(IQaBranch qaBranch) { return(new QAInstallersExplorerBarItem(qaBranch, _parent, _serviceLocator)); }
public IExplorerBarItem CreateQAFeaturesBranchesItem(IQaBranch qaBranch) { return(new QaFeaturesBranchesExplorerBarItem(qaBranch, _parent, _serviceLocator)); }
public IExplorerBarItem CreateMainQaBranchItem(IQaBranch qaBranch) { return(new QaMainBranchExplorerBarItem(qaBranch, _parent, _serviceLocator)); }
public void Setup() { _qaBranch = Substitute.For <IQaBranch>(); }
public QABranchWorkspaceItem(IQaBranch qaBranch, IServiceLocator serviceLocator) : base(serviceLocator) { _logicalBranch = qaBranch; }
public NewQAInstallerEventData(IQAInstaller installer, IQaBranch qaBranch) { this.Installer = installer; this.QABranch = qaBranch; }