public void AssertHomePageTitleRepeatedly(int repeats)
        {
            Timer.Time(
                String.Format("Plasma test {0} times", repeats),
                () =>
                {
                    foreach (int i in Enumerable.Range(0, repeats))
                    {
                        var client = new Plasma.Http.HttpPlasmaClient(_plasmaApplication);
                        var response = client.Get(TestConstants.TestPath);
                        var html = response.GetBody();

                        var dom = CsQuery.CQ.Create(html);
                        Assert.That(dom.Text(), Contains.Substring(TestConstants.TextOnTestPath));
                    }
                });
        }
        public void TestFixtureSetUp()
        {
            Timer.Time("Plasma start",
                () =>
                {
                    string projectPath = Settings.WebProjectPath;
                    Console.WriteLine(
                        "Starting server for project path '{0}' . . .",
                        projectPath);
                    _plasmaApplication = new Plasma.Core.AspNetApplication(
                        "/",
                        Settings.WebProjectPath);

                    // Make first request to ensure app is started
                    var client =
                        new Plasma.Http.HttpPlasmaClient(_plasmaApplication);
                    client.Get(TestConstants.TestPath);
                });
        }