public MessagesController() { _service = new FirebaseService(Environment.GetEnvironmentVariable("DatabaseEndpoint")); _yelpService = new YelpService( Environment.GetEnvironmentVariable("YelpClientId"), Environment.GetEnvironmentVariable("YelpClientSecret"), Environment.GetEnvironmentVariable("YelpPreferredLocation") ); }
public ThirdThursdayBot(IConfiguration configuration) { //_service = new FirebaseService(configuration.GetSection("DatabaseEndpoint")?.Value); _service = new FirebaseServiceMock(configuration.GetSection("DatabaseEndpoint")?.Value); _yelpService = new YelpService( configuration.GetSection("YelpClientId")?.Value, configuration.GetSection("YelpClientSecret")?.Value, configuration.GetSection("YelpPreferredLocation")?.Value ); var luidModelId = configuration.GetSection($"Luis-ModelId-Lunch")?.Value; var luisSubscriptionKey = configuration.GetSection("Luis-SubscriptionKey")?.Value; var luisUri = configuration.GetSection("Luis-Url")?.Value; this.luisLunchModel = new LuisApplication(luidModelId, luisSubscriptionKey, luisUri); this.luisRecognizer = new LuisRecognizer(luisLunchModel); }