Example #1
0
        public Imovel(Edificacao edificacao, string identificadorImovel, string sigla, string numero)
        {
            Edificacao          = edificacao;
            IdentificadorImovel = identificadorImovel;
            Sigla  = sigla;
            Numero = numero;

            AddNotifications(new ValidationContract()
                             .Requires()
                             .HasMinLen(identificadorImovel, 6, "identificadorImovel", "O identificadorImovel deve conter pelo menos 6 caracteres")
                             .HasMaxLen(identificadorImovel, 10, "identificadorImovel", "O identificadorImovel deve conter no máximo 10 caracteres")
                             .HasMinLen(Numero, 3, "Numero", "O número deve conter pelo menos 3 caracteres")

                             );
        }
Example #2
0
 public void AddEdificacoes(Edificacao edificacao)
 {
     //Validar Condominio
     //Adicionar CondominioV
     _edificacoes.Add(edificacao);
 }