public virtual void ValidateNewOrUpdateCompany() { TestCondition(CNPJ.IsNullOrEmpty(), CnpjRequired); TestCondition(!CNPJ.IsCnpj(), CnpjInvalid); TestCondition(CompanyName.IsNullOrEmpty(), NameEmpty); TestCondition(!State.HasValue || State.Value.Equals(Enums.State.EscolhaUmEstado), StateEmpty); }