Пример #1
0
        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.WithScreenshotTaker(() => Substitute.For <ITakesScreenshot>());

            configurator
            .ProjectToTest(webApplication)
            .WithWebServer(Substitute.For <IWebServer>())
            .UsingCamera(new NullCamera());

            return(configurator);
        }