예제 #1
0
        private void TestBook(IMapContext context, int n)
        {
            var large    = Book.Factory <Book, Genre, Page, Headnote, Footnote>(n, x => (Genre)x);
            var json     = context.ToJson(large);
            var newLarge = context.To <Book>(json);

            AssertBook(large, newLarge);
        }