Exemple #1
0
        private XmlNode CreateNoteRequestElement(string noteTitle, string noteBody)
        {
            XmlDocument noteXml = new XmlDocument();
            NoteRequest noteRequest = new NoteRequest();
            noteRequest.Title = noteTitle;
            noteRequest.Body = noteBody;

            noteXml = noteRequest.ToXml();

            return noteXml.SelectSingleNode("/*");
        }
        public void Setup()
        {
            testNote = new Note();
            testNote.Id = "1";
            testNote.Title = "Test Note";
            testNote.CreatedAt = "Today";
            testNote.NoteBody = "This is a test note";

            noteXml = testNote.ToXml();

            testNoteRequest = new NoteRequest();
            testNoteRequest.Title = "Test Note";
            testNoteRequest.Body = "This is a test note";

            noteRequestXml = testNoteRequest.ToXml();
        }