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