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); 50await _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 76_router.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync); 79var janTask = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 80var febTask = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/feb", false)); 116_router.OnNavigateAsync = new EventCallback<NavigationContext>(null, OnNavigateAsync); 119var jan = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 120var 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); 172var jan = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 173var 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)));