Exemplo n.º 1
0
        string WriteStory()
        {
            var sw     = new StringWriter();
            var writer = new JsonStoryWriter(sw);

            writer.Write(story);
            string data = sw.ToString();

            return(data);
        }
Exemplo n.º 2
0
        public void GetDateTimeString()
        {
            var dateString = JsonStoryWriter.GetDateTimeString(new DateTime(2015, 01, 02, 15, 10, 5, DateTimeKind.Utc));

            Assert.AreEqual("2015-01-02T15:10:05Z", dateString);
        }