Example #1
0
        public SubTaskController()
        {
            _mainTaskRepository = new MainTaskRepository();
            _subTaskRepository  = new SubTaskRepository();

            _subTaskService = new SubTaskService(_mainTaskRepository, _subTaskRepository);
        }
Example #2
0
 public MainTaskService(IMainTaskRepository mainTaskRepository, ISubTaskRepository subTaskRepository, bool initialization = true)
 {
     _mainTaskRepository = mainTaskRepository;
     _subTaskRepository  = subTaskRepository;
     if (initialization)
     {
         _mainTaskRepository = new MainTaskRepository();
         _subTaskRepository  = new SubTaskRepository();
     }
 }