public void HaveChampion() { List <Movie> moviesExpected = new List <Movie>() { new Movie() { titulo = "Beyblade", nota = 2 }, new Movie() { titulo = "Destructive", nota = 4 }, new Movie() { titulo = "Avengers", nota = 3 }, new Movie() { titulo = "Cars", nota = 5 } }; ChampionshipBus championshipBus = new ChampionshipBus(); championshipBus.RankedList(moviesExpected); }
public async Task <ActionResult <List <Movie> > > Post([FromBody] List <Movie> movies) { ChampionshipBus championshipBus = new ChampionshipBus(); var rankedMovies = await championshipBus.RankedList(movies); return(rankedMovies); }