25 references to TestChatClient
Microsoft.Extensions.DataIngestion.Tests (25)
Processors\AlternativeTextEnricherTests.cs (4)
28using TestChatClient chatClient = new(); 41using TestChatClient chatClient = new() 125using TestChatClient chatClient = new() 164using TestChatClient chatClient = new()
Processors\ClassificationEnricherTests.cs (7)
29Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: [])); 35Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["same", "same"])); 41Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["same", "Unknown"])); 47Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["some"], fallbackClass: "some")); 53using TestChatClient chatClient = new(); 70using TestChatClient chatClient = new() 103using TestChatClient chatClient = new()
Processors\KeywordEnricherTests.cs (6)
31Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new KeywordEnricher(new(new TestChatClient()), predefinedKeywords: null, confidenceThreshold: threshold)); 39Assert.Throws<ArgumentOutOfRangeException>("maxKeywords", () => new KeywordEnricher(new(new TestChatClient()), predefinedKeywords: null, maxKeywords: keywordCount)); 45Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(new(new TestChatClient()), predefinedKeywords: ["same", "same"], confidenceThreshold: 0.5)); 51using TestChatClient chatClient = new(); 70using TestChatClient chatClient = new() 103using TestChatClient chatClient = new()
Processors\SentimentEnricherTests.cs (4)
31Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new SentimentEnricher(new(new TestChatClient()), confidenceThreshold: threshold)); 37using TestChatClient chatClient = new(); 54using TestChatClient chatClient = new() 90using TestChatClient chatClient = new()
Processors\SummaryEnricherTests.cs (4)
31Assert.Throws<ArgumentOutOfRangeException>("maxWordCount", () => new SummaryEnricher(new(new TestChatClient()), maxWordCount: wordCount)); 37using TestChatClient chatClient = new(); 54using TestChatClient chatClient = new() 87using TestChatClient chatClient = new()