public Configuration()
 {
     GroupDefinition = new BuildTreeGroupDefinition(
         Pipeline.Tree.Arrangement.GroupDefinition.Source,
         Pipeline.Tree.Arrangement.GroupDefinition.Branch,
         Pipeline.Tree.Arrangement.GroupDefinition.BuildDefinition);
 }
Ejemplo n.º 2
0
        internal static TreeBuilder Construct(params GroupDefinition[] definitions)
        {
            var groupDefinition = new BuildTreeGroupDefinition(definitions);

            var config = Substitute.For <IConfiguration>();

            config.GroupDefinition.Returns(groupDefinition);

            return(new TreeBuilder(config));
        }
        internal static TreeBuilder Construct(params GroupDefinition[] definitions)
        {
            var groupDefinition = new BuildTreeGroupDefinition(definitions ?? new GroupDefinition[0]);

            var config = Substitute.For <IConfiguration>();

            config.GroupDefinition.Returns(groupDefinition);

            var branchNameExtractor = Substitute.For <IBranchNameExtractor>();

            return(new TreeBuilder(config, branchNameExtractor));
        }
Ejemplo n.º 4
0
        public Configuration()
        {
            Projects    = new List <IProjectConfiguration>();
            Connections = new List <IConnectionData>();

            BuildsToLoadCount          = 200;
            BuildsToShow               = 5;
            UpdateInterval             = 30;
            CanceledBuildNotifyConfig  = BuildNotificationMode.RequestedByMe;
            SucceededBuildNotifyConfig = BuildNotificationMode.RequestedByMe;
            FailedBuildNotifyConfig    = BuildNotificationMode.RequestedByOrForMe;

            GroupDefinition = new BuildTreeGroupDefinition(
                Pipeline.Tree.GroupDefinition.Source,
                Pipeline.Tree.GroupDefinition.Branch,
                Pipeline.Tree.GroupDefinition.BuildDefinition);

            Culture = CultureInfo.GetCultureInfo("en-US");
        }