예제 #1
0
 private void InitializeDataAccess(IContext context)
 {
     _sequenceDataAccess            = new SequenceDataAccess(context);
     _scriptDataAccess              = new ScriptDataAccess(context);
     _sequenceScriptDataAccess      = new SequenceScriptDataAccess(context);
     _taskDataAccess                = new TaskDataAccess(context);
     _taskScriptDataAccess          = new TaskScriptDataAccess(context);
     _taskScriptParameterDataAccess = new TaskScriptParameterDataAccess(context);
 }
 public void Cleanup()
 {
     _taskDataAccess  = null;
     _taskManager     = null;
     _parseThroughput = null;
 }
 public void Setup(BenchmarkContext context)
 {
     _parseThroughput = context.GetCounter(ParseThroughputCounterName);
     _taskDataAccess  = new TaskDataAccess();
     _taskManager     = new TaskManager(_taskDataAccess);
 }
예제 #4
0
 public TaskRemoveService(ITaskDataAccess taskDataAccess)
 {
     TaskDataAccess = taskDataAccess;
 }
예제 #5
0
 private void InitializeDataAccess(IContext context)
 {
     _projectDataAccess = new ProjectDataAccess(context);
     _scriptDataAccess  = new ScriptDataAccess(context);
     _taskDataAccess    = new TaskDataAccess(context);
 }
예제 #6
0
 public TaskCreateService(ITaskDataAccess TaskDataAccess, ICategoryGetService CategoryGetService)
 {
     this.TaskDataAccess     = TaskDataAccess;
     this.CategoryGetService = CategoryGetService;
 }
예제 #7
0
 private void InitializeDataAccess(IContext context)
 {
     _taskDataAccess         = new TaskDataAccess(context);
     _taskScriptDataAccess   = new TaskScriptDataAccess(context);
     _packageCacheDataAccess = new PackageCacheDataAccess(context);
 }
예제 #8
0
 public TaskManager(ITaskDataAccess taskDataAccess)
 {
     _taskDataAccess = taskDataAccess;
 }
예제 #9
0
 public TaskGetService(ITaskDataAccess taskDataAccess)
 {
     this.TaskDataAccess = taskDataAccess;
 }
예제 #10
0
 public TaskUpdateService(ITaskDataAccess taskDataAccess, ICategoryGetService categoryGetService)
 {
     this.TaskDataAccess     = taskDataAccess;
     this.CategoryGetService = categoryGetService;
 }
예제 #11
0
		/// <summary>
		/// This is how a component defines that its
		/// dependencies
		/// </summary>
		/// <param name="taskDataAccess">A service that we need 
		/// in order to do our work</param>
		public TaskService(ITaskDataAccess taskDataAccess)
		{
			this.taskDataAccess = taskDataAccess;
		}