public MedicamentController(IMedicamentRepository repository)
 {
     IMedicamentRepository = repository;
 }
Example #2
0
 public MedicamentService(IMedicamentRepository medicamentRepository)
 {
     this.medicamentRepository = medicamentRepository;
 }
 /// <summary>
 /// Initialise une nouvelle instance de <see cref="MedicamentController"/>
 /// </summary>
 /// <param name="medicaments">Le repository attaché à l'entité <see cref="Medicament"/></param>
 public MedicamentController(IMedicamentRepository medicaments, IMedicamentExcipientRepository medicamentExcipient, IMedicamentPathologieRepository medicamentPathologie)
 {
     _medicamentRepository           = medicaments;
     _medicamentExcipientRepository  = medicamentExcipient;
     _medicamentPathologieRepository = medicamentPathologie;
 }