public NewNoteTests() { Services = new MockAppServiceProvider(); ViewModel = new NotePageViewModel(Services); SetupParams = NotePageSetupParameters.NewNote(Guid.NewGuid()); ViewModel.Setup(SetupParams); }
public CachedUneditedNewNoteTests() { Services = new MockAppServiceProvider(); Services.MockNoteDatabase.GetCachedNoteResult = new Note(); ViewModel = new NotePageViewModel(Services); SetupParams = NotePageSetupParameters.NewNote(Guid.NewGuid()); ViewModel.Setup(SetupParams); }
public CachedUneditedExistingNoteTests() { Services = new MockAppServiceProvider(); ViewModel = new NotePageViewModel(Services); var id = Guid.NewGuid(); Services.MockNoteDatabase.NoteTable[id] = new Note() { ID = id, FolderID = Guid.NewGuid(), Name = "name", Text = "text" }; SetupParams = NotePageSetupParameters.ExistingNote(id); ViewModel.Setup(SetupParams); }