public void CPF_Formato_Correto() { aluno = new Aluno(alunoid, "Marcos", DateTime.Now, "70692783067", "976337889", "*****@*****.**", "Informacoes"); var cpf = new CpfAlunoCorretoSpecification(); Assert.True(cpf.IsSatisfiedBy(aluno)); }
public AlunoProntoParaCadastroValidation() { var cpfFormato = new CpfAlunoCorretoSpecification(); base.Add("cpfFormato", new Rule <Aluno>(cpfFormato, "CPF com formato incorreto.")); }