예제 #1
0
        public void DeleteNoteShouldSuccess()
        {
            int id     = 2;
            int result = noteRepository.DeletNote(id);

            Assert.NotEqual(0, result);
            Assert.False(noteRepository.Exists(id));
        }
예제 #2
0
        public void DeleteNoteShouldSuccess()
        {
            Note note = new Note {
                NoteId = 2, NoteTitle = "Stack", NoteContent = "DOTNET", NoteStatus = "Started"
            };

            noteRepository.AddNote(note);
            Assert.True(noteRepository.Exists(note.NoteId));

            noteRepository.DeletNote(note.NoteId);
            Assert.False(noteRepository.Exists(note.NoteId));
        }