Class TestNavigatorBuilder
Builder for TestNavigator. View models are mapped without views, since the test navigator uses placeholders in place of views and dialogs. Routes are added with the same route definitions the application uses.
Implements
Inherited Members
Namespace: Singulink.UI.Navigation.Testing
Assembly: Singulink.UI.Navigation.Testing.dll
Syntax
public sealed class TestNavigatorBuilder : NavigatorBuilderCore, INavigatorBuilder
Properties
| Name | Description |
|---|---|
| RequiredParentViewType | Gets the type that parent views must implement (e.g. |
Methods
| Name | Description |
|---|---|
| AddDefaultDialogActivators() | Allows derived builders to register default dialog activators (typically via TryMapDefaultDialog(Type, Func<object>)) that should only apply when the consumer has not provided their own mapping. Invoked once when the navigator is being constructed, after the consumer's build action has run. |
| MapDialog<TViewModel>() | Maps a dialog view model type. Mapping dialogs is optional: any dialog view model can be shown without a mapping, and this method only exists to mirror application builders that register dialogs explicitly. |
| MapViewModel<TViewModel>() | Maps a routed view model type so routes can be added for it. View models are created the same way the application navigator creates them, including constructor injection from Services and parent-provided child services. |