Exemple #1
0
 private void Init()
 {
     NBehaveInitializer.Initialize(ConfigurationNoAppDomain.New.SetEventListener(NBehave.EventListeners.EventListeners.NullEventListener()));
     actionCatalog    = TinyIoCContainer.Current.Resolve <ActionCatalog>();
     stringStepRunner = new StringStepRunner(actionCatalog);
     runner           = new FeatureRunner(stringStepRunner, TinyIoCContainer.Current.Resolve <IRunContext>());
 }
        public void SetUp()
        {
            CreateActionCatalog();
            IStringStepRunner stringStepRunner = new StringStepRunner(actionCatalog);

            featureRunner = new FeatureRunner(stringStepRunner, MockRepository.GenerateStub <IRunContext>());
        }
Exemple #3
0
        public virtual void SetUp()
        {
            hooksCatalog  = new HooksCatalog();
            actionCatalog = new ActionCatalog();
            var runContext = new RunContext(MockRepository.GenerateStub <IContextHandler>(), new HooksHandler(hooksCatalog));
            IStringStepRunner stringStepRunner = new StringStepRunner(actionCatalog);

            featureRunner = new FeatureRunner(stringStepRunner, runContext);
        }