Beispiel #1
0
        public static void AllBooksAuthor_2_NotEmpty()
        {
            int authorID = 2;
            var rezult   = _authorRepository.AllBookAuthor(authorID);

            Assert.NotEmpty(rezult);
        }
        public static void AllBooksAuthor_2_NotEmpty()
        {
            int authorID = 2;

            _mock.Setup(p => p.AllBookAuthor(authorID)).Returns(authorRepository.AllBookAuthor(authorID));
            var rezult = _mock.Object.AllBookAuthor(authorID);

            Assert.NotEmpty(rezult);
        }