<commit_before>using Ritter.Domain;
using Ritter.Samples.Domain.Aggregates.People;

namespace Ritter.Samples.Domain.Aggregates.Employees
{
    public class Employee : Entity
    {
        public Name Name { get; private set; }
        public Cpf Cpf { get; private set; }

        protected Employee()
            : base()
        {
        }

        public Employee(Name name, Cpf cpf)
            : this()
        {
            Name = name;
            Cpf = cpf;

            AddValidations(context =>
            {
                context.Include<Employee, Name>(e => e.Name);
                context.Include<Employee, Cpf>(e => e.Cpf);

                return context.Validate(this);
            });
        }
    }
}<commit_msg>refact(employee): refact validations<commit_after>using Ritter.Domain;
using Ritter.Samples.Domain.Aggregates.People;

namespace Ritter.Samples.Domain.Aggregates.Employees
{
    public class Employee : Entity
    {
        public Name Name { get; private set; }
        public Cpf Cpf { get; private set; }

        protected Employee()
            : base()
        {
        }

        public Employee(Name name, Cpf cpf)
            : this()
        {
            Name = name;
            Cpf = cpf;

            AddValidations(Name, Cpf);
        }
    }
}
{'fraction_non_alphanumeric': 0.10046367851622875, 'fraction_numerical': 0.0, 'mean_word_length': 1.6056338028169015, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4229116', 'n_tokens_mistral': 382, 'n_tokens_neox': 360, 'n_words': 83}