Esempio n. 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);
        }
 public void CreateNewPlay(string title, string bio, string genre, object author, object theatre)
 {
     _playFunctions.CreateAPlay(title, bio, genre, author, theatre);
 }