public void GetAllAuthorsTest_AuthorListValue()
        {
            // arrange
            var    data     = GetFakeAuthor(5);
            String expected = data.First().Name;

            var service = new Mock <IBookStoreService>();

            service.Setup(x => x.GetAllAuthorsService()).Returns(data);
            var controller = new BookStoreController(service.Object);

            // act
            String actual = controller.GetAllAuthors().First().Name;

            // assert
            Assert.Equal(expected, actual);
        }
        public void GetAllAuthorsTest_AuthorListSize()
        {
            // arrange
            int expected = 10;
            var data     = GetFakeAuthor(expected);

            var service = new Mock <IBookStoreService>();

            service.Setup(x => x.GetAllAuthorsService()).Returns(data);
            var controller = new BookStoreController(service.Object);

            // act
            int actual = controller.GetAllAuthors().Count();

            // assert
            Assert.Equal(expected, actual);
        }