Esempio n. 1
0
        public GetPropostaValidation(IPremiumDbContext context)
        {
            this.context = context;

            RuleFor(p => p.Id)
            .NotEmpty()
            .MustAsync(PropostaExist).WithMessage("Proposta não encontrada.");
        }
Esempio n. 2
0
 public GetPropostaHandler(IPremiumDbContext context, IMapper mapper)
 {
     this._context = context;
     this._mapper  = mapper;
 }
Esempio n. 3
0
 public DeletePropostaSeguradoHandler(IPremiumDbContext context, IMapper mapper)
 {
     this._context = context;
     this._mapper  = mapper;
 }