예제 #1
0
        public void BeforeScenario()
        {
            var container = new SpecflowContainer(objectContainer, Assembly.GetExecutingAssembly());

            new AutoTestsAppBuilder(container)
            .UseRoslynPreProcessor()
            .UseDefaultPreProcessorBindings()
            .UseDefaultComponentBindings()
            .UseModelTransformations();
        }
예제 #2
0
        public void BeforeScenario()
        {
            var container = new SpecflowContainer(objectContainer, Assembly.GetExecutingAssembly());

            new AutoTestsAppBuilder(container)
            .UseRoslynPreProcessor <BoostrapGlobals>(ScriptOptions.Default.AddReferences("Microsoft.CSharp"))
            .UseDefaultPreProcessorBindings()
            .UseDefaultComponentBindings()
            .UseJsonResource(Assembly.GetExecutingAssembly(), "Boostrap.Tests.Data.Common.json");

            container.Register(WebDriverFactory.GetWebDriver());
        }