Untitled
unknown
plain_text
9 months ago
574 B
9
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