예제 #1
0
        public void GivenABlockExistsWithAStudentLimitOf(int classCapacity)
        {
            var createBlockSteps = new CreateBlockSteps();

            createBlockSteps.GivenAValidBlockIsReadyToBeSubmitted();
            createBlockSteps.GivenTheBlockClassCapacityIs(classCapacity);
            createBlockSteps.WhenTheBlockIsAttemptedToBeCreated();
            createBlockSteps.ThenBlockCanBeRetrieved();
        }
예제 #2
0
        public void GivenAnInviteOnlyBlockExists()
        {
            var createBlockSteps = new CreateBlockSteps();

            createBlockSteps.GivenAValidBlockIsReadyToBeSubmitted();
            createBlockSteps.GivenTheBlockIsInviteOnly();
            createBlockSteps.WhenTheBlockIsAttemptedToBeCreated();
            createBlockSteps.ThenBlockCanBeRetrieved();
        }
예제 #3
0
        public void GivenABlockExists()
        {
            var createBlockSteps = new CreateBlockSteps();

            createBlockSteps.GivenAValidBlockIsReadyToBeSubmitted();
            createBlockSteps.WhenTheBlockIsAttemptedToBeCreated();
            createBlockSteps.ThenBlockCanBeRetrieved();

            var blockId = ScenarioCache.GetId(ModelIdKeys.BlockId);

            ScenarioCache.AddToSet(ModelIdKeys.BlockIds, blockId);
        }