// private readonly IMemoryCache memoryCache; public RestaurantsController(IRestaurantsService restaurantsService, IDestinationsService destinationsService /*, IMemoryCache memoryCache*/) { this.restaurantsService = restaurantsService; this.destinationsService = destinationsService; // this.memoryCache = memoryCache; }
public RestaurantsController(IAuthenticationProvider authProvider, IRestaurantsService restaurantsService, IModelsMapper mapper) { this.authProvider = authProvider; this.restaurantsService = restaurantsService; this.mapper = mapper; }
public BookingsService(IRepository <Booking> repository, IUnitOfWork unitOfWork, IBookingsFactory factory, IRestaurantsService restaurantsService) { this.repository = repository; this.unitOfWork = unitOfWork; this.factory = factory; this.restaurantsService = restaurantsService; }
public DestinationsService( IRepository <Destination> destinationsRepository, IRepository <Country> countriesRepository, IActivitiesService activitiesService, IRestaurantsService restaurantsService, Cloudinary cloudinary) { this.destinationsRepository = destinationsRepository; this.countriesRepository = countriesRepository; this.activitiesService = activitiesService; this.restaurantsService = restaurantsService; this.cloudinary = cloudinary; }
/// <summary> /// /// </summary> public void ConfigureContainer() { //todo - move settings to config file _httpClient = new HttpClient { BaseAddress = new Uri("https://public.je-apis.com/") }; _httpClient.DefaultRequestHeaders.Clear(); _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); _httpClient.DefaultRequestHeaders.Add("Accept-Language", "en-GB"); _httpClient.DefaultRequestHeaders.Add("Authorization", "Basic VGVjaFRlc3RBUEk6dXNlcjI="); _httpClient.DefaultRequestHeaders.Add("Accept-Tenant", "uk"); _response = new HttpResponseMessage(); _inputValidator = new InputValidator(); _errorLoggerSb = new StringBuilder(); _restaurantsBusinessLogic = new RestaurantsBusinessLogic(_httpClient, _response, _errorLoggerSb); _restaurantsService = new RestaurantsService(_restaurantsBusinessLogic); _restaurantsProxy = new RestaurantsProxy(_restaurantsService); }
public RestaurantServicePostCodeSearchTests() { _restaurantsApiClientMock = new Mock <IRestaurantsApiClient>(); var loggerMock = new Mock <ILogger <RestaurantsService> >(); IOptions <MemoryCacheOptions> options = new MemoryCacheOptions(); _cacheMock = new MemoryCache(options); var cacheSettings = new CacheSettings { ExpiryInMinutes = 1 }; var mappingConfig = new MapperConfiguration(mc => { mc.AddProfiles(new Profile[] { new RestaurantsMapper() }); }); _mapper = mappingConfig.CreateMapper(); _restaurantsService = new RestaurantsService(loggerMock.Object, _restaurantsApiClientMock.Object, _cacheMock, cacheSettings, _mapper ); }
public RestaurantsController(IRestaurantsService restaurantsService) { _restaurantsService = restaurantsService; }
public RestaurantsController(IRestaurantsService restaurantsService, IMapper mapper) { _restaurantsService = restaurantsService; _mapper = mapper; }
public RestaurantsController(IRestaurantsService restaurantsService, IRatingsService ratingsService) { this.restaurantsService = restaurantsService; this.ratingsService = ratingsService; }
public RestaurantsController(IRestaurantsService restaurantsService, IDestinationsService destinationsService) { this.restaurantsService = restaurantsService; this.destinationsService = destinationsService; }
public GetAllRestaurantsQueryHandler(IRestaurantsService restaurantsService) { _restaurantsService = restaurantsService; }
public IndexModel(ILogger <IndexModel> logger, IRestaurantsService restaurantsService) => (this.logger, this.restaurantsService) = (logger, restaurantsService);
public RestaurantsController(ILogger <RestaurantsController> logger, IRestaurantsService restaurantsService) { _logger = logger; _restaurantsService = restaurantsService; }
public RestaurantsController(IRestaurantsService RestaurantService) { _RestaurantService = RestaurantService; }
public HomeController(ILogger <HomeController> logger, IMapper mapper, IRestaurantsService restaurantsService) { _logger = logger; _mapper = mapper; _restaurantsService = restaurantsService; }
public ReservationsController(IReservationsService reservationsService, IRestaurantsService restaurantsService) { this.reservationsService = reservationsService; this.restaurantsService = restaurantsService; }
public SearchRestaurantsQueryHandler(IRestaurantsService restaurantsService) { _restaurantsService = restaurantsService; }
public RestaurantsController(IRestaurantsService restaurantServices) { this.restaurantServices = restaurantServices; }
public RestaurantsController(IRestaurantsService restaurantsService, IIngredientsService ingredientsService) { _restaurantsService = restaurantsService; _ingredientsService = ingredientsService; }
public RestaurantsController() { _restaurantsService = new RestaurantsService(); _ingredientsService = new IngredientsService(); }
public SalesHistoryController() { _restaurantsService = new RestaurantsService(); _salesHistorysService = new SalesHistoryService(); _recipesService = new RecipesService(); }
public SalesHistoryController(ISaleHistoryService saleHistoryService, IRestaurantsService restaurantsService, IRecipesService recipesService) { _restaurantsService = restaurantsService; _salesHistorysService = saleHistoryService; _recipesService = recipesService; }
public RestaurantsProxy(IRestaurantsService restaurantsService) { _restaurantsService = restaurantsService; }