Пример #1
0
        private void RegisterSpecFlowTransforms()
        {
            var transformFactory = new SpecFlowTransformFactory();

            var transforms = GetAssemblyTransforms();

            transforms.Add(new TenantIdTransform(CurrentTenantProvider));
            transforms.Add(new VersionTransform());

            transforms.ForEach(t => transformFactory.RegisterTransform(t));

            var transform = new SpecFlowTransform(transformFactory);

            _objectContainer.RegisterInstanceAs(transform, typeof(SpecFlowTransform));
        }
Пример #2
0
 protected EventAssertionsSteps(Container container)
 {
     _container = container;
     _transform = container.GetInstance <SpecFlowTransform>();
 }
Пример #3
0
 protected EventAssertionsSteps(Container container, SpecFlowTransform transform)
 {
     _container = container;
     _transform = transform;
 }