public AntDesignTestBase()
        {
            Context           = new TestContext();
            NavigationManager = new TestNavigationManager();

            Context.Services.AddScoped <NavigationManager>(sp => NavigationManager);
            Context.Services.AddAntDesign();
        }
Ejemplo n.º 2
0
        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");
        }