public ChatHub(
     IDoctorsService doctorsService,
     IPatientsService patientsService)
 {
     this.doctorsService  = doctorsService;
     this.patientsService = patientsService;
 }
 public PatientsController(
     IPatientsService patientsService,
     IDoctorsService doctorsService)
 {
     this.patientsService = patientsService;
     this.doctorsService  = doctorsService;
 }
 public PrescriptionsController(
     IPrescriptionsService prescriptionsService,
     IPatientsService patientsService,
     IDoctorsService doctorsService)
 {
     this.prescriptionsService = prescriptionsService;
     this.patientsService      = patientsService;
     this.doctorsService       = doctorsService;
 }
Beispiel #4
0
 public DoctorsController(
     IDoctorsService doctorsService,
     ISpecialitiesService specialitiesService,
     UserManager <ApplicationUser> userManager)
 {
     this.doctorsService      = doctorsService;
     this.specialitiesService = specialitiesService;
     this.userManager         = userManager;
     mapper = AutoMapperConfig.MapperInstance;
 }
Beispiel #5
0
 public RolesController(
     IRolesService rolesService,
     IUsersService usersService,
     IDoctorsService doctorsService,
     ICareersInfoService careersInfoService)
 {
     this.rolesService       = rolesService;
     this.usersService       = usersService;
     this.doctorsService     = doctorsService;
     this.careersInfoService = careersInfoService;
 }
 public RequestsController(
     IPatientRequestService requests,
     IPatientService patients,
     IUsersService users,
     IDoctorsService doctors)
 {
     this.requests = requests;
     this.patients = patients;
     this.users = users;
     this.doctors = doctors;
 }
Beispiel #7
0
 public HospitalsController(
     IHospitalsService hospitals,
     IDoctorsService doctors,
     IUsersService users,
     IDepartmentsService departments)
 {
     this.hospitals   = hospitals;
     this.doctors     = doctors;
     this.users       = users;
     this.departments = departments;
 }
 public ConsultationsController(
     IDoctorsService doctorsService,
     IConsultationsService consultationsService,
     IPatientsService patientsService,
     IEventsService eventsService)
 {
     this.doctorsService       = doctorsService;
     this.consultationsService = consultationsService;
     this.patientsService      = patientsService;
     this.eventsService        = eventsService;
 }
 public HospitalsController(
     IHospitalsService hospitals,
     IDoctorsService doctors,
     IUsersService users,
     IDepartmentsService departments)
 {
     this.hospitals = hospitals;
     this.doctors = doctors;
     this.users = users;
     this.departments = departments;
 }
Beispiel #10
0
 public RequestsController(
     IPatientRequestService requests,
     IPatientService patients,
     IUsersService users,
     IDoctorsService doctors)
 {
     this.requests = requests;
     this.patients = patients;
     this.users    = users;
     this.doctors  = doctors;
 }
Beispiel #11
0
 public DoctorsController(
     IDoctorsService doctorsService,
     IConsultationsService consultationsService,
     IPatientsService patientsService,
     ITownsService townsService)
 {
     this.doctorsService       = doctorsService;
     this.consultationsService = consultationsService;
     this.patientsService      = patientsService;
     this.townsService         = townsService;
 }
Beispiel #12
0
 public AddModel(
     IDoctorsService doctorsService,
     IPatientsService patientsService,
     IAppointmentsService appointmentsService,
     IManipulationsService manipulationsService,
     UserManager <User> userManager)
 {
     this.doctorsService       = doctorsService;
     this.patientsService      = patientsService;
     this.appointmentsService  = appointmentsService;
     this.manipulationsService = manipulationsService;
     this.userManager          = userManager;
 }
 public EventsService(
     IDeletableEntityRepository <CalendarEvent> eventsRepository,
     IDeletableEntityRepository <Consultation> consultationsRepository,
     IDoctorsService doctorsService,
     IPatientsService patientsService,
     IEmailsService emailsService)
 {
     this.eventsRepository        = eventsRepository;
     this.consultationsRepository = consultationsRepository;
     this.doctorsService          = doctorsService;
     this.patientsService         = patientsService;
     this.emailsService           = emailsService;
 }
Beispiel #14
0
 public StatisticsController(
     IDoctorsService doctorsService,
     ITownsService townsService,
     IPatientsService patientsService,
     IConsultationsService consultationsService,
     ISpecialtiesService specialtiesService)
 {
     this.doctorsService       = doctorsService;
     this.townsService         = townsService;
     this.patientsService      = patientsService;
     this.consultationsService = consultationsService;
     this.specialtiesService   = specialtiesService;
 }
Beispiel #15
0
 public ConsultationsService(
     IDeletableEntityRepository <Doctor> doctorRepository,
     IDeletableEntityRepository <Consultation> consultationsRepository,
     IDeletableEntityRepository <Patient> patientsRepository,
     IEmailsService emailsService,
     IDoctorsService doctorsService,
     IPatientsService patientsService)
 {
     this.doctorRepository        = doctorRepository;
     this.consultationsRepository = consultationsRepository;
     this.patientsRepository      = patientsRepository;
     this.emailsService           = emailsService;
     this.doctorsService          = doctorsService;
     this.patientsService         = patientsService;
 }
Beispiel #16
0
 public IndexModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IUsersService usersService,
     IDoctorsService doctorsService,
     ICareersInfoService careersInfoService,
     ICloudinaryService cloudinaryService,
     IProfilePictureService profilePictureService)
 {
     this._userManager          = userManager;
     this._signInManager        = signInManager;
     this.usersService          = usersService;
     this.careersInfoService    = careersInfoService;
     this.doctorsService        = doctorsService;
     this.cloudinaryService     = cloudinaryService;
     this.profilePictureService = profilePictureService;
 }
 public RegisterDoctor(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterDoctor> logger,
     IUsersService usersService,
     ITownsService townsService,
     IDoctorsService doctorsService,
     ISpecialtiesService specialtiesService,
     IConfiguration configuration,
     IEmailSender emailSender)
 {
     this.userManager        = userManager;
     this.signInManager      = signInManager;
     this.logger             = logger;
     this.usersService       = usersService;
     this.townsService       = townsService;
     this.doctorsService     = doctorsService;
     this.specialtiesService = specialtiesService;
     this.configuration      = configuration;
     this.emailSender        = emailSender;
 }
        public BaseTestClass()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString());

            this.EventsRepository        = new EfDeletableEntityRepository <CalendarEvent>(new ApplicationDbContext(options.Options));
            this.ConsultationsRepository = new EfDeletableEntityRepository <Consultation>(new ApplicationDbContext(options.Options));
            this.DoctorsRepository       = new EfDeletableEntityRepository <Doctor>(new ApplicationDbContext(options.Options));
            this.UsersRepository         = new EfDeletableEntityRepository <ApplicationUser>(new ApplicationDbContext(options.Options));
            this.PatientsRepository      = new EfDeletableEntityRepository <Patient>(new ApplicationDbContext(options.Options));
            this.PrescribtionsRepository = new EfDeletableEntityRepository <Prescription>(new ApplicationDbContext(options.Options));

            this.EmailSender   = new SendGridEmailSender("test");
            this.EmailsService = new EmailsService(this.EmailSender);

            this.DoctorsService = new DoctorsService(
                this.DoctorsRepository,
                this.UsersRepository,
                this.EmailsService,
                this.PatientsRepository);

            this.PatientsService = new PatientsService(this.PatientsRepository);

            this.ConsultationsService = new ConsultationsService(
                this.DoctorsRepository,
                this.ConsultationsRepository,
                this.PatientsRepository,
                this.EmailsService,
                this.DoctorsService,
                this.PatientsService);

            this.EventsService = new EventsService(
                this.EventsRepository,
                this.ConsultationsRepository,
                this.DoctorsService,
                this.PatientsService,
                this.EmailsService);

            this.PrescriptionsService = new PrescriptionsService(this.PrescribtionsRepository);
        }
 public AppointmentsController(IDoctorsService doctorsService, IAppointmentsService appointmentsService)
 {
     this.doctorsService      = doctorsService;
     this.appointmentsService = appointmentsService;
 }
 public AutoCompleteController(IDoctorsService doctors)
 {
     this.doctors = doctors;
 }
Beispiel #21
0
 public DoctorsController(IDoctorsService doctorsService, IPersonService userService)
 {
     _doctorsService = doctorsService;
     _userService    = userService;
 }
Beispiel #22
0
 public DoctorsController(IDoctorsService service)
 {
     _service = service;
 }
 public DoctorsController(IDoctorsService doctorsService, ICategoriesService categoriesService)
 {
     this.doctorsService    = doctorsService;
     this.categoriesService = categoriesService;
 }
 public DoctorsController(IDoctorsService doctors)
 {
     this.doctors = doctors;
 }
Beispiel #25
0
 public DoctorsController(IDoctorsService doctorsService)
 {
     _doctorsService = doctorsService;
 }
 public AutoCompleteController(IDoctorsService doctors)
 {
     this.doctors = doctors;
 }
Beispiel #27
0
 public ApprovalController(IDoctorsService doctorsService)
 {
     this.doctorsService = doctorsService;
 }
 public AppointmentsController(IDoctorsService doctorsService, IAppointmentsService appointmentsService)
 {
     this.doctorsService = doctorsService;
     this.appointmentsService = appointmentsService;
 }