BloomTests.Publish.ExportEpubTests.SetupBookLong C# (CSharp) Method

SetupBookLong() private method

Set up a book with the typical content most of our tests need. It has the standard three stylesheets (and empty files for them). It has one bloom editable div, in the specified language, with the specified text. It has a 'lang='*' div which is ignored. It may have extra content in various places. It may have an arbitrary number of images, with the specified names. The image files are not created in this method, because the exact correspondence between the image names inserted into the HTML and the files created (or sometimes purposely not created) is an important aspect of many tests.
private SetupBookLong ( string text, string lang, string extraPageClass = "", string extraContent = "", string extraImages = "", string extraStyleSheet = "", string parentDivId = "somewrapper", string extraPages = "", string images = null, string extraEditGroupClasses = "", string extraEditDivClasses = "", string defaultLanguages = "auto" ) : Book
text string
lang string
extraPageClass string
extraContent string
extraImages string
extraStyleSheet string
parentDivId string
extraPages string
images string
extraEditGroupClasses string
extraEditDivClasses string
defaultLanguages string
return Bloom.Book.Book
        Bloom.Book.Book SetupBookLong(string text, string lang, string extraPageClass = "", string extraContent = "", string extraImages = "",
			string extraStyleSheet= "", string parentDivId = "somewrapper", string extraPages="", string[] images = null,
			string extraEditGroupClasses = "", string extraEditDivClasses = "", string defaultLanguages = "auto")
        {
            if (images == null)
                images = new string[0];
            string imageDivs = "";
            foreach (var image in images)
                imageDivs += "<div><img src='" + image + ".png'></img></div>\n";
            var body = string.Format(@"<div class='bloom-page" + extraPageClass + @"'>
                        <div id='" + parentDivId + @"' class='marginBox'>
                            <div id='test' class='bloom-translationGroup bloom-requiresParagraphs {7}' lang='' data-default-languages='{8}'>
                                <div class='bloom-editable {6}' lang='{0}'>
                                    {1}
                                </div>
                                {2}
                                <div lang = '*'>more text</div>
                            </div>
                            {3}
                            {4}
                        </div>
                    </div>
                    {5}",
                lang, text, extraContent, imageDivs, extraImages, extraPages, extraEditDivClasses, extraEditGroupClasses, defaultLanguages);
            SetDom(body,
                string.Format(@"<link rel='stylesheet' href='../settingsCollectionStyles.css'/>
                            {0}
                            <link rel='stylesheet' href='../customCollectionStyles.css'/>
                            <link rel='stylesheet' href='customBookStyles.css'/>", extraStyleSheet));
            var book = CreateBook();
            CreateCommonCssFiles(book);
            return book;
        }