public void ThenThereAreBlocksAvailableForEnrolment() { var availableBlocks = ScenarioCache.GetResponse <List <BlockForRegistrationModel> >(); Assert.IsNotEmpty(availableBlocks); availableBlocks.ForEach(x => Assert.Greater(x.SpacesAvailable, 0)); }
public void ThenTheStudentSeesTheStandAloneEvent() { var events = ScenarioCache.GetResponse <List <EventForRegistrationModel> >(); Assert.IsNotEmpty(events); Assert.AreEqual(1, events.Count); events.ForEach(x => Assert.Greater(x.SpacesAvailable, 0)); }
public void ThenTheStudentIsMarkedAsAlreadyAttending() { var events = ScenarioCache.GetResponse <List <EventForRegistrationModel> >(); Assert.IsTrue(events.Single().IsAlreadyRegistered); }