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() { _mockIRestClient = new Mock<IRestClient>(); _service = new RestaurantService(_mockIRestClient.Object); }