Skip to content

Commit dff3c70

Browse files
committed
Fix build of tests.
1 parent ebc2537 commit dff3c70

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Mvc/Mvc.TagHelpers/test/ComponentTagHelperTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
104104

105105
class MockNavigationManager : NavigationManager, IHostEnvironmentNavigationManager
106106
{
107+
private EventHandler<NavigationEventArgs>? _onNavigateTo;
108+
109+
public event EventHandler<NavigationEventArgs> OnNavigateTo
110+
{
111+
add => _onNavigateTo += value;
112+
remove => _onNavigateTo -= value;
113+
}
114+
107115
public MockNavigationManager()
108116
{
109117
Initialize("https://localhost:85/subdir/", "https://localhost:85/subdir/path?query=value#hash");

0 commit comments

Comments
 (0)