Example #1
0
        public ViewFactory(IViewConfigurationResolver viewConfigResolver)
        {
            ViewConfigResolver = viewConfigResolver;

            // A view model is required by default.
            IsViewModelRequiredForView = true;
        }
 private static void InitNavigation(IViewConfigurationResolver viewConfigResolver)
 {
     viewConfigResolver.RegisterViewConfiguration<Detail>(MoviesViewTargets.Detail);
     viewConfigResolver.RegisterViewConfiguration<AdvancedSearch>(MoviesViewTargets.AdvancedSearch);
 }
        private ViewFactory GetViewFactory()
        {
            _viewConfigResolver = Substitute.For<IViewConfigurationResolver>();

            return new ViewFactory(_viewConfigResolver);
        }