public static Occurrence SetupOccurrenceSearchInvalidMembershipRequired(ComputerSystem kiosk, Person person)
        {
            var occurrence   = SetupOccurrenceSearch(kiosk);
            var eventProfile = CheckInTestFactories.CreateEventProfile(occurrence);

            eventProfile.Save(CheckInTestConstants.USER_ID);

            occurrence.OccurrenceType.MembershipRequired = true;
            occurrence.OccurrenceType.SyncWithProfile    = eventProfile.ProfileID;
            occurrence.Save(CheckInTestConstants.USER_ID);
            return(occurrence);
        }
        public static Occurrence SetupOccurrenceSearchMembershipRequired(ComputerSystem kiosk, Person person)
        {
            var occurrence   = SetupOccurrenceSearch(kiosk);
            var eventProfile = CheckInTestFactories.CreateEventProfile(occurrence);

            eventProfile.Save(CheckInTestConstants.USER_ID);

            var member = CheckInTestFactories.CreateProfileMember(eventProfile, person);

            eventProfile.Members.Add(member);
            member.Save(CheckInTestConstants.USER_ID);
            eventProfile.Save(CheckInTestConstants.USER_ID);

            var profileOccurrence = CheckInTestFactories.CreateProfileOccurrence(eventProfile, occurrence);

            profileOccurrence.Save(CheckInTestConstants.USER_ID);
            eventProfile.Occurrences.Add(profileOccurrence);
            eventProfile.Save(CheckInTestConstants.USER_ID);

            occurrence.OccurrenceType.MembershipRequired = true;
            occurrence.OccurrenceType.SyncWithProfile    = eventProfile.ProfileID;
            occurrence.Save(CheckInTestConstants.USER_ID);
            return(occurrence);
        }