public void SetUp()
        {
            var context = new TestContext();
            theSystem = new InProcessSerenitySystem<KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theDriver = context.Retrieve<NavigationDriver>();
        }
예제 #2
0
        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;
        }
예제 #4
0
 public void Setup()
 {
     _context = new TestContext();
     _system  = new InProcessSerenitySystem <ProductsManagementApplication>();
     _system.Setup();
     _system.SetupEnvironment();
     _system.RegisterServices(_context);
     _navigation = _context.Retrieve <NavigationDriver>();
     _navigation.NavigateToHome();
 }
예제 #5
0
        public void SetUp()
        {
            var context = new TestContext();

            theSystem = new InProcessSerenitySystem <KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theDriver = context.Retrieve <NavigationDriver>();
        }
예제 #6
0
        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;
        }
예제 #8
0
        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);
        }
예제 #9
0
        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();
        }
예제 #10
0
        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();
        }
예제 #11
0
 public void Setup()
 {
     _context = new TestContext();
     _system = new InProcessSerenitySystem<ProductsManagementApplication>();
     _system.Setup();
     _system.SetupEnvironment();
     _system.RegisterServices(_context);
     _navigation = _context.Retrieve<NavigationDriver>();
     _navigation.NavigateToHome();
 }