public void BeforeScenario() { var container = new SpecflowContainer(objectContainer, Assembly.GetExecutingAssembly()); new AutoTestsAppBuilder(container) .UseRoslynPreProcessor() .UseDefaultPreProcessorBindings() .UseDefaultComponentBindings() .UseModelTransformations(); }
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()); }