public TaskUnitOfWork(TaskContext taskContext, ITaskRepository repository, ITomatoRepository tomatoRepository, IMediator mediator)
 {
     _dbContext       = taskContext;
     TaskRepository   = repository;
     TomatoRepository = tomatoRepository;
     Mediator         = mediator;
 }
Exemple #2
0
 public TaskUnitOfWorkTest(ITaskRepository taskRepository, ITomatoRepository tomatoRepository)
 {
     this.TaskRepository   = taskRepository;
     this.TomatoRepository = tomatoRepository;
 }
 public TaskQueries(ITaskRepository taskRepository, ITomatoRepository tomatoRepository, IMapper mapper)
 {
     _taskRepository       = taskRepository;
     this.tomatoRepository = tomatoRepository;
     _mapper = mapper;
 }
 public void Init()
 {
     _tomatoRepository = new TomatoRepository();
 }