public override sealed void SetUp(ITestContext context) { // TODO -- later, make this thing be able to swap up the application under test _application = context.Retrieve<IApplicationUnderTest>(); beforeRunning(); }
Task ISubSystem.Start() { return(Task.Factory.StartNew(() => { var settings = StoryTellerEnvironment.Get <SerenityEnvironment>(); WebDriverSettings.Import(settings); FubuMvcPackageFacility.PhysicalRootPath = _settings.PhysicalPath; _runtime = _runtimeSource(); var browserLifecycle = WebDriverSettings.GetBrowserLifecyle(ChooseBrowserType()); _hosting = _settings.RootUrl.IsEmpty() ? (ISerenityHosting) new KatanaHosting() : new ExternalHosting(); _application = _hosting.Start(_settings, _runtime, browserLifecycle); _applicationAlterations.Each(x => x(_application)); _binding = _application.Services.GetInstance <BindingRegistry>(); _bindingRegistrations.Each(x => x(_binding)); configureApplication(_application, _binding); _contextualProviders = _runtime.Factory.GetAll <IContextualInfoProvider>(); _runtime.Facility.Register(typeof(IApplicationUnderTest), ObjectDef.ForValue(_application)); _runtime.Facility.Register(typeof(IRemoteSubsystems), ObjectDef.ForValue(this)); })); }
public override sealed void SetUp(ITestContext context) { // TODO -- later, make this thing be able to swap up the application under test _application = context.Retrieve <IApplicationUnderTest>(); beforeRunning(); }
public FubuMvcContext(IApplicationUnderTest application, BindingRegistry binding, IEnumerable<IContextualInfoProvider> contextualProviders ) { _application = application; _binding = binding; _contextualProviders = contextualProviders ?? new IContextualInfoProvider[0]; _contextualProviders.Each(x => x.Reset()); }
public FubuMvcContext(IApplicationUnderTest application, BindingRegistry binding, IEnumerable <IContextualInfoProvider> contextualProviders) { _application = application; _binding = binding; _contextualProviders = contextualProviders ?? new IContextualInfoProvider[0]; _contextualProviders.Each(x => x.Reset()); }
public void SetUp() { var context = new TestContext(); theSystem = new InProcessSerenitySystem<KayakApplication>(); theSystem.Setup(); theSystem.RegisterServices(context); theApplication = theSystem.Get<IApplicationUnderTest>(); theDriver = theApplication.Navigation; }
public void SetUp() { FubuMvcPackageFacility.PhysicalRootPath = FileSystem.Combine("..", "..", "..", "KayakTestApplication"); var context = new TestContext(); theSystem = new InProcessSerenitySystem<KayakApplication>(); theSystem.Setup(); theSystem.RegisterServices(context); theApplication = theSystem.Get<IApplicationUnderTest>(); theDriver = theApplication.Navigation; }
Task ISubSystem.Start() { return(Task.Factory.StartNew(() => { FubuMvcPackageFacility.PhysicalRootPath = _settings.PhysicalPath; _runtime = _runtimeSource(); var browserLifecycle = WebDriverSettings.GetBrowserLifecyle(ChooseBrowserType()); SetupApplicationHost(); _application = _hosting.Start(_settings, _runtime, browserLifecycle); _applicationAlterations.Each(x => x(_application)); _runtime.Facility.Register(typeof(IApplicationUnderTest), ObjectDef.ForValue(_application)); _runtime.Facility.Register(typeof(IRemoteSubsystems), ObjectDef.ForValue(this)); })); }
Task ISubSystem.Stop() { return(Task.Factory.StartNew(() => { if (_runtime != null) { _runtime.SafeDispose(); _runtime = null; } if (_application != null) { _application.Teardown(); _application = null; } if (_hosting != null) { _hosting.Shutdown(); _hosting = null; } })); }
public FubuMvcContext(IApplicationUnderTest application, BindingRegistry binding) { _application = application; _binding = binding; }
protected virtual void configureApplication(IApplicationUnderTest application, BindingRegistry binding) { }
protected virtual void beforeExecutingTest(IApplicationUnderTest application) { }
public NavigationDriver(IApplicationUnderTest application) { _application = application; }
public override sealed void SetUp() { _application = Context.Service <IApplicationUnderTest>(); beforeRunning(); }
protected override void configureApplication(IApplicationUnderTest application, BindingRegistry binding) { WebDriverSettings.Current.Browser = BrowserType.Chrome; }
public FubuMvcContext(IApplicationUnderTest application) { _application = application; }
public override sealed void SetUp(ITestContext context) { _application = context.Retrieve<IApplicationUnderTest>(); beforeRunning(); }
public override sealed void SetUp(ITestContext context) { _application = context.Retrieve <IApplicationUnderTest>(); beforeRunning(); }
public ApplicationDriver(IApplicationUnderTest application) { _application = application; }