public CreateUsuarioHandler(IBreadingBreadDbContext db, IMediator mediator, IDateTime dateTime, IRandomGenerator randomGenerator) { this.mediator = mediator; this.db = db; this.dateTime = dateTime; this.randomGenerator = randomGenerator; }
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(); }
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; }
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; }
public GetListStoresHandler(IBreadingBreadDbContext db) { this.db = db; }
public GetActivePathsAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { this.db = db; this.currentUser = currentUser; }
public AddSaleHandler(IBreadingBreadDbContext db, IUserAccessor currentUser, IDateTime dateTime) { this.db = db; this.currentUser = currentUser; this.dateTime = dateTime; }
public GetListPromotionByProductHandler(IBreadingBreadDbContext db) { this.db = db; }
public AddProductAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { }
public GetUsuariosListQueryHandler(IBreadingBreadDbContext db) { this.db = db; }
public AddStoreAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { }
public GetProductListAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { this.db = db; this.currentUser = currentUser; }
public DeleteUsuarioHandler(IBreadingBreadDbContext db) { this.db = db; }
public EditPathHandler(IBreadingBreadDbContext db) { this.db = db; }
public GetListPathHandler(IBreadingBreadDbContext db) { this.db = db; }
public GetUsuarioDetailHandler(IBreadingBreadDbContext db) { this.db = db; }
public ModificarPasswordHandler(IBreadingBreadDbContext db, IUserAccessor currentUser) { this.db = db; this.currentUser = currentUser; }
public DeletePathAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { }
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; }
public ModificarDatosUsuarioHandler(IBreadingBreadDbContext db) { this.db = db; }
public DeletePromotionAuth(IBreadingBreadDbContext db, IUserAccessor currentUser) { this.db = db; this.currentUser = currentUser; }
public UsuarioCreatedHandler(IEmailService emailService, IBreadingBreadDbContext db, IOptions <AppSettings> options) { this.emailService = emailService; this.db = db; this.settings = options.Value; }