Esempio n. 1
0
 public DevRecipeSearchHandlerImpl(IConfiguration configuration)
 {
     _errorWriter       = new SlackChatWriter(new ApiConfigProviderImpl(configuration));
     _configuration     = configuration;
     _searchProvider    = new RecipeSearchProviderImpl(_errorWriter);
     _apiConfigProvider = new ApiConfigProviderImpl(_configuration);
 }
Esempio n. 2
0
 public ProdRecipeSearchHandlerImpl(IConfiguration configuration)
 {
     _configuration     = configuration;
     _errorWriter       = new SlackChatWriter(new EnvironmentVarsConfigProviderImpl(configuration));
     _searchProvider    = new RecipeSearchProviderImpl(_errorWriter);
     _apiConfigProvider = new EnvironmentVarsConfigProviderImpl(_configuration);
 }
 public RecipeProviderImpl(IErrorWriter errorWriter, IApiConfigProvider apiConfigProvider, IRecipeSearchProvider recipeSearchProvider)
 {
     _errorWriter          = errorWriter;
     _apiConfigProvider    = apiConfigProvider;
     _recipeSearchProvider = recipeSearchProvider;
 }