public AntDesignTestBase() { Context = new TestContext(); NavigationManager = new TestNavigationManager(); Context.Services.AddScoped <NavigationManager>(sp => NavigationManager); Context.Services.AddAntDesign(); }
public AntDesignTestBase() { Context = new TestContext(); NavigationManager = new TestNavigationManager(); Context.Services.AddScoped <NavigationManager>(sp => NavigationManager); Context.Services.AddAntDesign(); CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.CurrentCulture; }
public AntDesignTestBase() { NavigationManager = new TestNavigationManager(); Context.Services.AddScoped <NavigationManager>(sp => NavigationManager); Context.Services.AddAntDesign(); //Needed for Tests using Overlay Context.Services.AddScoped <AntDesign.JsInterop.DomEventService>(sp => new TestDomEventService(Context.JSInterop.JSRuntime)); CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo("en-US"); }