Exemple #1
0
        public async Task VerificaMontarChaveamentoInicialArgumentNullException()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(null);

            var nota = campeoes.ToList()[3].Nota;
        }
Exemple #2
0
        public async Task VerificaMontarChaveamentoInicialNotFoundException()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(new string[1] {
                "AA3606756"
            });

            var nota = campeoes.ToList()[3].Nota;
        }
Exemple #3
0
        public async Task VerificaArgumentOutOfRangeException()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(new string[8] {
                "tt3606756", "tt4881806", "tt5164214", "tt7784604", "tt4154756", "tt5463162", "tt3778644", "tt3501632"
            });

            var nota = campeoes.ToList()[3].Nota;
        }
Exemple #4
0
        public async Task TestandoCampeonatoConformeRegraPDFFilmeViceCampeao()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(new string[8] {
                "tt3606756", "tt4881806", "tt5164214", "tt7784604", "tt4154756", "tt5463162", "tt3778644", "tt3501632"
            });

            Assert.AreEqual(campeoes.ToList()[1].Nota, 8.5, 0.0001);
        }
Exemple #5
0
        public async Task TestandoCampeonatoConformeRegraPDF()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(new string[8] {
                "tt3606756", "tt4881806", "tt5164214", "tt7784604", "tt4154756", "tt5463162", "tt3778644", "tt3501632"
            });

            Assert.AreEqual(campeoes.Count(), 2);
        }
Exemple #6
0
        public async Task VerificaMontarChaveamentoInicialComDoisFilmesCopaFilmesAPIValidationException()
        {
            var action   = new PartidaAction();
            var campeoes = await action.ProcessaCampeonato(new string[2] {
                "tt3606756", "tt4881806"
            });

            var nota = campeoes.ToList()[3].Nota;
        }
Exemple #7
0
 /// <summary>
 /// Inicializa uma instância da classe
 /// </summary>
 public PartidaController()
 {
     _actions = new PartidaAction();
 }