20 lines
455 B
C#
20 lines
455 B
C#
using EATestFramework.Settings;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace EATestFramework.Driver;
|
|
public static class WebDriverInitializerExtension
|
|
{
|
|
public static IServiceCollection UseWebDriverInitializer(
|
|
this IServiceCollection services,
|
|
BrowserType browserType)
|
|
{
|
|
services.AddSingleton(new TestSettings
|
|
{
|
|
BrowserType = browserType
|
|
});
|
|
|
|
return services;
|
|
}
|
|
}
|
|
|