예제 #1
0
        public async Task GetAllCinemaListingsTest()
        {
            var result = (await _csfdApi.GetAllCinemaListings()).ToList();

            Assert.IsTrue(result.Count > 0);
            result.ForEach(AssertListingIsCorrect);
        }
예제 #2
0
        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");
        }
예제 #3
0
        public IEnumerable <Cinema> GetAllShowTimes()
        {
            var allListings = _csfdApi.GetAllCinemaListings().Result;

            return(allListings.Select(ApiListingToListingsWithRating));
        }