public AutoMergeController(BusinessLogic.AutoMerge.Base.IInsert insertBLL,
                             BusinessLogic.AutoMerge.Base.ITrigger triggerBLL,
                             BusinessLogic.AutoMerge.Base.IUpdate updateBLL,
                             BusinessLogic.AutoMerge.Base.ISelect selectBLL)
 {
     this.insertBLL = insertBLL;
     this.triggerBLL = triggerBLL;
     this.updateBLL = updateBLL;
     this.selectBLL = selectBLL;
 }
示例#2
0
 public Trigger(BusinessLogic.AutoMerge.Base.ISelect selectAutoMergeBLL,
                 BusinessLogic.Notifications.Base.ISend notificationsSendBLL,
                 BusinessLogic.Core.Base.ISettings settingsBLL,
                 BusinessLogic.AutoMergeLog.Base.IInsert insertLogBLL)
 {
     this.selectAutoMergeBLL = selectAutoMergeBLL;
     this.notificationsSendBLL = notificationsSendBLL;
     this.settingsBLL = settingsBLL;
     this.insertLogBLL = insertLogBLL;
 }
示例#3
0
 public Update(DataAccess.AutoMerge.Base.IUpdate updateDAL, Branch.Base.IInsert insertBranchBLL,
                 BusinessLogic.AutoMergeSubscription.Base.IUpsert autoMergeSubscriptionUpsertBLL,
                 BusinessLogic.AutoMerge.Base.ISchedule scheduleBLL,
                 BusinessLogic.AutoMergeOptions.Base.IUpsert autoMergeOptionsUpsertBLL,
                 BusinessLogic.AutoMerge.Base.ISelect selectAutoMergeBLL)
 {
     this.updateDAL = updateDAL;
     this.insertBranchBLL = insertBranchBLL;
     this.autoMergeSubscriptionUpsertBLL = autoMergeSubscriptionUpsertBLL;
     this.scheduleBLL = scheduleBLL;
     this.autoMergeOptionsUpsertBLL = autoMergeOptionsUpsertBLL;
     this.selectAutoMergeBLL = selectAutoMergeBLL;
 }
示例#4
0
        public void Init()
        {
            this.branchSelectBLL = new Moq.Mock<Branch.Base.ISelect>();
            this.selectDAL = new Moq.Mock<DataAccess.AutoMerge.Base.ISelect>();
            this.selectAutoMergeSubscriptionBLL = new Mock<AutoMergeSubscription.Base.ISelect>();
            this.selectAutoMergeOptionsBLL = new Mock<AutoMergeOptions.Base.ISelect>();
            this.selectAutoMergeLogBLL = new Mock<AutoMergeLog.Base.ISelect>();
            merges = new List<Entities.AutoMerge>()
            {
                new Entities.AutoMerge()
                {
                    Frequency = Entities.Enums.MergeFrequency.Daily,
                    Id = 1,
                    SourceId = 1,
                    TargetId = 2
                }
            };

            branches = new List<Entities.Branch>()
            {
                new Entities.Branch()
                {
                    Id = 1,
                    Url = "",
                    RepositoryType = Entities.Enums.RepositoryType.Svn
                },
                new Entities.Branch()
                {
                    Id = 2,
                    Url = "",
                    RepositoryType = Entities.Enums.RepositoryType.Svn
                }
            };
            selectDAL.Setup(x => x.Execute(out total, It.IsAny<int>(), It.IsAny<int>())).Returns(merges);
            branchSelectBLL.Setup(x => x.Execute(It.IsAny<List<int>>())).Returns(branches);

            this.selectBLL = new BusinessLogic.AutoMerge.Select(selectDAL.Object, branchSelectBLL.Object, selectAutoMergeSubscriptionBLL.Object, selectAutoMergeOptionsBLL.Object, selectAutoMergeLogBLL.Object);
        }
示例#5
0
 public Schedule(BusinessLogic.AutoMerge.Base.ISelect selectAutoMergeBLL,
                 DataAccess.AutoMerge.Base.IUpdate updateAutoMergeDAL)
 {
     this.selectAutoMergeBLL = selectAutoMergeBLL;
     this.updateAutoMergeDAL = updateAutoMergeDAL;
 }