public CompanyLocationGroupQueries(IUnitOfWork unitOfWork, IMapper mapper, IAccessQueries accessQueries, ICompanyQueries companyQueries)
 {
     _unitOfWork     = unitOfWork;
     _mapper         = mapper;
     _accessQueries  = accessQueries;
     _companyQueries = companyQueries;
 }
        public CompanyLocationGroupsController()
        {
            _context    = new AppointmentsDb.Models.AppointmentsDbContext();
            _unitOfWork = new AppointmentsDb.Pattern.UnitOfWork(_context);
            _mapper     = new AppointmentsDb.MapperStart.Automapper_Startup().StartAutomapper();

            _companyQueries = new CompanyQueries(_unitOfWork, _mapper);
            _accessQueries  = new AccessQueries(_unitOfWork, _companyQueries, _mapper);

            _companyLocationGroupQueries = new CompanyLocationGroupQueries(_unitOfWork, _mapper, _accessQueries, _companyQueries);
        }
Exemple #3
0
 public AppointmentQueries(IUnitOfWork unitOfWork, IMapper mapper, IAccessQueries accessQueries)
 {
     _unitOfWork    = unitOfWork;
     _mapper        = mapper;
     _accessQueries = accessQueries;
 }