public void DeleteNoteShouldSuccess() { int id = 2; int result = noteRepository.DeletNote(id); Assert.NotEqual(0, result); Assert.False(noteRepository.Exists(id)); }
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)); }