Exemplo n.º 1
0
 public RootBranchExplorerBarItem(IRootBranch rootBranch, IExplorerBar explorerBar, IServiceLocator serviceLocator)
     : base(explorerBar, serviceLocator)
 {
     _rooBranch = rootBranch;
     AddDevBranchItem();
     AddQaBranchItem();
     AddProductionBranchItem();
     SubscribeToEvent <CreateDevBranchFinishEventData>(CreateDevBranchEventHandler);
 }
Exemplo n.º 2
0
        private void DoTheFirstPublish(IRootBranch newBranchInstance)
        {
            var firstPublishPayloadBuilder = new FirstPublishPayloadBuilder(_publishPayloadBuilderFactory(),
                                                                            newBranchInstance.Version.GetFirstVersion());

            foreach (var comp in newBranchInstance.GetQaBranch().GetComponents())
            {
                comp.AcceptCommandVisitor(() => firstPublishPayloadBuilder);
            }

            newBranchInstance.GetQaBranch().Publish(firstPublishPayloadBuilder.Build());
        }
Exemplo n.º 3
0
 public ProductionEnvironment(Guid id,
                              string name,
                              Folders.ProductionEnvironmentFolder location,
                              IRootBranch owner,
                              IServiceLocator serviceLocator)
 {
     _location       = location;
     _id             = id;
     Name            = name;
     _owner          = owner;
     _serviceLocator = serviceLocator;
 }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
 public IDevBranch CreateDevBranch(Folders.DevFolder devBranchFolder, IRootBranch owner)
 {
     return(new DevBranch(devBranchFolder, owner, _serviceLocator));
 }
Exemplo n.º 6
0
 public IQaBranch CreateQaBranch(Folders.QAFolder qaBranchFolder, IRootBranch owner)
 {
     return(new QaBranch(qaBranchFolder, owner, _serviceLocator));
 }
Exemplo n.º 7
0
 public RootBranchWorkspaceItem(IRootBranch rootBranch, IServiceLocator serviceLocator)
     : base(serviceLocator)
 {
     _rootBranch = rootBranch;
 }
Exemplo n.º 8
0
 public NewRootBranchEventData(IRootBranch rootBranch)
 {
     this.RootBranch = rootBranch;
 }
Exemplo n.º 9
0
 public ProductionBranch(Folders.ProdFolder productionFolder, IRootBranch owner, IServiceLocator serviceLocator)
 {
     _productionFolder = productionFolder;
     _serviceLocator   = serviceLocator;
     _owner            = owner;
 }
Exemplo n.º 10
0
 public IExplorerBarItem CreateRootBranchItem(IRootBranch rootBranch, IExplorerBar explorerBar)
 {
     return(new RootBranchExplorerBarItem(rootBranch, explorerBar, _serviceLocator));
 }
Exemplo n.º 11
0
 public CreateDevBranchFinishEventData(IRootBranch logicalBranch)
 {
     this.LogicalBranch = logicalBranch;
 }
Exemplo n.º 12
0
 public DevBranch(Folders.DevFolder devFolder, IRootBranch owner, IServiceLocator serviceLocator)
     : base(devFolder, owner, serviceLocator)
 {
 }
Exemplo n.º 13
0
 public EnvironmentBranch(TLocation location, IRootBranch owner, IServiceLocator serviceLocator)
 {
     this.Location       = location;
     this.ServiceLocator = serviceLocator;
     this.Owner          = owner;
 }
Exemplo n.º 14
0
 public CreateDevelopmentBranchAction(IRootBranch logicalBranch, IServiceLocator serviceLocator)
 {
     _logicalBranch  = logicalBranch;
     _serviceLocator = serviceLocator;
 }
Exemplo n.º 15
0
 public CreateRootBranchAction(IRootBranch rootBranch, IServiceLocator serviceLocator)
 {
     _rootBranch     = rootBranch;
     _serviceLocator = serviceLocator;
 }
Exemplo n.º 16
0
 public QaBranch(Folders.QAFolder qaFolder, IRootBranch owner, IServiceLocator serviceLocator)
     : base(qaFolder, owner, serviceLocator)
 {
 }