public void UpdateListBox() { NotesTitlesListBox.Items.Clear(); foreach (var n in noteLogic.NotesList()) { NotesTitlesListBox.Items.Add(n.Name.ToString() + " => " + n.ID.ToString()); } }
public void RemoveNoteTest() { noteLogic.NewNote(noteViewModel); noteLogic.RemoveNote(noteViewModel); Assert.IsFalse(noteLogic.NotesList().Contains(noteViewModel)); }