private static void writeInitialData(HtmlDocument document, Suite top, FixtureLibrary fixtures, string title) { ClientMessage[] initial = new ClientMessage[] { new FixturesReloaded {fixtures = fixtures.Models.ToArray()}, new HierarchyLoaded(top, new ResultsCache()), new ProjectTitle(title), }; var cleanJson = JsonSerialization.ToCleanJson(initial); document.Body.Add("div").Hide().Id("spec-data").Text(cleanJson); }
public void Add(ClientMessage message) { _messages.Add(message); }