public void SetUp()
        {
            _containerScope = new Mock <IDependencyContainerV2>();
            _scenarioScope  = new Mock <IDependencyContainerV2>();
            _stepScope      = new Mock <IDependencyContainerV2>();

            _containerScope.Setup(x => x.BeginScope(It.IsAny <LifetimeScope>(), It.IsAny <Action <ContainerConfigurator> >()))
            .Returns(_scenarioScope.Object);

            _scenarioScope.Setup(x => x.BeginScope(It.IsAny <LifetimeScope>(), It.IsAny <Action <ContainerConfigurator> >()))
            .Returns(_stepScope.Object);

            _feature = new TestableFeatureRunnerRepository(TestableIntegrationContextBuilder.Default()
                                                           .WithConfiguration(c => c.DependencyContainerConfiguration().UseContainer(_containerScope.Object)))
                       .GetRunnerFor(GetType());

            _runner = _feature.GetBddRunner(this);
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _feature = TestableFeatureRunnerRepository.GetRunner(GetType());
     _runner  = _feature.GetBddRunner(this);
 }
 public void SetUp()
 {
     _feature       = TestableFeatureRunnerRepository.GetRunner(GetType());
     _runner        = _feature.GetBddRunner(this);
     _executedSteps = new List <string>();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Default constructor initializing <see cref="Runner"/> for feature class instance.
 /// </summary>
 protected FeatureFixture()
 {
     _featureRunner = FeatureRunnerProvider.GetRunnerFor(GetType());
     Runner         = _featureRunner.GetBddRunner(this);
 }