public void GetAllAuthorsTest() { AuthorService target = new AuthorService(); List<Author> expected = null; List<Author> actual; actual = target.GetAllAuthors(); Assert.AreNotEqual(actual.Count,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"); ; }
public void AddTitlesTest() { IAuthorService authorService = new AuthorService(); //Titles titles=new Titles }