public void SetUp() { var mockRepo = new Mock<MovieRepository>(); var movies = new List<Movie> { new Movie("Avatar"), new Movie("Up in the Air"), new Movie("Finding Nemo"), new Movie("Ping Pong") }; mockRepo.Setup(repo => repo.FindAllMovies()).Returns(movies); customer = new Customer("John Smith"); controller = new HomePageController(customer, mockRepo.Object); }
public void SetUp() { customer = new Customer("John Smith"); controller = new HomePageController(customer); }