public void SetupContext()
        {
            ResultListener = MockRepository.GenerateStub<IResultListener>();
            var remoteHandlerFactory = MockRepository.GenerateStub<IRemoteHandlerFactory>();

            var inPlaceRunner = new InPlaceCompilingStoryRunner(remoteHandlerFactory, ResultListener,new ScenarioPreprocessor(), new IncludeAllFilter(), new StoryContextFactory());
            inPlaceRunner.Finished();
        }
Exemple #2
0
        private void RunInCompilingRunner(Story story)
        {
            var configSettings = new ConfigSettings
            {
                AssemblyLocations = new[]
                {
                    GetType().Assembly.Location,
                    typeof(TestExtensionMethods).Assembly.Location,
                    typeof(Story).Assembly.Location
                }
            };

            var remoteHandlerFactory = new TestRemoteHandlerFactory(new AssemblyGenerator(), configSettings, new Filesystem());

            var runner = new InPlaceCompilingStoryRunner(
                remoteHandlerFactory,
                new IncludeAllFilter(),
                FakeEventBus);

            runner.HandleStories(new[] { story });
            runner.Finished();
        }