public void createNote_Test() { CreateNoteBll createNote = new CreateNoteBll(); int expectedCount = createNote.countNote() + 1; createNote.insertNoteInfo(2, 1, "NoteTitle", "NoteCategory", "NoteContent"); int actualCount = createNote.countNote(); Assert.AreEqual(expectedCount, actualCount); }
public void deleteNote_Testing() { CreateNoteBll createNote = new CreateNoteBll(); int expectedCount = createNote.countNote() - 1; StickyNoteBLL deleteNote = new StickyNoteBLL(); int noteId = 34; deleteNote.deleteStickyNote(noteId); int actualCount = createNote.countNote(); Assert.AreEqual(expectedCount, actualCount); }