Example #1
0
        public void ThenThereAreBlocksAvailableForEnrolment()
        {
            var availableBlocks = ScenarioCache.GetResponse <List <BlockForRegistrationModel> >();

            Assert.IsNotEmpty(availableBlocks);

            availableBlocks.ForEach(x => Assert.Greater(x.SpacesAvailable, 0));
        }
Example #2
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));
        }
Example #3
0
        public void ThenTheStudentIsMarkedAsAlreadyAttending()
        {
            var events = ScenarioCache.GetResponse <List <EventForRegistrationModel> >();

            Assert.IsTrue(events.Single().IsAlreadyRegistered);
        }