public void GivenFilledNotesListContext_GetNote_WithId1_ShouldReturnTheNoteWithIdPropertyEquals1() { var context = new NotesListContext(); context.AddNote(new Note()); var actualNote = context.GetNote(1); Assert.AreEqual(1, actualNote.Id); }
public void GivenFilledNotesListContext_SaveNote_WithId1_ShouldUpdateTheNote() { const string expected = "Updated"; var context = new NotesListContext(); context.AddNote(new Note()); context.SaveNote(new Note { Id = 1, Text = expected }); var actualNote = context.GetNote(1); Assert.AreEqual(expected, actualNote.Text); }