public CallsController(ICallsRepository callsRepository, IAnimalsRepository animalsRepository, ITreatmentsRepository treatmentsRepository, IVaccinesRepository vaccinesRepository) { _callsRepository = callsRepository; _animalsRepository = animalsRepository; _treatmentsRepository = treatmentsRepository; _vaccinesRepository = vaccinesRepository; }
public AdminController(IUserInformationsRepository IUserInformationRepository, IAddressesRepository IAddressesRepository, IMedicalExperienceRepository IMedicalExperienceRepository, ITreatmentsRepository ITreatmentsRepository) : base() { _IUserInformationRepository = IUserInformationRepository; _IAddressesRepository = IAddressesRepository; _IMedicalExperienceRepository = IMedicalExperienceRepository; _ITreatmentsRepository = ITreatmentsRepository; }
public CallsRepository(VaccinationDbContext dbContext, IAnimalsRepository animalsRepository, ITreatmentsRepository treatmentsRepository, IVaccinesRepository vaccinesRepository, IWorkTypesRepository workTypesRepository) { _dbContext = dbContext; _animalsRepository = animalsRepository; _treatmentsRepository = treatmentsRepository; _vaccinesRepository = vaccinesRepository; _workTypesRepository = workTypesRepository; }
public TreatmentOnVisitValidator(ITreatmentsRepository treatmentsRepository, IVisitsRepository visitsRepository) { RuleFor(x => x.TreatmentId) .Cascade(CascadeMode.Stop) .NotEmpty().WithMessage("Pole nie może być puste.") .SetValidator(new BaseIdValidator <Treatment>(treatmentsRepository, "Zabieg nie istnieje.")); RuleFor(x => x.VisitId) .Cascade(CascadeMode.Stop) .NotEmpty().WithMessage("Pole nie może być puste.") .Must(visitId => visitsRepository.Exists(visitId)).WithMessage("Wizyta nie istnieje."); RuleFor(x => x.Description) .Cascade(CascadeMode.Stop) .MaximumLength(511).WithMessage("Maksymalna długość wynosi {MaxLength} znaków, wpisano {TotalLength}."); }
protected internal AppointmentsPage(IAppointmentsRepository a, IClientsRepository c, ITreatmentsRepository tr, ITechniciansRepository te) : base(a) { PageTitle = "Broneeringud"; Clients = CreateSelectList <Domain.Client.Client, ClientData>(c); Treatments = CreateSelectList <Domain.Treatment.Treatment, TreatmentData>(tr); Technicians = CreateSelectList <Domain.Technician.Technician, TechnicianData>(te); }
public TreatmentsController(ITreatmentsRepository treatmentsRepository) { _treatmentsRepository = treatmentsRepository; }
public EditModel(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt) { }
public CreateModel(IAppointmentsRepository a, IClientsRepository c, ITreatmentsRepository tr, ITechniciansRepository te) : base(a, c, tr, te) { }
internal TestClass(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt) { }
internal TestClass(IAppointmentsRepository a, IClientsRepository c, ITreatmentsRepository tr, ITechniciansRepository te) : base(a, c, tr, te) { }
public DetailsModel(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt) { }
public TreatmentsController(ITreatmentsRepository repository) { _repository = repository; }