Esempio n. 1
0
 public QAInstallersExplorerBarItem(IQaBranch qaBranch, IExplorerBarItem parent, IServiceLocator serviceLocator) : base(parent, serviceLocator)
 {
     _qaBranch = qaBranch;
     if (!UseLazyLoading)
     {
         foreach (var item in GetLazyLoadedItems())
         {
             this.Items.Add(item);
         }
     }
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public IExplorerBarItem CreateQAInstallersItem(IQaBranch qaBranch)
 {
     return(new QAInstallersExplorerBarItem(qaBranch, _parent, _serviceLocator));
 }
Esempio n. 4
0
 public IExplorerBarItem CreateQAFeaturesBranchesItem(IQaBranch qaBranch)
 {
     return(new QaFeaturesBranchesExplorerBarItem(qaBranch, _parent, _serviceLocator));
 }
Esempio n. 5
0
 public IExplorerBarItem CreateMainQaBranchItem(IQaBranch qaBranch)
 {
     return(new QaMainBranchExplorerBarItem(qaBranch, _parent, _serviceLocator));
 }
Esempio n. 6
0
 public void Setup()
 {
     _qaBranch = Substitute.For <IQaBranch>();
 }
Esempio n. 7
0
 public QABranchWorkspaceItem(IQaBranch qaBranch, IServiceLocator serviceLocator)
     : base(serviceLocator)
 {
     _logicalBranch = qaBranch;
 }
Esempio n. 8
0
 public NewQAInstallerEventData(IQAInstaller installer, IQaBranch qaBranch)
 {
     this.Installer = installer;
     this.QABranch  = qaBranch;
 }