コード例 #1
0
        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;
        }
コード例 #3
0
        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);
        }
コード例 #7
0
        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
ファイル: debugging.cs プロジェクト: jmarnold/fubumvc
        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();
 }