Esempio n. 1
0
        public void ShouldReturnTrueUponCreatingCsv()
        {
            Scraper scraper = new Scraper();

            var eventList = new List <Event>
            {
                new Event
                {
                    ArtistorEvent = "Billy Soomro's Interview",
                    City          = "London",
                    Venue         = "SongKick",
                    Time          = "12:30pm",
                    Price         = "Not specified",
                    Availability  = "Available",
                    Date          = "Fri 8th Dec 2017",
                    SpecialGuests = "Bring Me The Horizon"
                }
            };

            var result = scraper.ExportCSV(eventList);

            Assert.AreEqual(true, result);
        }