예제 #1
0
 public NewNoteTests()
 {
     Services    = new MockAppServiceProvider();
     ViewModel   = new NotePageViewModel(Services);
     SetupParams = NotePageSetupParameters.NewNote(Guid.NewGuid());
     ViewModel.Setup(SetupParams);
 }
예제 #2
0
 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);
        }