コード例 #1
0
        public void CreatingANewAuthor()
        {
            var authorCount = _authorController.RetrieveAllAuthors().Count;

            _authorController.CreateAAuthor("firstName", "lastName");
            var newCount = _authorController.RetrieveAllAuthors().Count;

            _testMethods.DeleteAuthor();

            Assert.AreEqual(authorCount + 1, newCount);
        }
コード例 #2
0
 public void CreateNewAuthor(string lastName, string firstName)
 {
     _authorFunctions.CreateAAuthor(lastName, firstName);
 }