public async Task GetCinemaListingByUrlTest() { var result = (await _csfdApi.GetCinemaListing("https://www.csfd.cz/kino/?district=1&period=all")).ToList(); Assert.IsTrue(result.Count > 0); result.ForEach(AssertListingIsCorrect); }
private static async Task Main(string[] args) { CsfdApi csfdApi = new CsfdApi(); // Get movie by exact URL Movie movie = await csfdApi.GetMovie("https://www.csfd.cz/film/6648-predator/prehled/"); // Get all Cinema listings IEnumerable <Cinema> listings = await csfdApi.GetAllCinemaListings(); // Get Cinema listings in Prague IEnumerable <Cinema> listingsPrague = await csfdApi.GetCinemaListing("https://www.csfd.cz/kino/?district=1&period=all"); }