public RequestHandler(IServiceProvider services) { _dbContext = services.GetRequiredService <IVaccinationDbContext>(); _mapper = services.GetRequiredService <IMapper>(); _mediator = services.GetRequiredService <IMediator>(); _logger = services.GetRequiredService <ILogger <TRequest> >(); }
public UpdatePatientValidator(IVaccinationDbContext dbContext) : base(dbContext) { RuleFor(x => x.Id).Required(); RuleForEach(x => x.Inoculations).SetValidator(x => new UpdateInoculationValidator(x)); }
public CreatePatientValidator(IVaccinationDbContext dbContext) : base(dbContext) { }
public SampleDataSeeder(IVaccinationDbContext dbContext) { _context = dbContext; }
public BasePatientEditValidator(IVaccinationDbContext dbContext) : base(dbContext) { }