mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 21:47:38 +08:00
2d36dd4081
* tests: project up to standards * fix(module:form): allow EditContext change
24 lines
611 B
C#
24 lines
611 B
C#
using System;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign.Tests
|
|
{
|
|
[Obsolete("Use built in NavigationManager")]
|
|
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;
|
|
}
|
|
}
|