public AdminController(ICourseService course, ISpecializationService specialization, IJournalService journal) { _courseService = course; _specializationService = specialization; _journalService = journal; UserManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_context)); }
// Constructors #region Constructors public AppointmentsViewModel( IReservationService reservationService, IScheduleService scheduleService, IPatientService patientService, ISpecializationService specializationService, IDoctorService doctorService) { _reservationService = reservationService; _scheduleService = scheduleService; _patientService = patientService; _specializationService = specializationService; _doctorService = doctorService; SelectedDate = DateTime.Today; UnregisterPatientCommand = new AsyncRelayCommand(UnregisterPatient, (obj) => SelectedReservation != null && SelectedReservation?.Patient != null, (ex) => throw ex); SelectReservationCommand = new RelayCommand(SelectReservation); OpenReservationDetailsCommand = new RelayCommand(OpenReservationDetails); SetSelectedDateToTodayCommand = new RelayCommand((obj) => SelectedDate = DateTime.Now); SetSelectedDoctorToNullCommand = new RelayCommand((obj) => SelectedDoctor = null); SetSelectedSpecializationToNullCommand = new RelayCommand((obj) => SelectedSpecialization = null); LoadSchedules(); LoadDoctors(); LoadSpecializations(); }
// Constructors #region Constructors public SpecializationFormViewModel(ISpecializationService specializationService, SpecializationFormValidator specializationFormValidator) { _specializationService = specializationService; _specializationFormValidator = specializationFormValidator; SubmitSpecializationFormCommand = new AsyncRelayCommand(SubmitSpecializationForm, CanSubmitSpecializationForm, (ex) => throw ex); CancelSpecializationFormCommand = new RelayCommand(CancelSpecializationForm); }
public EducationalDepartmentController(ICathedraService servC, IFacultyService servF, IKnowledgeAreaService servA, ISpecializationService servS, ISpecialityService serv) { cathedra = servC; area = servA; faculty = servF; specialization = servS; speciality = serv; }
public LoockupManagementService(ISpecialityService specialityService, ISpecializationService specializationService, IProfessorProfileService professorProfileService, IGroupService groupService, ISubjectService subjectService, IThemeService themeService) { this.specialityService = specialityService; this.specializationService = specializationService; this.professorProfileService = professorProfileService; this.groupService = groupService; this.subjectService = subjectService; this.themeService = themeService; }
public DoctorService(IMapper mapper, IRepository <Doctor> doctorRepository, ISpecializationService specializationService, IRepository <Visit> visitRepository) { _doctorRepository = doctorRepository; _visitRepository = visitRepository; _specializationService = specializationService; _mapper = mapper; }
public HomeController(ICourseService course, ISpecializationService specialization, IJournalService journal) { _courseService = course; _specializationService = specialization; _journalService = journal; Context = new ApplicationDbContext(); UserManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(Context)); RoleManager = new RoleManager <IdentityRole>(new RoleStore <IdentityRole>(new ApplicationDbContext())); logger.Trace("Home controller init"); }
public DoctorCreateDto( IDoctorService doctorService, IPersonService personService, ISpecializationService specializationService, IPasswordEncryptionUtil passwordEncryptionUtil) { _doctorService = doctorService; _personService = personService; _specializationService = specializationService; _passwordEncryptionUtil = passwordEncryptionUtil; }
public DoctorController(UserManager <ApplicationUser> userManager, IUserService userService, IMapper mapper, IRepository <Hospital.Model.Entities.Doctor> doctorRepository, IUserRepository userRepository, ISpecializationService specializationService) { _userService = userService; _userManager = userManager; _mapper = mapper; _doctorRepository = doctorRepository; _userRepository = userRepository; _specializationService = specializationService; }
public HomeController(UserManager <ApplicationUser> userManager, IDoctorService doctorService, IMedicamentService medicamentService, IPrescriptionService prescriptionService, IPatientService patientAccountService, IVisitService visitService, ISpecializationService specializationService, IReferralService referralService) { _userManager = userManager; _doctorService = doctorService; _medicamentService = medicamentService; _prescriptionService = prescriptionService; _patientAccountService = patientAccountService; _visitService = visitService; _specializationService = specializationService; _referralService = referralService; }
public _HomeController(IPatientService patientService, SiteUserManager siteUserManager, IDoctorService doctorService, ISpecializationService specializationService, ITimeSpanEventService timeSpanEventService, IUserEventsService userEventsService) { _patientService = patientService; _siteUserManager = siteUserManager; _doctorService = doctorService; _specializationService = specializationService; _timeSpanEventService = timeSpanEventService; _userEventsService = userEventsService; }
public LawyerController(ApplicationDbContext context, RoleManager <AppRole> roleManager, UserManager <AppUser> userManager, ILawyerService lawyerService, IHostingEnvironment hostingEnvironment, IDegreeService degreeService, ISpecializationService specializationService, ICaseCategoryService caseCategoryService) { _context = context; _roleManager = roleManager; _userManager = userManager; _lawyerService = lawyerService; _hostingEnvironment = hostingEnvironment; _degreeService = degreeService; _specializationService = specializationService; _caseCategoryService = caseCategoryService; AVM = new AppointmentVM(); }
public GenerateScheduleViewModelFactory( IScheduleService scheduleService, IDoctorService doctorService, ISpecializationService specializationService, SpecializationFormValidator specializationFormValidator, GenerateScheduleValidator generateScheduleValidator) { _scheduleService = scheduleService; _doctorService = doctorService; _specializationService = specializationService; _specializationFormValidator = specializationFormValidator; _generateScheduleValidator = generateScheduleValidator; }
public AppointmentsViewModelFactory( IReservationService reservationService, IScheduleService scheduleService, IPatientService patientService, ISpecializationService specializationService, IDoctorService doctorService) { _reservationService = reservationService; _scheduleService = scheduleService; _patientService = patientService; _specializationService = specializationService; _doctorService = doctorService; }
public HomeController(UserManager <ApplicationUser> userManager, IMapper mapper, IVisitService visitService, IDoctorService doctorService, ISpecializationService specializationService, IPatientService patientService) { _visitService = visitService; _doctorService = doctorService; _specializationService = specializationService; _patientService = patientService; _mapper = mapper; _userManager = userManager; }
public CurriculumDepartmentController(ICycleService servCy, ISpecializationService servS, IFormEducationService servFE, IEducationalDegreeService servED, IPlanEducationalProcessService servPE, IFormDeliveryService servFD, ICurriculumService servCu, IUnderCycleService servUC, IKnowledgeAreaService servK, IFacultyService servF, ICathedraService servCa) { cycle = servCy; specialization = servS; formEducation = servFE; educationalDegree = servED; planEducationalProcess = servPE; formDelivery = servFD; curriculum = servCu; underCycle = servUC; knowledgeArea = servK; faculty = servF; cathedra = servCa; }
public EducationController(IUserService IUserService, IEducationService IEducationService, IClassService IClassService, ICollegeService ICollegeService, IDisciplineService IDisciplineService, IEducationCategoryService IEducationCategoryService, ISpecializationService ISpecializationService, IUniversityService IUniversityService, IEducationCategoryUniversityBoardMappingService IEducationCategoryUniversityBoardMappingService) { this._IUserService = IUserService; this._IEducationService = IEducationService; _educationDetails = new EmployeeEducationDetail(); this._IClassService = IClassService; _class = new Master_Class(); this._ICollegeService = ICollegeService; _college = new Master_College(); this._IDisciplineService = IDisciplineService; _discipline = new Master_Discipline(); this._IEducationCategoryService = IEducationCategoryService; _educationCategory = new Master_EducationCategory(); this._ISpecializationService = ISpecializationService; _specialization = new Master_Specialization(); this._IUniversityService = IUniversityService; _university = new Master_University(); this._IEducationCategoryUniversityBoardMappingService = IEducationCategoryUniversityBoardMappingService; _educationCategoryUniversityBoardMapping = new EducationCategoryUniversityBoardMapping(); }
public SpecializationFormValidator(ISpecializationService specializationService) { _specializationService = specializationService; RuleFor(x => x.SpecializationCode) .Cascade(CascadeMode.Stop) .NotEmpty().WithMessage("Enter specialization code.") .Length(4).WithMessage("Code must be 4 characters long.") .Must(BeNumeric).WithMessage("It is not a valid number.") .MustAsync(async(code, token) => await _specializationService.GetByCode(code) == null ? true : false) .WithMessage("Code already exists."); RuleFor(x => x.SpecializationName) .Cascade(CascadeMode.Stop) .NotEmpty().WithMessage("Enter specialization name.") .Matches(_onlyLetters).WithMessage("Enter valid specialization name (letters only).") .MinimumLength(3).WithMessage("Must be at least 3 characters long") .MaximumLength(25).WithMessage("Must be at max 25 characters long") .MustAsync(async(name, token) => await _specializationService.GetByName(name) == null ? true : false) .WithMessage("Name already exists."); }
public SpecializationController(ISpecializationService service) { _service = service; }
public SpecializationsController(ISpecializationService specializationService) { _specializationService = specializationService; }
public SpecializationServiceTests() { specializationService = new SpecializationService(specializationRepository); }
public UniversityProfileManagementService(ISpecializationService specializationService) { this.specializationService = specializationService; }
public SpecializationCreateDto(ISpecializationService specializationService) { _specializationService = specializationService; }
/// <summary> /// Initializes a new instance of the <see cref="SpecializationController"/> class /// </summary> /// <param name="specializationService">Specialization service</param> public SpecializationController(ISpecializationService specializationService) { this.specializationService = specializationService; }
public SpecializationServiceTests() { this.specializationRepositoryMock = new Mock <ISpecializationRepository>(); this.sut = new SpecializationService(this.specializationRepositoryMock.Object); }
public SpecializationController(ISpecializationService service, IMapper mapper) { _service = service; _mapper = mapper; }
public SpecializationController([FromServices] ISpecializationService specializationService) { this._specializationService = specializationService; }
public void SetSpecializationService(ISpecializationService specializationService) => _specializationService = specializationService;
public SpecializationEditDto(ISpecializationService specializationService) { _specializationService = specializationService; }
public SpecializationController(ISpecializationService specializationService) { _specializationService = specializationService; }
public SpecializationController(IAccessService accessService, ISpecializationService specializationService) : base(accessService) { _specializationService = specializationService ?? throw new ArgumentException(nameof(specializationService)); }
public SpecializationController(ISpecializationService specializationService, IMapper mapper) { this.specializationService = specializationService; this.mapper = mapper; }
public DoctorController(IDoctorService doctorService, ISpecializationService specializationService) { this.doctorService = doctorService; this.specializationService = specializationService; }