Пример #1
0
        /// <summary>
        /// create merge tasks for all work items of a state, using provided data access instance
        /// </summary>
        /// <param name="dataAccess">the implementation of the data access to use when getting the data</param>
        /// <param name="project"></param>
        /// <param name="parentState"></param>
        /// <param name="taskTitle"></param>
        public static IEnumerable <MergeTask> CreateMergeTasks(ITrackingDataAccess dataAccess, Project project, string parentState, string taskTitle)
        {
            var DAL = new Data.Tracking.TrackingData(dataAccess);

            return(DAL.CreateMergeTasks(project, parentState, taskTitle));
        }
Пример #2
0
 /// <summary>
 /// default constructor (with dependency input)
 /// </summary>
 /// <param name="trackingDataAccess">the data access object to use when getting data</param>
 public TrackingData(ITrackingDataAccess trackingDataAccess)
 {
     _trackingDataAccess = trackingDataAccess;
 }
Пример #3
0
        /// <summary>
        /// create a merge task for the supplied parent work item, using provided data access instance
        /// </summary>
        /// <param name="dataAccess">the implementation of the data access to use when getting the data</param>
        /// <param name="parent"></param>
        /// <param name="taskTitle"></param>
        public static MergeTask CreateMergeTask(ITrackingDataAccess dataAccess, WorkItem parent, string taskTitle)
        {
            var DAL = new Data.Tracking.TrackingData(dataAccess);

            return(DAL.CreateMergeTask(parent, taskTitle));
        }
Пример #4
0
        /// <summary>
        /// get work items using provided data access instance
        /// </summary>
        /// <param name="dataAccess">the implementation of the data access to use when getting the data</param>
        /// <param name="project"></param>
        /// <param name="state"></param>
        public static IEnumerable <WorkItem> GetWorkItemsByState(ITrackingDataAccess dataAccess, Project project, string state)
        {
            var DAL = new Data.Tracking.TrackingData(dataAccess);

            return(DAL.GetWorkItemsByState(project, state));
        }
Пример #5
0
        /// <summary>
        /// get work items where associated changesets have migration scripts using provided data access instance
        /// </summary>
        /// <param name="dataAccess">the implementation of the data access to use when getting the data</param>
        /// <param name="project"></param>
        /// <param name="state"></param>
        public static IEnumerable <MergeTask> GetWorkItemsWithMigrationScripts(ITrackingDataAccess dataAccess, Project project, string state)
        {
            var DAL = new Data.Tracking.TrackingData(dataAccess);

            return(DAL.GetWorkItemsWithMigrationScripts(project, state));
        }
Пример #6
0
        /// <summary>
        /// get work items using provided data access instance
        /// </summary>
        /// <param name="dataAccess">the implementation of the data access to use when getting the data</param>
        /// <param name="workItem"></param>
        public static WorkItem GetWorkItem(ITrackingDataAccess dataAccess, IWorkItem workItem)
        {
            var DAL = new Data.Tracking.TrackingData(dataAccess);

            return(DAL.GetWorkItem(workItem.Id));
        }
Пример #7
0
 /// <summary>
 /// default constructor (passes in dataaccess layer dependency)
 /// </summary>
 public TrackingRepository(ITrackingDataAccess trackingDataAccess)
 {
     TrackingDataAccess = trackingDataAccess;
 }