Exemplo n.º 1
0
        public void NotebookCanBeConverted()
        {
            IConverter <Notebook, Chronicy.Web.Models.Notebook> converter = new NotebookConverter();
            Notebook initial = new Notebook("A Notebook");

            Chronicy.Web.Models.Notebook webNotebook = converter.Convert(initial);
            Notebook convertedBack = converter.ReverseConvert(webNotebook);

            Assert.AreEqual(initial, convertedBack);
        }