Esempio n. 1
0
        public static Bolao GetBolaoCom10Apostas()
        {
            Bolao bolao = new Bolao
            {
                concurso = Loterica.Common.Tests.Concursos.ObjectMother.GetConcursoComId(),
            };

            bolao.GerarApostas(10);
            bolao.CalculaValorDoBolao();
            return(bolao);
        }
        public void Bolao_TestDomain_GerarApostas_ShouldBeOk()
        {
            _concurso = new Mock <Concurso>();
            int   quantidadeApostas = 5;
            Bolao bolao             = new Bolao();
            Bolao bolaoGerado       = bolao.GerarBolao(quantidadeApostas);

            bolaoGerado.GerarApostas(quantidadeApostas, _concurso.Object);

            bolaoGerado._Aposta.Count.Should().Be(quantidadeApostas);
        }
Esempio n. 3
0
 public void Domain_Bolao_GerarApostas_Deve_Gerar_Numero_Apostas_Selecionado()
 {
     _bolao = ObjectMother.GetBolaoSemApostas();
     _bolao.GerarApostas(15);
     _bolao.apostas.Count.Should().Be(15);
 }