public void SetNumeros(List <int> numeros) { if (numeros == null) { throw new Exception("Números da aposta não definidos "); } else if (!DomainValidationCommon.ValidaNumerosRepetidos(numeros)) { throw new Exception("O jogo possui números repetidos "); } else { this.Numeros = numeros; } if (numeros.Count < 6) { throw new Exception("O jogo deve possuir no mínimo 6 Dezenas"); } foreach (var item in numeros) { if ((item < 1) || (item > 60)) { throw new Exception("Somente permitido número de 1 a 60"); } } }