Example #1
0
 public PharmcogenomeController(IGeneRepository geneRepository, IDiplotypeRepository diplotypeRepository, IDrugRepository drugRepository, IDrugDescriptionRepository drugDescriptionRepository)
 {
     _geneRepository            = geneRepository;
     _diplotypeRepository       = diplotypeRepository;
     _drugRepository            = drugRepository;
     _drugDescriptionRepository = drugDescriptionRepository;
 }
        public void SetupValues()
        {
            _complianceRepo = MockRepository.GenerateStub<IComplianceRepository>();
            _drugRepo = MockRepository.GenerateStub<IDrugRepository>();

            _complianceSvc = new ComplianceService(_drugRepo, _complianceRepo);
        }
Example #3
0
 public ComplianceService(
     IDrugRepository drugRepo,
     IComplianceRepository complianceRepo)
 {
     _drugRepo = drugRepo;
     _complianceRepo = complianceRepo;
 }
Example #4
0
 public HomeController(IDrugRepository drugRepository, IHostingEnvironment hostingEnvironment, ApplicationDbContext context, IStoreRepository storeRepository)
 {
     _context                = context;
     _drugRepository         = drugRepository;
     this.hostingEnvironment = hostingEnvironment;
     this.storeRepository    = storeRepository;
 }
Example #5
0
 public DiplotypeController(IDiplotypeRepository _IdiplotypeRepository, IGeneRepository _IgeneRepository, IDrugRepository _IdrugRepository, IDrugDescriptionRepository _IdrugDescriptionRepository)
 {
     _geneRepository            = _IgeneRepository;
     _diplotypeRepository       = _IdiplotypeRepository;
     _drugDescriptionRepository = _IdrugDescriptionRepository;
     _drugRepository            = _IdrugRepository;
 }
Example #6
0
 public UnitOfWork(DrugContext context,
                   IDrugRepository drugRepository,
                   ISuffixRepository suffixRepository)
 {
     _context         = context;
     DrugRepository   = drugRepository;
     SuffixRepository = suffixRepository;
 }
 public UsersApiController()
 {
     log      = log4net.LogManager.GetLogger(typeof(UsersApiController));
     userRepo = new UsersReposatory();
     preRepo  = new PrescriptionRepository();
     drugRepo = new DrugRepository();
     docRepo  = new DoctorRepository();
     u        = new UserServices(userRepo, preRepo, drugRepo, docRepo);
 }
Example #8
0
 public DrugListService(
     IComplianceService complianceSvc,
     IDrugListRepository drugListRepo,
     IDrugRepository drugRepo
     )
 {
     _drugListRepo = drugListRepo;
     _drugRepo = drugRepo;
     _complianceSvc = complianceSvc;
 }
 public UserServices(IUserRepository userRepo,
                     IPrescriptionRepository preRepo,
                     IDrugRepository drugRepo,
                     IDoctorRepository docRepo)
 {
     this.drugRepo = drugRepo;
     this.docRepo  = docRepo;
     this.preRepo  = preRepo;
     this.userRepo = userRepo;
 }
Example #10
0
 public PrescriptionBusiness(IMapper mapper,
                             IPrescriptionDetailRepository prescriptionDetailRepository,
                             IDrugRepository drugRepository,
                             IUnitRepository unitRepository,
                             ITreatmentDetailRepository treatmentDetailRepository)
 {
     _mapper = mapper;
     _prescriptionDetailRepository = prescriptionDetailRepository;
     _drugRepository            = drugRepository;
     _unitRepository            = unitRepository;
     _treatmentDetailRepository = treatmentDetailRepository;
 }
 public void InitializeValues()
 {
     _connectionString = ConfigurationManager.ConnectionStrings["FDARems"].ConnectionString;
     _drugRepo = new DrugRepository(_connectionString);
 }
Example #12
0
 public DrugController(IDrugRepository drugRepository, IMapper mapper)
 {
     this.drugRepository = drugRepository;
     this.mapper         = mapper;
 }
Example #13
0
 public FrenchDrugDirectory(IDrugRepository drugRepository, FrenchLeafletRepository leafletRepository)
 {
     _drugRepository    = drugRepository;
     _leafletRepository = leafletRepository;
 }
Example #14
0
 public HomeController(IGeneRepository geneRepository, IDrugRepository drugRepository)
 {
     _geneRepository = geneRepository;
     _drugRepository = drugRepository;
 }
 public DrugsController(IDrugRepository drugRepository, IHostingEnvironment hostingEnvironment, IStoreRepository storeRepository)
 {
     _drugRepository         = drugRepository;
     this.hostingEnvironment = hostingEnvironment;
     this.storeRepository    = storeRepository;
 }
 public TherapyRepository(ICSVStream <Therapy> stream, ISequencer <long> sequencer, IDrugRepository drugRepo)
     : base(stream, sequencer)
 {
     _drugRepository = drugRepo;
 }
 public DrugController(IDrugRepository _IDrugRepository, IDiplotypeRepository _IDiplotypeRepository, IDrugDescriptionRepository _IDrugDescriptionRepository)
 {
     _DrugRepository            = _IDrugRepository;
     _DiplotypeRepository       = _IDiplotypeRepository;
     _DrugDescriptionRepository = _IDrugDescriptionRepository;
 }
Example #18
0
 public DrugProvider(IDrugRepository drugRepository)
 {
     _drugRepository = drugRepository;
 }
Example #19
0
 public PrescriptionRepository(ICSVStream <Prescription> stream, ISequencer <long> sequencer, IDrugRepository drugRepository)
     : base(stream, sequencer)
 {
     _drugRepository = drugRepository;
 }
Example #20
0
 public DrugsController(IDrugRepository drugRepository, IMapper mapper)
 {
     _drugRepository = drugRepository;
     _mapper         = mapper;
 }
 public DrugService(IDrugRepository repository)
 {
     _repository = repository;
 }
 public DrugsController(IDrugRepository drugRepository)
 {
     _drugRepository = drugRepository;
 }
Example #23
0
 public DrugService(IDrugRepository drugRepository)
 {
     _drugRepository = drugRepository;
 }
Example #24
0
 public DrugsController(IDrugRepository drug)
 {
     _drug    = drug;
     _log4net = log4net.LogManager.GetLogger(typeof(DrugsController));
 }
Example #25
0
 public DrugService(IDrugRepository drugRepo)
 {
     _drugRepo = drugRepo;
 }