예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult PrintNotes()
        {
            var json = _myNotesRepository.GetNotes();

            return(Json(json));
        }