4 writes to Contents
Microsoft.Extensions.AI.Abstractions (1)
TextToSpeech\TextToSpeechResponse.cs (1)
26Contents = Throw.IfNull(contents);
Microsoft.Extensions.AI.Abstractions.Tests (3)
TextToSpeech\TextToSpeechResponseTests.cs (3)
85response.Contents = newContents; 99Contents = 140Contents =
40 references to Contents
Microsoft.Extensions.AI.Abstractions (2)
TextToSpeech\TextToSpeechResponse.cs (1)
51IList<AIContent> contents = Contents;
TextToSpeech\TextToSpeechResponseUpdateExtensions.cs (1)
89response.Contents.Add(content);
Microsoft.Extensions.AI.Abstractions.Tests (21)
TextToSpeech\TextToSpeechClientTests.cs (3)
32Assert.Single(response.Contents); 33Assert.IsType<DataContent>(response.Contents[0]); 34Assert.Equal("audio/mpeg", ((DataContent)response.Contents[0]).MediaType);
TextToSpeech\TextToSpeechResponseTests.cs (14)
23Assert.Empty(response.Contents); 24Assert.NotNull(response.Contents); 25Assert.Same(response.Contents, response.Contents); 26Assert.Empty(response.Contents); 46Assert.Same(response.Contents, response.Contents); 49Assert.Empty(response.Contents); 53Assert.Equal(contentCount, response.Contents.Count); 56DataContent dc = Assert.IsType<DataContent>(response.Contents[i]); 86Assert.Same(newContents, response.Contents); 115Assert.Single(result.Contents); 207Assert.Single(result.Contents); 208var dataContent = Assert.IsType<DataContent>(result.Contents[0]);
TextToSpeech\TextToSpeechResponseUpdateExtensionsTests.cs (4)
46Assert.Equal(3, response.Contents.Count); 47Assert.All(response.Contents, c => Assert.IsType<DataContent>(c)); 71Assert.Equal(2, response.Contents.Count); 72Assert.All(response.Contents, c => Assert.IsType<DataContent>(c));
Microsoft.Extensions.AI.Integration.Tests (8)
TextToSpeechClientIntegrationTests.cs (8)
39Assert.NotEmpty(response.Contents); 41var content = Assert.Single(response.Contents); 58Assert.NotEmpty(response.Contents); 60var content = Assert.Single(response.Contents); 77Assert.NotEmpty(response.Contents); 79var content = Assert.Single(response.Contents); 96Assert.NotEmpty(response.Contents); 98var content = Assert.Single(response.Contents);
Microsoft.Extensions.AI.OpenAI.Tests (9)
OpenAITextToSpeechClientTests.cs (9)
86Assert.Single(response.Contents); 87var content = Assert.IsType<DataContent>(response.Contents[0]); 115Assert.Single(response.Contents); 116var content = Assert.IsType<DataContent>(response.Contents[0]); 144Assert.Single(response.Contents); 177Assert.Single(response.Contents); 178var content = Assert.IsType<DataContent>(response.Contents[0]); 213Assert.Single(response.Contents); 214var content = Assert.IsType<DataContent>(response.Contents[0]);