Esempio n. 1
0
 public AccountRequestModelValidatorV8(IAccountRepositoryV8 repository)
 {
     this.repository = repository;
     this.RuleFor(x => x.Name).NotEmpty();
     this.RuleFor(x => x.SSN).NotEmpty();
     this.RuleFor(x => x.Token).NotEmpty();
     this.RuleFor(x => x.Name).Must(this.AccountValidated).WithMessage("Account already exists");
 }
Esempio n. 2
0
 public AccountServiceV8(IAccountRepositoryV8 repository,
                         AccountRequestModelValidatorV8 modelValidator,
                         IFBIServiceV8 fbiService,
                         IDateServiceV8 dateService,
                         IAccountMapperV8 mapper)
 {
     this.repository     = repository;
     this.fbiService     = fbiService;
     this.modelValidator = modelValidator;
     this.dateService    = dateService;
     this.mapper         = mapper;
 }