示例#1
0
        public void SetUp()
        {
            var library = FixtureLibrary.For(x => x.AddFixture <RecordingFixture>());

            system = new RecordingSystem();
            var fixtureContainerSource = new FixtureContainerSource(new Container(x =>
            {
                x.For <IFixture>().Add <RecordingFixture>().Named("Recording");
            }));

            fixtureContainerSource.RegisterFixture("Recording", typeof(RecordingFixture));

            runner = new TestRunner(system, library, fixtureContainerSource);

            var test = new Test("something");

            test.Add(new Section("Recording").WithStep("Execute"));

            runner.RunTest(new TestExecutionRequest()
            {
                Test             = test,
                TimeoutInSeconds = 1200
            });

            runner.RunTest(new TestExecutionRequest()
            {
                Test             = test,
                TimeoutInSeconds = 1200
            });
        }
示例#2
0
        public void SetUp()
        {
            var library = FixtureLibrary.For(x => x.AddFixture <RecordingFixture>());

            system = new RecordingSystem();


            var fixtureContainerSource = new FixtureContainerSource(new Container(x =>
            {
                x.For <IFixture>().Add <RecordingFixture>().Named("Recording");
            }));

            fixtureContainerSource.RegisterFixture("Recording", typeof(RecordingFixture));

            lifecycle = new SystemLifecycle(system);
            runner    = new TestRunner(lifecycle, library, fixtureContainerSource);
            lifecycle.StartApplication();

            lifecycle.RecycleEnvironment();

            var test = new Test("something");

            test.Add(new Section("Recording").WithStep("Execute"));

            runner.RunTest(new TestExecutionRequest()
            {
                Test             = test,
                TimeoutInSeconds = 1200
            });

            system.Messages.Each(x => Debug.WriteLine(x));
        }
示例#3
0
        public void SetUp()
        {
            var library = FixtureLibrary.For(x => x.AddFixture <RecordingFixture>());

            system = new RecordingSystem();


            var fixtureContainerSource = new FixtureContainerSource(new Container(x =>
            {
                x.For <IFixture>().Add <RecordingFixture>().Named("Recording");
            }));

            fixtureContainerSource.RegisterFixture("Recording", typeof(RecordingFixture));

            runner = new TestRunner(system, library, fixtureContainerSource);

            runner.Dispose();
        }
示例#4
0
 public Startup1Action(RecordingSystem system)
 {
     _system = system;
 }
示例#5
0
 public RecordingFixture(RecordingSystem system)
 {
     _system = system;
 }