示例#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();
        }