public void Initialize_NotNull_InitializesNavigationService()
        {
            var param = new object();

            _navigator.Initialize(param);

            _frameNavigationService.Received(1).Initialize(Arg.Is(param));
        }
Example #2
0
        public void NavigateToFirstPage_CallsNavigateAndClearsBackStack()
        {
            _vm.NavigateToFirstPage();

            _frameNavigationService.Received(1).NavigateToViewModel <ViewModelStub>(
                Arg.Is(true),
                Arg.Is((IReadOnlyList <NavigationParameterModel>)null));
        }
        public void GoBack_WithFrameNavigationService_ExecutesFrameNavigationServiceGoBack()
        {
            _viewModel.GoBack();

            _frameNavigationService.Received(1).GoBack();
        }