internal MinedOpinion(AspectSentiment aspect, IReadOnlyList <OpinionSentiment> opinions)
 {
     Aspect   = aspect;
     Opinions = new List <OpinionSentiment>(opinions);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="TextAnalytics.MinedOpinion"/> for mocking purposes.
 /// </summary>
 /// <param name="aspect">Sets the <see cref="MinedOpinion.Aspect"/> property.</param>
 /// <param name="opinions">Sets the <see cref="MinedOpinion.Opinions"/> property.</param>
 /// <returns>A new instance of <see cref="TextAnalytics.MinedOpinion"/> for mocking purposes.</returns>
 public static MinedOpinion MinedOpinion(AspectSentiment aspect, IReadOnlyList <OpinionSentiment> opinions)
 {
     return(new MinedOpinion(aspect, opinions));
 }