6 writes to Contents
Microsoft.Extensions.AI.Abstractions (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechResponse.g.cs (1)
141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponse)obj).Contents = value!,
TextToSpeech\TextToSpeechResponse.cs (1)
26Contents = Throw.IfNull(contents);
Microsoft.Extensions.AI.Abstractions.Tests (4)
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechResponse.g.cs (1)
139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponse)obj).Contents = value!,
TextToSpeech\TextToSpeechResponseTests.cs (3)
85response.Contents = newContents; 99Contents = 140Contents =
42 references to Contents
Microsoft.Extensions.AI.Abstractions (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechResponse.g.cs (1)
140Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponse)obj).Contents,
TextToSpeech\TextToSpeechResponse.cs (1)
51IList<AIContent> contents = Contents;
TextToSpeech\TextToSpeechResponseUpdateExtensions.cs (1)
89response.Contents.Add(content);
Microsoft.Extensions.AI.Abstractions.Tests (22)
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechResponse.g.cs (1)
138Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponse)obj).Contents,
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]);