public void CreatingANewPlay() { var authors = _authorController.RetrieveAllAuthors(); var author = authors[0]; var playCount = _playController.RetrieveAllPlays().Count; _playController.CreateAPlay("title", "bio", "genre", author, null); var newCount = _playController.RetrieveAllPlays().Count; _testMethods.DeletePlay(); Assert.AreEqual(playCount + 1, newCount); }
public List <Author> RetrieveAllAuthors() { return(_authorFunctions.RetrieveAllAuthors()); }