public ModifyVocabularyWordViewModelTests() { _screen = ModifyVocabularyWordScreen.ForNewWord() .WithSpelling("spelling") .WithPhrase("phrase") .WithPronunciation("pronunciation"); var application = new WordTutorApplication(_screen); _store = new FakeApplicationStore(application); _logger = new FakeLogger(); _model = new ModifyVocabularyWordViewModel(_store, _logger); _notifyPropertyChanged = new NotifyPropertyChangedProbe(_model); _store.ClearCapturedMessages(); }
public VocabularyBrowserViewModelTests() { _screen = new VocabularyBrowserScreen() .WithSelection(_word) .MarkAsModified(); var vocabulary = VocabularySet.Empty .Add(_word) .Add(_otherWord); _application = new WordTutorApplication(_screen) .WithVocabularySet(vocabulary); _store = new FakeApplicationStore(_application); _model = new VocabularyBrowserViewModel(_store, _logger); _notifyPropertyChanged = new NotifyPropertyChangedProbe(_model); _store.ClearCapturedMessages(); }