public void AllArtistsShouldActuallyReturnAllArtists() { var artistsRepository = new Mock <IRepository <Artist> >(); artistsRepository.Setup(r => r.All()).Returns(new List <Artist>() { new Artist(), new Artist(), new Artist() }.AsQueryable()); var service = new HomeService(null, artistsRepository.Object, null); Assert.Equal(3, service.AllArtists().Count()); }