Exemple #1
0
 public RestApiValidator(RestApiDbContext opinionatedDbContext)
 {
     OpinionatedDbContext = opinionatedDbContext;
 }
 public RestApiValidatedHandler(RestApiDbContext opinionatedDbContext, IMapper mapper, IEnumerable <IValidator <TRequest> > validators)
 {
     OpinionatedDbContext = opinionatedDbContext ?? throw new System.ArgumentNullException(nameof(opinionatedDbContext));
     Mapper     = mapper ?? throw new System.ArgumentNullException(nameof(mapper));
     Validators = validators;
 }
 protected RestApiController(RestApiDbContext opinionatedDbContext, IMapper mapper, IMediator mediator)
 {
     OpinionatedDbContext = opinionatedDbContext;
     Mapper   = mapper;
     Mediator = mediator;
 }