public async Task VerificaMontarChaveamentoInicialArgumentNullException() { var action = new PartidaAction(); var campeoes = await action.ProcessaCampeonato(null); var nota = campeoes.ToList()[3].Nota; }
public async Task VerificaMontarChaveamentoInicialNotFoundException() { var action = new PartidaAction(); var campeoes = await action.ProcessaCampeonato(new string[1] { "AA3606756" }); var nota = campeoes.ToList()[3].Nota; }
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; }
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); }
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); }
public async Task VerificaMontarChaveamentoInicialComDoisFilmesCopaFilmesAPIValidationException() { var action = new PartidaAction(); var campeoes = await action.ProcessaCampeonato(new string[2] { "tt3606756", "tt4881806" }); var nota = campeoes.ToList()[3].Nota; }
/// <summary> /// Inicializa uma instância da classe /// </summary> public PartidaController() { _actions = new PartidaAction(); }