Ejemplo n.º 1
0
        public void SaveAuthorTest()
        {
            IAuthorService authorService = new AuthorService();
            Author author = authorService.GetAuthor("172-32-1176");
            Assert.AreNotEqual(author, null,"Author fetched Successfully");

            author.FirstName = "Johns";
            authorService.Save(author);
            Author author1 = authorService.GetAuthor("172-32-1176");
            Assert.AreEqual(author1.FirstName, author.FirstName, "Changes to Author saved and validated"); ;
        }