public void SetUp() { var context = new TestContext(); theSystem = new InProcessSerenitySystem<KayakApplication>(); theSystem.Setup(); theSystem.RegisterServices(context); theDriver = context.Retrieve<NavigationDriver>(); }
public void SetUp() { Context = new TestContext(); var application = new FakeApplication(); Context.Store <IApplicationUnderTest>(application); SetUp(Context); theUrlRegistry = application.Urls; }
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() { _context = new TestContext(); _system = new InProcessSerenitySystem <ProductsManagementApplication>(); _system.Setup(); _system.SetupEnvironment(); _system.RegisterServices(_context); _navigation = _context.Retrieve <NavigationDriver>(); _navigation.NavigateToHome(); }
public void SetUp() { var context = new TestContext(); theSystem = new InProcessSerenitySystem <KayakApplication>(); theSystem.Setup(); theSystem.RegisterServices(context); theDriver = context.Retrieve <NavigationDriver>(); }
public void register_services_puts_both_the_serenity_applications_and_primary_app_in() { var system = new SerenitySystem(); system.AddApplication<Foo>(); system.AddApplication<Bar>(); var context = new TestContext(); system.RegisterServices(context); context.Retrieve<IApplicationUnderTest>().Name.ShouldEqual("Foo"); context.Retrieve<SerenityApplications>().ShouldBeTheSameAs(system.Applications); }
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; }
public void register_services_puts_both_the_serenity_applications_and_primary_app_in() { var system = new SerenitySystem(); system.AddApplication <Foo>(); system.AddApplication <Bar>(); var context = new TestContext(); system.RegisterServices(context); context.Retrieve <IApplicationUnderTest>().Name.ShouldEqual("Foo"); context.Retrieve <SerenityApplications>().ShouldBeTheSameAs(system.Applications); }
public void start_an_inprocess_system_without_blowing_up() { var context = new TestContext(); var system = new InProcessSerenitySystem<KayakApplication>(); system.SetupEnvironment(); system.RegisterServices(context); var driver = context.Retrieve<NavigationDriver>(); driver.NavigateToHome(); Thread.Sleep(5000); system.TeardownEnvironment(); }
public void start_an_inprocess_system_without_blowing_up() { var context = new TestContext(); var system = new InProcessSerenitySystem <KayakApplication>(); system.SetupEnvironment(); system.RegisterServices(context); var driver = context.Retrieve <NavigationDriver>(); driver.NavigateToHome(); Thread.Sleep(5000); system.TeardownEnvironment(); }
public void Setup() { _context = new TestContext(); _system = new InProcessSerenitySystem<ProductsManagementApplication>(); _system.Setup(); _system.SetupEnvironment(); _system.RegisterServices(_context); _navigation = _context.Retrieve<NavigationDriver>(); _navigation.NavigateToHome(); }