5 instantiations of SentimentEnricher
Microsoft.Extensions.DataIngestion.Tests (5)
Processors\SentimentEnricherTests.cs (5)
23Assert.Throws<ArgumentNullException>("options", () => new SentimentEnricher(null!)); 31Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new SentimentEnricher(new(new TestChatClient()), confidenceThreshold: threshold)); 38SentimentEnricher sut = new(new(chatClient)); 72SentimentEnricher sut = new(new(chatClient)); 95SentimentEnricher sut = new(new(chatClient) { LoggerFactory = loggerFactory });
9 references to SentimentEnricher
Microsoft.Extensions.DataIngestion (2)
Processors\SentimentEnricher.cs (2)
26/// Initializes a new instance of the <see cref="SentimentEnricher"/> class. 41_logger = _options.LoggerFactory?.CreateLogger<SentimentEnricher>();
Microsoft.Extensions.DataIngestion.Tests (7)
Processors\SentimentEnricherTests.cs (7)
38SentimentEnricher sut = new(new(chatClient)); 72SentimentEnricher sut = new(new(chatClient)); 79Assert.Equal("Positive", chunks[0].Metadata[SentimentEnricher.MetadataKey]); 80Assert.Equal("Negative", chunks[1].Metadata[SentimentEnricher.MetadataKey]); 81Assert.Equal("Neutral", chunks[2].Metadata[SentimentEnricher.MetadataKey]); 82Assert.Equal("Unknown", chunks[3].Metadata[SentimentEnricher.MetadataKey]); 95SentimentEnricher sut = new(new(chatClient) { LoggerFactory = loggerFactory });