Example #1
0
 public CallsController(ICallsRepository callsRepository, IAnimalsRepository animalsRepository,
                        ITreatmentsRepository treatmentsRepository, IVaccinesRepository vaccinesRepository)
 {
     _callsRepository      = callsRepository;
     _animalsRepository    = animalsRepository;
     _treatmentsRepository = treatmentsRepository;
     _vaccinesRepository   = vaccinesRepository;
 }
Example #2
0
 public AdminController(IUserInformationsRepository IUserInformationRepository,
                        IAddressesRepository IAddressesRepository,
                        IMedicalExperienceRepository IMedicalExperienceRepository,
                        ITreatmentsRepository ITreatmentsRepository) : base()
 {
     _IUserInformationRepository   = IUserInformationRepository;
     _IAddressesRepository         = IAddressesRepository;
     _IMedicalExperienceRepository = IMedicalExperienceRepository;
     _ITreatmentsRepository        = ITreatmentsRepository;
 }
Example #3
0
 public CallsRepository(VaccinationDbContext dbContext, IAnimalsRepository animalsRepository,
                        ITreatmentsRepository treatmentsRepository, IVaccinesRepository vaccinesRepository,
                        IWorkTypesRepository workTypesRepository)
 {
     _dbContext            = dbContext;
     _animalsRepository    = animalsRepository;
     _treatmentsRepository = treatmentsRepository;
     _vaccinesRepository   = vaccinesRepository;
     _workTypesRepository  = workTypesRepository;
 }
Example #4
0
        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}.");
        }
Example #5
0
 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);
 }
Example #6
0
 public TreatmentsController(ITreatmentsRepository treatmentsRepository)
 {
     _treatmentsRepository = treatmentsRepository;
 }
Example #7
0
 public EditModel(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt)
 {
 }
Example #8
0
 public CreateModel(IAppointmentsRepository a, IClientsRepository c, ITreatmentsRepository tr, ITechniciansRepository te) : base(a, c, tr, te)
 {
 }
Example #9
0
 internal TestClass(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt)
 {
 }
Example #10
0
 internal TestClass(IAppointmentsRepository a, IClientsRepository c, ITreatmentsRepository tr, ITechniciansRepository te)
     : base(a, c, tr, te)
 {
 }
Example #11
0
 public DetailsModel(ITreatmentsRepository t, ITreatmentTypesRepository tt) : base(t, tt)
 {
 }
 public TreatmentsController(ITreatmentsRepository repository)
 {
     _repository = repository;
 }