24 instantiations of TestChatClient
Microsoft.Extensions.DataIngestion.Tests (24)
Processors\AlternativeTextEnricherTests.cs (2)
23using TestChatClient chatClient = new(); 38using TestChatClient chatClient = new()
Processors\ClassificationEnricherTests.cs (8)
26Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new TestChatClient(), predefinedClasses: [])); 32Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new TestChatClient(), predefinedClasses: ["same", "same"])); 38Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new TestChatClient(), predefinedClasses: ["same", "Unknown"])); 44Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new TestChatClient(), predefinedClasses: ["some"], fallbackClass: "some")); 50Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new TestChatClient(), predefinedClasses: ["n,t"])); 56using TestChatClient chatClient = new(); 73using TestChatClient chatClient = new() 102using TestChatClient chatClient = new()
Processors\KeywordEnricherTests.cs (7)
28Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: null, confidenceThreshold: threshold)); 36Assert.Throws<ArgumentOutOfRangeException>("maxKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: null, maxKeywords: keywordCount)); 42Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: ["same", "same"], confidenceThreshold: 0.5)); 50Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: [$"n{illegal}t"])); 56using TestChatClient chatClient = new(); 75using TestChatClient chatClient = new() 104using TestChatClient chatClient = new()
Processors\SentimentEnricherTests.cs (4)
28Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new SentimentEnricher(new TestChatClient(), confidenceThreshold: threshold)); 34using TestChatClient chatClient = new(); 51using TestChatClient chatClient = new() 83using TestChatClient chatClient = new()
Processors\SummaryEnricherTests.cs (3)
28Assert.Throws<ArgumentOutOfRangeException>("maxWordCount", () => new SummaryEnricher(new TestChatClient(), maxWordCount: wordCount)); 34using TestChatClient chatClient = new(); 51using TestChatClient chatClient = new()
13 references to TestChatClient
Microsoft.Extensions.DataIngestion.Tests (13)
Processors\AlternativeTextEnricherTests.cs (2)
23using TestChatClient chatClient = new(); 38using TestChatClient chatClient = new()
Processors\ClassificationEnricherTests.cs (3)
56using TestChatClient chatClient = new(); 73using TestChatClient chatClient = new() 102using TestChatClient chatClient = new()
Processors\KeywordEnricherTests.cs (3)
56using TestChatClient chatClient = new(); 75using TestChatClient chatClient = new() 104using TestChatClient chatClient = new()
Processors\SentimentEnricherTests.cs (3)
34using TestChatClient chatClient = new(); 51using TestChatClient chatClient = new() 83using TestChatClient chatClient = new()
Processors\SummaryEnricherTests.cs (2)
34using TestChatClient chatClient = new(); 51using TestChatClient chatClient = new()