/// <inheritdoc/> public INLUTestClient CreateTestInstance(IConfiguration configuration, string settingsPath) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } var luisConfiguration = new TestLuisConfiguration(configuration); var luisClient = new LuisTestClient(luisConfiguration); return(new LuisNLUTestClient(luisClient)); }
/// <inheritdoc/> public INLUTestClient CreateTestInstance(IConfiguration configuration, string settingsPath) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } var luisSettings = settingsPath != null ? JsonConvert.DeserializeObject <LuisSettings>(File.ReadAllText(settingsPath)) : new LuisSettings(); var luisConfiguration = new TestLuisConfiguration(configuration); var luisClient = new LuisTestClient(luisConfiguration); return(new LuisNLUTestClient(luisSettings, luisClient)); }