public TagsController( IGetTags getTags, IGetTagsByPayee getTagsByPayee, IGetTagByName getTagByName, IUpsertTag upsertTag, IDeleteTag deleteTag, IGetPayeeByName getPayeeByName, Func <Try <Email>, string, CreateTagModel, Task <ValidationResult> > validate) { this.getTags = getTags; this.getTagsByPayee = getTagsByPayee; this.getTagByName = getTagByName; this.upsertTag = upsertTag; this.deleteTag = deleteTag; this.getPayeeByName = getPayeeByName; this.validate = validate; }
internal CreateTagModelValidator( Email email, string tag, IGetTagByName getTagByName) => this.RuleFor(model => model.Name)