5 instantiations of SentimentEnricher
Microsoft.Extensions.DataIngestion.Tests (5)
Processors\SentimentEnricherTests.cs (5)
20Assert.Throws<ArgumentNullException>("chatClient", () => new SentimentEnricher(null!)); 28Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new SentimentEnricher(new TestChatClient(), confidenceThreshold: threshold)); 35SentimentEnricher sut = new(chatClient); 67SentimentEnricher sut = new(chatClient); 94SentimentEnricher sut = new(chatClient);
8 references to SentimentEnricher
Microsoft.Extensions.DataIngestion (1)
Processors\SentimentEnricher.cs (1)
34/// Initializes a new instance of the <see cref="SentimentEnricher"/> class.
Microsoft.Extensions.DataIngestion.Tests (7)
Processors\SentimentEnricherTests.cs (7)
35SentimentEnricher sut = new(chatClient); 67SentimentEnricher sut = new(chatClient); 74Assert.Equal("Positive", chunks[0].Metadata[SentimentEnricher.MetadataKey]); 75Assert.Equal("Negative", chunks[1].Metadata[SentimentEnricher.MetadataKey]); 76Assert.Equal("Neutral", chunks[2].Metadata[SentimentEnricher.MetadataKey]); 77Assert.Equal("Unknown", chunks[3].Metadata[SentimentEnricher.MetadataKey]); 94SentimentEnricher sut = new(chatClient);