public void It_Should_Be_Able_To_Count_Movies_In_The_Repository() { Mock <MoviesContext> mockContext = new Mock <MoviesContext>(); mockContext.Setup(context => context.GetNumberOfMovies()).Returns(1); var repo = new MovieRepository(mockContext.Object); int expected = 1; int count = repo.Count(); Assert.AreEqual(expected, count); }