예제 #1
0
 public GetUsuarioLoginQueryValidator(IFitoReportDbContext db, IDateTime dateTime)
 {
     RuleFor(el => el.NombreUsuario).NotEmpty();
     RuleFor(el => el.Password).NotEmpty();
     this.db       = db;
     this.dateTime = dateTime;
 }
 public CreateUsuarioHandler(IFitoReportDbContext db, IMediator mediator, IDateTime dateTime, IRandomGenerator randomGenerator)
 {
     this.mediator        = mediator;
     this.db              = db;
     this.dateTime        = dateTime;
     this.randomGenerator = randomGenerator;
 }
예제 #3
0
 public CreateUsuarioCommandValidator(IFitoReportDbContext db)
 {
     this.db = db;
     RuleFor(el => el.NombreUsuario).Matches("^[a-zA-Z]+(?:[_-]?[a-zA-Z0-9])*$").MaximumLength(20).NotEmpty();
     RuleFor(el => el.Email).EmailAddress().MaximumLength(50).NotEmpty();
     RuleFor(el => el.Password).NotNull().NotEmpty();
     RuleFor(el => el.TipoUsuario).GreaterThanOrEqualTo(0);
     RuleFor(el => el.Nombre).MaximumLength(20).NotEmpty();
     RuleFor(el => el.ApellidoPaterno).MaximumLength(20).NotEmpty();
     RuleFor(el => el.ApellidoMaterno).MaximumLength(20).NotEmpty();
 }
 public AproveUsuarioHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #5
0
 public DeleteEnfermedadValidator(IFitoReportDbContext db)
 {
     RuleFor(el => el.IdEnferemedad).NotEmpty().GreaterThanOrEqualTo(0);
     this.db = db;
 }
예제 #6
0
 public DeleteUsuarioAuth(IFitoReportDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
예제 #7
0
 public EditarReporteAuth(IFitoReportDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
 public DeleteUsuarioHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
 public UsuarioCreatedHandler(IEmailService emailService, IFitoReportDbContext db, IOptions <AppSettings> options)
 {
     this.emailService = emailService;
     this.db           = db;
     this.settings     = options.Value;
 }
예제 #10
0
 public RefreshCredentialsHandler(IFitoReportDbContext db, IRandomGenerator randomGenerator)
 {
     this.db = db;
     this.randomGenerator = randomGenerator;
 }
예제 #11
0
 public AddEtapaFenologicaHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #12
0
 public AgregarImagenPerfilValidator(IFitoReportDbContext db)
 {
     RuleFor(el => el.Imagen).NotEmpty();
     this.db = db;
 }
예제 #13
0
 public ReenviarEmailHandler(IEmailService emailService, IFitoReportDbContext db, IOptions <AppSettings> options)
 {
     this.emailService = emailService;
     this.db           = db;
     this.settings     = options.Value;
 }
 public GetUsuarioDetailHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #15
0
 public GetReporteHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
 public DeleteUsuarioValidator(IFitoReportDbContext db)
 {
     RuleFor(el => el.NombreUsuario).Matches("^[a-zA-Z]+(?:[_-]?[a-zA-Z0-9])*$").MaximumLength(20).NotEmpty();
     this.db = db;
 }
예제 #17
0
 public GetSearchReportListAuth(IFitoReportDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
예제 #18
0
 public ModificarPasswordHandler(IFitoReportDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
 public DeleteEnfermedadHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #20
0
 public ConfirmarEmailHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
 public AgregarPlagaHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #22
0
 public GetSearchReportListHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #23
0
 public ModificarDatosUsuarioHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
 public DeleteEtapaFenologicaValidator(IFitoReportDbContext db)
 {
     RuleFor(el => el.IdEtapa).NotEmpty().GreaterThanOrEqualTo(0);
     this.db = db;
 }
 public AgregarImagenPerfilHandler(IFitoReportDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
 public ReenviarEmailHandler(IMediator mediator, IFitoReportDbContext db)
 {
     this.mediator = mediator;
     this.db       = db;
 }
 public TokenDescargaHandler(IFitoReportDbContext db, IRandomGenerator random)
 {
     this.db     = db;
     this.random = random;
 }
예제 #28
0
 public RecuperaPasswordHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #29
0
 public GetPlagasHandler(IFitoReportDbContext db)
 {
     this.db = db;
 }
예제 #30
0
 public GetReporteValidator(IFitoReportDbContext db)
 {
     RuleFor(el => el.IdReporte).GreaterThan(0).NotEmpty();
     this.db = db;
 }