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()
 {
     _mockIService = new Mock<IRestaurantService>();
     _controller = new RestaurantController(_mockIService.Object);
 }