﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentValidation;
using SOURCE.BackOffice.Web.ViewModels.Pages.Intervenant.Competences.Details;

namespace SOURCE.BackOffice.Web.ViewModels.Validators.Intervenant.Competences.details
{
    public class CompetencesViewModelValidator : AbstractValidator<CompetencesViewModel>
    {
        public CompetencesViewModelValidator() 
        {
            RuleFor(x => x.Competences).SetCollectionValidator(new CompetenceViewModelValidator());
        }
    }
}
