public void AddNoteShouldSuccess() { Note note = new Note { NoteId = 1, NoteTitle = "Technology", NoteContent = "ASP.NET Core", NoteStatus = "Completed" }; noteRepository.AddNote(note); Assert.True(noteRepository.Exists(note.NoteId)); }
public void AddNoteShouldSuccess() { Note note = new Note { NoteTitle = "Testing", NoteContent = "Unit Testing", NoteStatus = "Started" }; int result = noteRepository.AddNote(note); Assert.NotEqual(0, result); Assert.True(noteRepository.Exists(note.NoteId)); Assert.Equal(3, note.NoteId); }