Ejemplo n.º 1
0
        public void PersonSteps_WithStepProgramParameter_ReturnsStepsForProgramOnly()
        {
            // Test with Step Program Guid
            PersonStepsTestWithTemplate(TestGuids.TestPeople.TedDecker,
                                        Tests.Shared.TestGuids.Steps.ProgramAlphaGuid.ToString(),
                                        null,
                                        null,
                                        "Ted Decker:<p>Attender - Completed</p><p>Volunteer - Started</p>");

            // Test with Step Program Id.
            var dataContext = new RockContext();

            var stepProgramId = new StepProgramService(dataContext).GetId(Tests.Shared.TestGuids.Steps.ProgramAlphaGuid);

            PersonStepsTestWithTemplate(TestGuids.TestPeople.TedDecker,
                                        stepProgramId.ToString(),
                                        null,
                                        null,
                                        "Ted Decker: <p>Attender - Completed</p><p>Volunteer - Started</p>");
        }