Ejemplo n.º 1
0
 public AllergyUserService(IAllergyUserRepository allergyUserRepository, IAllergyRepository allergyRepository, IUserRepository userRepository, IUnitOfWork unitOfWork)
 {
     _allergyUserRepository = allergyUserRepository;
     _allergyRepository     = allergyRepository;
     _userRepository        = userRepository;
     _unitOfWork            = unitOfWork;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public AllergyService(IAllergyRepository allergyRepository)
        {
            if (allergyRepository == null)
            {
                throw new ArgumentNullException(nameof(allergyRepository));
            }

            this.allergyRepository = allergyRepository;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public StudentService(IStudentRepository repository,
                       IAllergyService allergyService, IAllergyRepository allergyRepository)
 {
     if (repository == null)
     {
         throw new ArgumentNullException("repository");
     }
     this.repository        = repository;
     this.allergyRepository = allergyRepository;
 }
Ejemplo n.º 4
0
 public AdminViewModel()
 {
     _productRepository = new ProductRepository();
     _categoryRepository = new CategoryRepository();
     _locationRepository = new LocationRepository();
     _serviceRepository = new ServiceRepository();
     _allergyRepository = new AllergyRepository();
     _immunizationRepository = new ImmunizationRepository();
     _medicationRepository = new MedicationRepository();
     _templateRepository = new TemplateRepository();
 }
Ejemplo n.º 5
0
 public AdminViewModel()
 {
     _productRepository      = new ProductRepository();
     _categoryRepository     = new CategoryRepository();
     _locationRepository     = new LocationRepository();
     _serviceRepository      = new ServiceRepository();
     _allergyRepository      = new AllergyRepository();
     _immunizationRepository = new ImmunizationRepository();
     _medicationRepository   = new MedicationRepository();
     _templateRepository     = new TemplateRepository();
 }
 public PatientsController(IPatientRepository patients,
                           IPatientDetailsRepository patientDetails,
                           IAllergyRepository allergies,
                           IMedicationRepository medications,
                           IDiagnosisRepository diagnoses,
                           IClinicalNoteRepository clinicalNotes,
                           IContactRepository contacts)
 {
     this.Patients       = patients;
     this.PatientDetails = patientDetails;
     this.Allergies      = allergies;
     this.Medications    = medications;
     this.Diagnoses      = diagnoses;
     this.ClinicalNotes  = clinicalNotes;
     this.Contacts       = contacts;
 }
Ejemplo n.º 7
0
 public DeleteAllergyHandler(IAllergyRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 8
0
 public AllergyManager(IAllergyRepository allergyRepository)
 {
     _allergyRepository = allergyRepository;
 }
Ejemplo n.º 9
0
 public GetAllergyByIdHandler(IAllergyRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 10
0
 public void setAllergy(IAllergyRepository allergyRepository)
 {
     this.allergyRepository = allergyRepository;
 }
Ejemplo n.º 11
0
 public CreateAllergyHandler(IAllergyRepository repository)
 {
     _repository = repository;
 }
 public AllergyController(IAllergyRepository allergyRepository)
 {
     this._allergyRepository = allergyRepository;
 }
Ejemplo n.º 13
0
 public AllergyController(IUserRepository userRepository, IAllergyRepository allergyRepository)
 {
     _userRepository    = userRepository;
     _allergyRepository = allergyRepository;
 }
Ejemplo n.º 14
0
 public GetAllAllergiesHandler(IAllergyRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AllergyFactory"/> class.
 /// </summary>
 /// <param name="allergyRepository">The allergy repository.</param>
 public AllergyFactory( IAllergyRepository allergyRepository )
 {
     _allergyRepository = allergyRepository;
 }
Ejemplo n.º 16
0
 public AllergyService(IAllergyRepository allergyRepository)
 {
     this.allergyRepository = allergyRepository;
 }
Ejemplo n.º 17
0
 public AllergyService(IAllergyRepository allergyRepository, IUnitOfWork unitOfWork)
 {
     _allergyRepository = allergyRepository;
     _unitOfWork        = unitOfWork;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AllergyFactory"/> class.
 /// </summary>
 /// <param name="allergyRepository">The allergy repository.</param>
 public AllergyFactory(IAllergyRepository allergyRepository)
 {
     _allergyRepository = allergyRepository;
 }