public void SetUp() { _moviesRepository = new FakeMoviesRepository(); _shoppingCartService = new FakeShoppingCartService(); _shoppingCartController = new ShoppingCartController(_shoppingCartService, _moviesRepository); var controllerContext = new Mock<ControllerContext>(); controllerContext.Setup(x => x.HttpContext.Server.HtmlEncode("")).Returns(""); _shoppingCartController.ControllerContext = controllerContext.Object; }
public void SetUp() { _fakeMoviesRepository = new FakeMoviesRepository(); _fakeCategoriesRepository = new FakeCategoriesRepository(); _adminController = new AdminController(_fakeCategoriesRepository, _fakeMoviesRepository); }