Пример #1
0
 public void ThenTheFollowingEventsShouldBeDisplayed(Table expectedEvents)
 {
     foreach (var eventsRow in expectedEvents.Rows)
     {
         Assert.IsTrue(_whatsOnPage.ContainsEventNamed(eventsRow["EventName"]));
     }
 }
Пример #2
0
        public void AllRelevantEventsAreDisplayedWhenFiltersAreApplied()
        {
            var whatsOnPage = new WhatsOnPage(Driver)
                              .SelectLocation("Barrow Navigation")
                              .SelectEventType("Community/Family Fun")
                              .SelectEventStartDate(new DateTime(2015, 5, 2))
                              .SelectEventEndDate(new DateTime(2015, 5, 3))
                              .Filter();

            Assert.AreEqual(1, whatsOnPage.EventDetails.Count);
            Assert.IsTrue(whatsOnPage.ContainsEventNamed("Athy Dragon Boat Regatta"));
        }
Пример #3
0
 public void AnEventWithNameIsDisplayed(string eventName)
 {
     Assert.IsTrue(_whatsOnPage.ContainsEventNamed(eventName));
 }