SIL.Cog.Application.Tests.ViewModels.WordListsViewModelTestEnvironment.OpenFindDialog C# (CSharp) Méthode

OpenFindDialog() public méthode

public OpenFindDialog ( ) : void
Résultat void
        public void OpenFindDialog()
        {
            _dialogService.ShowModelessDialog(_wordListsViewModel, Arg.Do<FindViewModel>(vm => _findViewModel = vm), Arg.Any<Action>());
            _wordListsViewModel.FindCommand.Execute(null);
        }

Usage Example

Exemple #1
0
        public void FindCommand_DialogOpen_NotOpenedAgain()
        {
            using (var env = new WordListsViewModelTestEnvironment())
            {
                SetupProjectWithWords(env);
                env.OpenFindDialog();

                env.DialogService.ClearReceivedCalls();
                env.WordListsViewModel.FindCommand.Execute(null);
                env.DialogService.DidNotReceive().ShowModelessDialog(env.WordListsViewModel, Arg.Any <FindViewModel>(), Arg.Any <Action>());
            }
        }
All Usage Examples Of SIL.Cog.Application.Tests.ViewModels.WordListsViewModelTestEnvironment::OpenFindDialog