private IReadingSession CreateReadingSession()
        {
            IParagraph p1 = new Paragraph(0, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam");
            p1.AddAnswer(new Answer("A1", 1));
            IParagraph p2 = new Paragraph(1, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam");
            p2.AddAnswer(new Answer("A2", 2));
            p2.AddAnswer(new Answer("A3", 3));
            IParagraph p3 = new Paragraph(2, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam");
            p3.AddAnswer(new Answer("A4", 1));
            IParagraph p4 = new Paragraph(3, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam");

            IBook book = new Book("Title");
            book.AddParagraphs(p1, p2, p3, p4);
            return new ReadingSession(book, new History());
        }
Exemple #2
0
        private IReadingSession CreateReadingSession()
        {
            IParagraph p1 = new Paragraph(0, "P1");

            p1.AddAnswer(new Answer("A1", 1));
            IParagraph p2 = new Paragraph(1, "P2");

            p2.AddAnswer(new Answer("A2", 2));
            p2.AddAnswer(new Answer("A3", 3));
            IParagraph p3 = new Paragraph(2, "P3");

            p3.AddAnswer(new Answer("A4", 1));
            IParagraph p4 = new Paragraph(3, "P4");

            IBook book = new Book("Title");

            book.AddParagraphs(p1, p2, p3, p4);
            return(new ReadingSession(book, new History()));
        }
        private IReadingSession CreateReadingSession()
        {
            IParagraph p1 = new Paragraph(0,
                                          "Charger un livre :)",
                                          "#ffffff",
                                          "#f1a748");

            p1.AddAnswer(new Answer("Un réponse", 0));

            IBook book = new Book("Livre par defaut");

            book.AddParagraphs(p1);

            return(new ReadingSession(book, new History()));
        }