public async void HaveToWinWhoHasHighestGrade() { Movie movieA = new Movie() { nota = 2 }; Movie movieB = new Movie() { nota = 5 }; ChampionshipBus championshipBus = new ChampionshipBus(); Movie winningMovie = await championshipBus.GetWinner(movieA, movieB); movieB.ToExpectedObject().ShouldMatch(winningMovie); }
public async void HaveToWinWhoHasTitleFirstInAlphabeticalOrder() { Movie movieA = new Movie() { nota = 3, titulo = "Beethoven" }; Movie movieB = new Movie() { nota = 3, titulo = "Assassins Creed" }; ChampionshipBus championshipBus = new ChampionshipBus(); Movie winningMovie = await championshipBus.GetWinner(movieA, movieB); movieB.ToExpectedObject().ShouldMatch(winningMovie); }