public void TestInit() { var apiUrl = ConfigurationManager.AppSettings["justeat-api-endpoint"]; var restClient = new RestClient(apiUrl); var service = new RestaurantService(restClient); _controller = new RestaurantController(service); }
public void TestInit() { _mockIService = new Mock<IRestaurantService>(); _controller = new RestaurantController(_mockIService.Object); }