public void ShouldReturnAListFromFindAll()
        {
            //arrange - act
            var list = _mockrepo.FindAll();

            //assert
            Assert.AreEqual(5, list.Count());
        }
Пример #2
0
 public IActionResult GetAuthors()
 {
     return(Ok(authorRepo.FindAll()));
 }