Example #1
0
 public AdminsService(IAdminRepository adminRepository, IEquipmentTypeRepository equipmentTypeRepository, IContactMessageRepository contactMessageRepository, IMedicationTypeRepository medicationTypeRepository,
                      IMedicRepository medicRepository, IAppointmentRepository appointmentRepository)
 {
     this.adminRepository          = adminRepository;
     this.equipmentTypeRepository  = equipmentTypeRepository;
     this.contactMessageRepository = contactMessageRepository;
     this.medicationTypeRepository = medicationTypeRepository;
     this.medicRepository          = medicRepository;
     this.appointmentRepository    = appointmentRepository;
 }
 public SubmitContactMessageStrategy(
     ILogService logService,
     ICommunicationService communicationService,
     IConfigurationService configurationService,
     IContactMessageRepository contactMessageRepository)
 {
     _logService               = logService;
     _communicationService     = communicationService;
     _configurationService     = configurationService;
     _contactMessageRepository = contactMessageRepository;
 }
        public void SetUp()
        {
            _repository = Container.GetInstance <IContactMessageRepository>();

            var mongoConnectionString = MongoConfiguration.CommunicationsDb;
            var mongoDbName           = MongoUrl.Create(mongoConnectionString).DatabaseName;

            _database = new MongoClient(mongoConnectionString)
                        .GetServer()
                        .GetDatabase(mongoDbName);

            _collection = _database.GetCollection <MongoContactMessage>(CollectionName);
            _query      = Query.EQ("UserId", TestUserId);
            _collection.Remove(_query);
        }
Example #4
0
 public ClientsService(IClientRepository clientRepository, IContactMessageRepository contactMessageRepository,
                       IMedicationTypeRepository medicationTypeRepository, IMedicRepository medicRepository,
                       IAppointmentRepository appointmentRepository, IEquipmentTypeRepository equipmentTypeRepository,
                       ITreatmentRepository treatmentRepository, IMedication_TreatmentRepository medication_TreatmentRepository,
                       IEquipment_TreatmentRepository equipment_TreatmentRepository)
 {
     this.clientRepository               = clientRepository;
     this.contactMessageRepository       = contactMessageRepository;
     this.medicationTypeRepository       = medicationTypeRepository;
     this.medicRepository                = medicRepository;
     this.appointmentRepository          = appointmentRepository;
     this.equipmentTypeRepository        = equipmentTypeRepository;
     this.treatmentRepository            = treatmentRepository;
     this.medication_TreatmentRepository = medication_TreatmentRepository;
     this.equipment_TreatmentRepository  = equipment_TreatmentRepository;
 }
Example #5
0
 public ContactMessageLogger(IPersonRepository personRepository, IContactInfoRepository contactInfoRepository, IContactMessageRepository contactMessageRepository)
 {
     PersonRepository         = personRepository;
     ContactInfoRepository    = contactInfoRepository;
     ContactMessageRepository = contactMessageRepository;
 }
Example #6
0
 public ContactController(IContactMessageRepository contactRepository)
 {
     _repository = contactRepository;
 }
 public ContactMessageService(IContactMessageRepository contactMessageRepository, IUnitOfWork unitOfWork)
 {
     this._contactMessageRepository = contactMessageRepository;
     this._unitOfWork = unitOfWork;
 }
Example #8
0
 public ContactService(ILogger log, IContactMessageRepository contactRepo) : base(log)
 {
     _contactRepo = contactRepo;
 }