MakeIdList() public static method

Make a string that corresponds to a list of guids.
public static MakeIdList ( IEnumerable objects ) : string
objects IEnumerable
return string
        public void PropertyTableHasInvalidObjects()
        {
            MockTextRepository mockTextRep = MakeMockTextRepoWithTwoMockTexts();

            MakeMockScriptureSection();
            m_propertyTable.SetProperty(InterestingTextList.PersistPropertyName, InterestingTextList.MakeIdList(
                                            new ICmObject[] { m_sections[0].ContentOA, m_sections[0].HeadingOA }) + "," + Convert.ToBase64String(Guid.NewGuid().ToByteArray()) + ",$%^#@+");
            var testObj = new InterestingTextList(m_propertyTable, mockTextRep, m_mockStTextRepo, true);

            testObj.InterestingTextsChanged += TextsChangedHandler;
            var expectedScripture = new List <IStText>();

            expectedScripture.Add(m_sections[0].ContentOA);
            expectedScripture.Add(m_sections[0].HeadingOA);
            VerifyList(expectedScripture, testObj.ScriptureTexts, "Just two valid Guids");
        }
        private InterestingTextList SetupTwoMockTextsAndOneScriptureSection(bool fIncludeScripture, out List <IStText> expectedScripture,
                                                                            out List <IStText> expected)
        {
            MockTextRepository mockTextRep = MakeMockTextRepoWithTwoMockTexts();

            MakeMockScriptureSection();
            m_propertyTable.SetProperty(InterestingTextList.PersistPropertyName, InterestingTextList.MakeIdList(
                                            new ICmObject[] { m_sections[0].ContentOA, m_sections[0].HeadingOA }));
            var testObj = new InterestingTextList(m_propertyTable, mockTextRep, m_mockStTextRepo, fIncludeScripture);

            testObj.InterestingTextsChanged += TextsChangedHandler;
            expectedScripture = new List <IStText>();
            expectedScripture.Add(m_sections[0].ContentOA);
            expectedScripture.Add(m_sections[0].HeadingOA);
            VerifyScriptureList(testObj, expectedScripture, "Initially two Scripture texts");

            expected = new List <IStText>(CurrentTexts(mockTextRep));
            if (fIncludeScripture)
            {
                expected.AddRange(expectedScripture);
            }
            VerifyList(expected, testObj.InterestingTexts, "two ordinary and two Scripture texts");
            return(testObj);
        }
 private void VerifyScriptureList(InterestingTextList testObj, List <IStText> expectedScripture, string comment)
 {
     VerifyList(expectedScripture, testObj.ScriptureTexts, comment);
     Assert.AreEqual(InterestingTextList.MakeIdList(expectedScripture.Cast <ICmObject>()),
                     m_propertyTable.GetStringProperty(InterestingTextList.PersistPropertyName, null));
 }