public void UpdateAuthor() { _authorController.CreateAAuthor("firstName", "lastName"); var author = _authorController.RetrieveAllAuthors().Last(); var selectedAuthorTitle = author.FirstName; _authorController.UpdateExistingAuthor(author.AuthorId, "UpdatedName", "LastName"); var updatedAuthor = _authorController.RetrieveAllAuthors().Last(); var updatedAuthorTitle = updatedAuthor.FirstName; Assert.AreNotEqual(selectedAuthorTitle, updatedAuthorTitle); _testMethods.DeleteAuthor(); }
public void UpdateAuthor(int authorId, string firstName, string lastName) { _authorFunctions.UpdateExistingAuthor(authorId, firstName, lastName); }