public MoviesHandlerTests() { var engine = Substitute.For <ICupEngine>(); engine.Process(Arg.Any <List <Movie> >()).Returns(this.MockMovies()); this.handler = new MoviesHandler(engine); }
public MoviesController(IMoviesRepository repository, IMoviesHandler handler) { this.repository = repository; this.handler = handler; }