public GetCanalVendaQueryValidation(IAtlasDbContext _context) { context = _context; RuleFor(cv => cv.Id) .NotEmpty() .MustAsync(CanalVendaExistis).WithMessage("Motivo não encontrado."); }
public GetStatusValidation(IAtlasDbContext context) { this.context = context; RuleFor(s => s.Id) .NotEmpty() .MustAsync(StatusExists).WithMessage("Status não existe."); }
public DeleteAssuntoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(a => a.Id) .NotEmpty(); //.MustAsync(AssuntoExist).WithMessage("Assunto não encontrado"); }
public DeleteMotivoCommandValidation(IAtlasDbContext context) { _context = context; RuleFor(m => m.Id) .NotEmpty() .MustAsync(MotivoExistis).WithMessage("Motivo não existel"); }
public DeleteCanalVendaCommandValidation(IAtlasDbContext _context) { context = _context; RuleFor(cv => cv.Id) .NotEmpty() .MustAsync(CanalVendaExistis).WithMessage("Canal de venda não encontrado"); }
public GetMotivoQueryValidation(IAtlasDbContext context) { this.context = context; RuleFor(m => m.Id) .NotEmpty() .MustAsync(MotivoExistis).WithMessage("Motivo não encontrado."); }
public GetCanalReclamacaoQueryValidation(IAtlasDbContext context) { this.context = context; RuleFor(cr => cr.Id) .NotEmpty() .MustAsync(CanalReclamacaoExist).WithMessage("Canal de reclamação não existe"); }
public GetAssuntoQueryValidation(IAtlasDbContext context) { this.context = context; RuleFor(a => a.Id) .NotEmpty() .NotNull() .MustAsync(AssuntoExist).WithMessage("Assunto não existe."); }
public CreateMotivoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(m => m.Motivo) .NotNull(); RuleFor(m => m.Motivo.Descricao) .NotEmpty(); }
public UpdatePasswordCommandValidation(IAtlasDbContext context, ICurrentUserService currentUserService) { _context = context; _currentUserService = currentUserService; RuleFor(u => u.Password) .NotEmpty() .MinimumLength(8); RuleFor(u => u) .MustAsync(Authorize).WithMessage("Operação não autorizada."); }
public LoginCommandValidation(IAtlasDbContext context) { _context = context; RuleFor(l => l.Username) .NotEmpty(); RuleFor(l => l.Password) .NotEmpty(); RuleFor(l => l) .MustAsync(ValidateUser).WithMessage("Usuário ou Senha incorretos."); }
public PostCanalReclamacaoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(cr => cr.CanalReclamacao) .NotNull(); RuleFor(cr => cr.CanalReclamacao.Descricao) .NotEmpty(); RuleFor(cr => cr.CanalReclamacao.Id) .Empty(); }
public UpdateAssuntoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(a => a.Assunto) .NotNull(); RuleFor(a => a.Assunto.Descricao) .NotEmpty(); RuleFor(a => a.Assunto.Id) .NotEmpty() .MustAsync(AssuntoExist).WithMessage("Assunto não existe"); }
public UpdateCanalVendaCommandValidation(IAtlasDbContext _context) { context = _context; RuleFor(cv => cv.CanalVenda) .NotNull(); RuleFor(cv => cv.CanalVenda.Descricao) .NotEmpty(); RuleFor(cv => cv.CanalVenda.Id) .NotEmpty() .MustAsync(CanalVendaExistis).WithMessage("Canal de venda não existe."); }
public UpdateCanalReclamacaoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(cr => cr.CanalReclamacao) .NotNull(); RuleFor(cr => cr.CanalReclamacao.Descricao) .NotEmpty(); RuleFor(cr => cr.CanalReclamacao.Id) .NotEmpty() .MustAsync(CanalReclamacaoExist).WithMessage("Canal de reclamação não existe"); }
public UpdateMotivoCommandValidation(IAtlasDbContext context) { this.context = context; RuleFor(m => m.Motivo) .NotNull(); RuleFor(m => m.Motivo.Descricao) .NotEmpty(); RuleFor(m => m.Motivo.Id) .NotEmpty() .MustAsync(MotivoExistis).WithMessage("Motivo não encontrado."); }
public GetUserRolesQueryHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public ListCanalReclamacaoHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public ListRolesQueryHandler(IAtlasDbContext context, IMapper mapper) { _context = context; this._mapper = mapper; }
public ListAssuntoHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public GetStatusHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public ListCanalVendaQueryHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public ListUsersQueryHandler(IAtlasDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public RegisterUserCommandHandler(IAtlasDbContext context) { _context = context; }
public UpdatePasswordCommandHandler(IAtlasDbContext context) { _context = context; }
public DeleteCanalVendaHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public ResetPasswordCommandHandler(IAtlasDbContext context) { _context = context; }
public ListMotivoQueryHandler(IAtlasDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public DeleteMotivoCommandHandler(IAtlasDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public GetMotivoHandler(IAtlasDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }