1 write to _router
Microsoft.AspNetCore.Components.Tests (1)
Routing\RouterTest.cs (1)
31
_router
= (Router)_renderer.InstantiateComponent<Router>();
21 references to _router
Microsoft.AspNetCore.Components.Tests (21)
Routing\RouterTest.cs (21)
32
_router
.AppAssembly = Assembly.GetExecutingAssembly();
33
_router
.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
34
_renderer.AssignRootComponentId(
_router
);
47
_router
.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync);
50
await _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/jan", false));
76
_router
.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync);
79
var janTask = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/jan", false));
80
var febTask = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/feb", false));
116
_router
.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync);
119
var jan = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/jan", false));
120
var feb = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/feb", false));
137
_router
.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync);
140
_ =
_router
.RunOnNavigateAsync("jan", false);
141
_ =
_router
.RunOnNavigateAsync("feb", false);
169
_router
.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync);
172
var jan = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/jan", false));
173
var feb = _renderer.Dispatcher.InvokeAsync(() =>
_router
.RunOnNavigateAsync("http://example.com/feb", false));
194
_router
.SetParametersAsync(ParameterView.FromDictionary(parameters)));
221
_router
.SetParametersAsync(ParameterView.FromDictionary(parameters)));
240
_router
.SetParametersAsync(ParameterView.FromDictionary(parameters)));
260
_router
.SetParametersAsync(ParameterView.FromDictionary(parameters)));