5 instantiations of SentimentEnricher
Microsoft.Extensions.DataIngestion.Tests (5)
Processors\SentimentEnricherTests.cs (5)
23
Assert.Throws<ArgumentNullException>("options", () => new
SentimentEnricher
(null!));
31
Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new
SentimentEnricher
(new(new TestChatClient()), confidenceThreshold: threshold));
38
SentimentEnricher sut =
new
(new(chatClient));
72
SentimentEnricher sut =
new
(new(chatClient));
95
SentimentEnricher 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)
38
SentimentEnricher
sut = new(new(chatClient));
72
SentimentEnricher
sut = new(new(chatClient));
79
Assert.Equal("Positive", chunks[0].Metadata[
SentimentEnricher
.MetadataKey]);
80
Assert.Equal("Negative", chunks[1].Metadata[
SentimentEnricher
.MetadataKey]);
81
Assert.Equal("Neutral", chunks[2].Metadata[
SentimentEnricher
.MetadataKey]);
82
Assert.Equal("Unknown", chunks[3].Metadata[
SentimentEnricher
.MetadataKey]);
95
SentimentEnricher
sut = new(new(chatClient) { LoggerFactory = loggerFactory });