public override void Insert(Dependente obj)
        {
            //verificar se o dependente é maior de idade
            if (ObterIdade(obj.DataNascimento) >= 18)
            {
                throw new Exception("Erro. O dependente deve ser menor de idade.");
            }

            //verificar a quantidade de dependentes do funcionário
            var qtd = funcionarioRepository.CountDependentes(obj.IdFuncionario);

            //verificar se a quantidade é maior ou igual a 3
            if (qtd >= 3)
            {
                throw new Exception("Erro. O funcionário já possui 3 dependentes.");
            }
            else
            {
                dependenteRepository.Insert(obj);
            }
        }