/// <summary> /// Initializes a new instance of the <see cref="DataAnnotationsValidator"/> class. /// </summary> /// <param name="typeForValidation">The type for validation.</param> public DataAnnotationsValidator(Type typeForValidation) { this.adapters = GetAdapters(typeForValidation); Description = new ModelValidationDescriptor(this.adapters.SelectMany(a => a.GetRules())); }