Beispiel #1
0
 public ProfilePostRequestModelValidator(CashFluxDbContext context)
     : base(context)
 {
     RuleFor(model => model.Name).NotEmpty().MaximumLength(30);
     RuleFor(model => model.UserId).NotEmpty().MustAsync(HaveValidUserId)
     .WithMessage(model => $"User Fk '{model.UserId}' does not exist.");
 }
 protected CashFluxAbstractValidator(CashFluxDbContext context)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
 }
 protected CashFluxGetRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
 protected CashFluxRequestHandler(CashFluxDbContext context, IMapper mapper)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
     Mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #5
0
 public FluxDeleteMultipleRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
 public UserSourceDeleteRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
Beispiel #7
0
 public SourceGetRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
 public FluxPostRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
 public ProfileGetMultipleByUsernameRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }
Beispiel #10
0
 public ProfileDeleteRequestHandler(CashFluxDbContext context, IMapper mapper) : base(context, mapper)
 {
 }
 public UserSourceGetMultipleByUserIdRequestHandler(CashFluxDbContext context, IMapper mapper)
     : base(context, mapper)
 {
 }