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

            createSteps.GivenAValidStandAloneEventIsReadyToBeSubmitted();
            createSteps.WhenTheStandAloneEventIsAttemptedToBeCreated();
            createSteps.ThenTheStandAloneEventCanBeRetrieved();
        }
예제 #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();
        }
예제 #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();
        }