Example #1
0
        public void GivenAStandAloneEventExists()
        {
            var createSteps = new CreateStandAloneEventSteps();

            createSteps.GivenAValidStandAloneEventIsReadyToBeSubmitted();
            createSteps.WhenTheStandAloneEventIsAttemptedToBeCreated();
            createSteps.ThenTheStandAloneEventCanBeRetrieved();
        }
Example #2
0
        public void GivenAStandAloneEventWithTeacherRateExists(decimal teacherRate)
        {
            var createSteps = new CreateStandAloneEventSteps();

            createSteps.GivenAValidStandAloneEventIsReadyToBeSubmitted();

            var standAloneEvent = ScenarioCache.Get <StandAloneEventModel>(ModelKeys.StandAloneEvent);

            standAloneEvent.TeacherRate = teacherRate;
            ScenarioCache.Store(ModelKeys.StandAloneEvent, standAloneEvent);

            createSteps.WhenTheStandAloneEventIsAttemptedToBeCreated();
            createSteps.ThenTheStandAloneEventCanBeRetrieved();
        }
Example #3
0
        public void GivenAPrivateStandAloneEventExists()
        {
            var createSteps = new CreateStandAloneEventSteps();

            createSteps.GivenAValidStandAloneEventIsReadyToBeSubmitted();

            var standAloneEvent = ScenarioCache.Get <StandAloneEventModel>(ModelKeys.StandAloneEvent);

            standAloneEvent.IsPrivate = true;
            ScenarioCache.Store(ModelKeys.StandAloneEvent, standAloneEvent);

            createSteps.WhenTheStandAloneEventIsAttemptedToBeCreated();
            createSteps.ThenTheStandAloneEventCanBeRetrieved();
        }