public void TestInit()
 {
     var apiUrl = ConfigurationManager.AppSettings["justeat-api-endpoint"];
     var restClient = new RestClient(apiUrl);
     var service = new RestaurantService(restClient);
     _controller = new RestaurantController(service);
 }
Esempio n. 2
0
 public void TestInit()
 {
     _mockIRestClient = new Mock<IRestClient>();
     _service = new RestaurantService(_mockIRestClient.Object);
 }