public static HtmlDocument Build(Suite top, FixtureLibrary fixtures, string title)
        {
            var document = new HtmlDocument
            {
                Title = title
            };

            document.Head.Append(BatchResultsWriter.StyleTag());

            writeInitialData(document, top, fixtures, title);

#if DEBUG
            var scriptTag = HomeEndpoint.ScriptTag(false, "/preview.js");
            document.Body.Append(scriptTag);
#else
            writeEnbeddedJavascript(document);
#endif

            document.Body.Add("div").Id("main");

            return(document);
        }
Пример #2
0
        public Overseer()
        {
            this.Senses              = new Senses(this);
            this.Speaking            = new Speaking(this);
            this.MessageProcessor    = new Core.MessageProcessor(this);
            this.Persons             = new Core.Persons(this);
            this.Settings            = new MessengerSettings.MessengerSettings(this);
            this.Home                = new HomeEndpoint(this);
            this.Facebook            = new FacebookEndpoint(this);
            this.Telegram            = new TelegramEndpoint(this);
            this.DialogueLoader      = new DialogueLoader();
            this.FreeformPhrases     = new Freeform.FreeformPhrases(this);
            this.LoadedConversations = new LoadedConversations(this);
            Riddle.Load();
            Joke.Load();

            FacebookMetaCommunicator mc = new FacebookMetaCommunicator(this);

            mc.StartLoop();
            TelegramCommunicator tg = new TelegramCommunicator(this);

            tg.StartLoop();
        }