コード例 #1
0
        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);
        }
コード例 #2
0
 public List <Author> RetrieveAllAuthors()
 {
     return(_authorFunctions.RetrieveAllAuthors());
 }