mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
ba2c5e51d8
* test: change folder structure and add new TestKit csproj for public testing of AntDesign-based applications * docs: added CN and EN docs about TestKit * fix doc translate * change the directory structure Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app> Co-authored-by: James Yeung <shunjiey@hotmail.com>
22 lines
548 B
C#
22 lines
548 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign.Tests
|
|
{
|
|
public class TestNavigationManager : NavigationManager
|
|
{
|
|
public delegate void NavigatedCallback(string uri, bool forceLoad);
|
|
|
|
public TestNavigationManager()
|
|
{
|
|
Initialize("http://localhost/", "http://localhost/");
|
|
}
|
|
|
|
protected override void NavigateToCore(string uri, bool forceLoad)
|
|
{
|
|
Navigated?.Invoke(uri, forceLoad);
|
|
}
|
|
|
|
public event NavigatedCallback Navigated;
|
|
}
|
|
}
|