Class ViewModelTestSupport
Low-level helpers for associating navigators and parameters with view models directly, for mock-style tests that do not use TestNavigator. Each association can only be made once per view model instance, matching the application navigator.
Namespace: Singulink.UI.Navigation.Testing
Assembly: Singulink.UI.Navigation.Testing.dll
Syntax
public static class ViewModelTestSupport
Remarks
Prefer TestNavigator for routed view models: it creates them the same way the application does (with the navigator and parameter available inside the constructor) and runs the real navigation engine. These helpers attach to an already constructed instance, so a view model that uses its navigator or parameter in its constructor cannot be set up this way.
Methods
| Name | Description |
|---|---|
| AttachNavigator(IDialogViewModel, IDialogNavigator) | Associates the specified navigator with a dialog view model so that its |
| AttachNavigator(IRoutedViewModelBase, INavigator) | Associates the specified navigator with a routed view model so that its |
| SetParameter<TParam>(IRoutedViewModel<TParam>, TParam) | Associates the specified route parameter with a routed view model so that its |