public HomeController(
     ITownsService townsService,
     ISpecialtiesService specialtiesService)
 {
     this.townsService       = townsService;
     this.specialtiesService = specialtiesService;
 }
 public CertificatesController(
     ICertificateService certificatesService, 
     ISpecialtiesService specialtiesService)
 {
     this.certificatesService = certificatesService;
     this.specialtiesService = specialtiesService;
 }
 public ProfileController(
     ISpecialtiesService specialtyService,
     IUserService userService,
     IMessageService messageService)
 {
     this.specialtyService = specialtyService;
     this.userService = userService;
     this.messageService = messageService;
 }
 public HomeController(
     IHomePageService service, 
     ICoursesService courses, 
     ISpecialtiesService specialties, 
     IUserService users)
 {
     this.homeService = service;
     this.coursesService = courses;
     this.specialtiesService = specialties;
     this.usersService = users;
 }
Exemple #5
0
        public SpecialtiesServiceTests()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString());
            var repo    = new EfDeletableEntityRepository <Specialty>(new ApplicationDbContext(options.Options));
            var service = new SpecialtiesService(repo);

            AutoMapperConfig.RegisterMappings(
                typeof(SpecialtiesIndexViewModel).GetTypeInfo().Assembly);

            this.specialtiesService = service;
            this.repository         = repo;
        }
Exemple #6
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;
 }
 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 ManageController(IUserService servce, ISpecialtiesService specialties)
 {
     this.usersService = servce;
     this.specialtiesService = specialties;
 }
 public SpecialtiesController(ISpecialtiesService specialtiesService)
 {
     this.specialtiesService = specialtiesService;
 }
 public SpecialtiesController(ISpecialtiesService specialtiesService)
 {
     _specialtiesService = specialtiesService;
 }
 public SpecialtiesController(ISpecialtiesService specialtiesService, ICoursesService coursesService)
 {
     this.specialtiesService = specialtiesService;
     this.coursesService = coursesService;
 }