예제 #1
0
        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);
        }
예제 #2
0
        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);
        }