Untitled

 avatar
unknown
plain_text
2 months ago
574 B
7
Indexable
using Microsoft.Extensions.DependencyInjection;
using TechTalk.SpecFlow;
using BoDi; // ✅ Ensure SpecFlow's dependency injection container is used

[Binding]
internal class DependenciesHooks
{
    [ScenarioDependencies]
    public static void CreateServices(IObjectContainer testThreadContainer)
    {
        var services = new ServiceCollection();

        // ✅ Register necessary services here, while ignoring AllureBindings
        testThreadContainer.RegisterInstanceAs<IServiceCollection>(new AllureIndifferentServiceCollection(services));
    }
}
Editor is loading...
Leave a Comment