Example #1
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();
        }
Example #2
0
        private void InitDependencies()
        {
            _logicalBranch = LogicalBranchBuilder.LogicalBranch()
                             .WithName(_logicalBranchMajorVersion)
                             .Build();
            _logicalBranch.GetDevBranch().Returns(NoDevBranch());



            _pubSubMediator = new MockPubSubMediator();

            _explorerBarItemsRepositoryFactory = Substitute.For <IExplorerBarItemsRepositoryFactory>();
            _explorerBarItemsRepository        = Substitute.For <IExplorerBarItemsRepository>();
            _explorerBarItemsRepositoryFactory.GetRepository(Arg.Any <IExplorerBarItem>()).Returns(_explorerBarItemsRepository);

            _serviceLocator = ServiceLocatorBuilder.ServiceLocator()
                              .WithService(_explorerBarItemsRepositoryFactory)
                              .WithService(_pubSubMediator)
                              .Build();
        }