public static AppConfigurator TestableAppConfigurator() { var webApplication = new WebApplication(Substitute.For <IProjectLocation>(), 45123); var configurator = new AppConfigurator(); configurator.WithJavaScriptExecutor(() => Substitute.For <IJavaScriptExecutor>()); configurator.WithWebDriver(() => Substitute.For <IWebDriver>()); configurator .ProjectToTest(webApplication) .WithWebServer(Substitute.For <IWebServer>()) .UsingCamera(new NullCamera()); return(configurator); }