Example #1
0
 public CreateUsuarioHandler(IBreadingBreadDbContext db, IMediator mediator, IDateTime dateTime, IRandomGenerator randomGenerator)
 {
     this.mediator        = mediator;
     this.db              = db;
     this.dateTime        = dateTime;
     this.randomGenerator = randomGenerator;
 }
Example #2
0
 public GetUsuarioLoginQueryValidator(IBreadingBreadDbContext db, IDateTime dateTime)
 {
     RuleFor(el => el.UserName).NotEmpty();
     RuleFor(el => el.Password).NotEmpty();
     this.db       = db;
     this.dateTime = dateTime;
 }
 public CreateUsuarioCommandValidator(IBreadingBreadDbContext db)
 {
     this.db = db;
     RuleFor(el => el.UserName).Matches("^[a-zA-Z]+(?:[_-]?[a-zA-Z0-9])*$").MaximumLength(20).NotEmpty();
     RuleFor(el => el.Password).NotNull().NotEmpty();
     RuleFor(el => el.UserType).GreaterThanOrEqualTo(0);
     RuleFor(el => el.Name).MaximumLength(20).NotEmpty();
 }
Example #4
0
        public AddSaleValidator(IBreadingBreadDbContext db, IDateTime date, IUserAccessor currentUser)
        {
            RuleFor(el => el.IdStore).GreaterThan(0);
            RuleFor(el => el.IdPath).GreaterThan(0);
            RuleFor(el => el.Lat).NotEmpty();
            RuleFor(el => el.Lon).NotEmpty();
            RuleFor(el => el.Total).GreaterThanOrEqualTo(0);
            RuleFor(el => el.Products).NotEmpty().When(el => el.Commentary == null);
            RuleFor(el => el.Commentary).Empty().When(el => el.Products.Count > 0);

            this.db          = db;
            this.date        = date;
            this.currentUser = currentUser;
        }
Example #5
0
 public GetListStoresByPathHandler(IBreadingBreadDbContext db, IDateTime dateTime)
 {
     this.db       = db;
     this.dateTime = dateTime;
 }
 public AssignPathHandler(IBreadingBreadDbContext db, IDateTime dateTime, IUserAccessor currentUser)
 {
     this.db          = db;
     this.dateTime    = dateTime;
     this.currentUser = currentUser;
 }
 public SetInventoryToPathHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public AproveUsuarioAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
Example #9
0
 public GetListStoresHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #10
0
 public GetActivePathsAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
Example #11
0
 public AddSaleHandler(IBreadingBreadDbContext db, IUserAccessor currentUser, IDateTime dateTime)
 {
     this.db          = db;
     this.currentUser = currentUser;
     this.dateTime    = dateTime;
 }
 public GetListPromotionByProductHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #13
0
 public AddProductAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
 }
Example #14
0
 public GetUsuariosListQueryHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #15
0
 public AddStoreAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
 }
 public GetProductListAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
Example #17
0
 public DeleteUsuarioHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #18
0
 public EditPathHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public GetListPathHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #20
0
 public GetUsuarioDetailHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #21
0
 public ModificarPasswordHandler(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
Example #22
0
 public DeletePathAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
 }
Example #23
0
 public RecuperaPasswordHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public AproveUsuarioHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public EditProductHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public DeletePromotionHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public GetProductListHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
Example #28
0
 public ModificarDatosUsuarioHandler(IBreadingBreadDbContext db)
 {
     this.db = db;
 }
 public DeletePromotionAuth(IBreadingBreadDbContext db, IUserAccessor currentUser)
 {
     this.db          = db;
     this.currentUser = currentUser;
 }
Example #30
0
 public UsuarioCreatedHandler(IEmailService emailService, IBreadingBreadDbContext db, IOptions <AppSettings> options)
 {
     this.emailService = emailService;
     this.db           = db;
     this.settings     = options.Value;
 }