Exemplo n.º 1
0
        public void SettingUp()
        {             
                      
            this.chapterItem = ItemType.CreateNewItem("chapter item", "ci", null, PageType.Chapter);
            this.controlChapterItem = ItemType.CreateNewItem("controlChapter item", "cci", "ewrt", PageType.ControlChapter);
            this.theoryItem = ItemType.CreateNewItem("theory item", "ti", "dsfg", PageType.Theory);
           // this.questionItem = ItemType.CreateNewItem("question item", "qi", "rtwret", PageType.Question);
            this.summaryItem = ItemType.CreateNewItem("summary item", "si", "ywwdfg", PageType.Summary);
            this.unknownItem = ItemType.CreateNewItem("unknown item", "ui", "wettw", PageType.Unknown);

            this.items = new List<ItemType>();
            this.items.Add(chapterItem);
            this.items.Add(controlChapterItem);
            this.items.Add(theoryItem);
           // this.items.Add(questionItem);
            this.items.Add(summaryItem);
            this.items.Add(unknownItem);

            this.sequencing = new SequencingType();

            this.organization = new OrganizationType();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates simple Sequencing for organization.
 /// </summary>
 /// <returns>SequencingType value with default sequencing strategy elements for organization.</returns>
 public static void CreateOrganizationDefaultSequencing([NotNull] OrganizationType organization)
 {
     organization.SequencingPatterns.Add(new OrganizationDefaultSequencingPattern());
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     this.pattern = new SequencingPattern();
     this.organization = new OrganizationType();
     this.chapter = ItemType.CreateNewItem("Chapter", "chapter_base", null, PageType.Chapter);
     this.controlChapter = ItemType.CreateNewItem("Control Chapter", "control chapter", null, PageType.ControlChapter);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Create empty manifest.
 /// </summary>
 /// <param name="identifier">Identifier of new manifest.</param>
 public ManifestType(string identifier)
 {
     var org = new OrganizationType { SubItems = new ManifestNodeList<ItemType>(this), Title = "Chapter 1" };
     organizations = new OrganizationsType();
     organizations.Organizations.Add(org);
     resources = new ResourcesType();
     Identifier = identifier;
     this.metadata = new MetadataType("ADL SCORM", "2004 4th Edition");
 }