コード例 #1
0
ファイル: NewNoteTests.cs プロジェクト: Deijin27/NoteSharp
 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);
 }
コード例 #3
0
        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);
        }