public void PrintAllNotesFormJson() { var expectedJson = new List <Notes> { new Notes { Note = "456" }, new Notes { Note = "123" }, new Notes { Note = "789" }, new Notes { Note = "9999" } }; var resultJson = _notes.GetNotes(); Assert.IsTrue(CompareListsOfNotes(expectedJson, resultJson)); }
public ActionResult PrintNotes() { var json = _myNotesRepository.GetNotes(); return(Json(json)); }