271 references to AddInMemoryCollection
Aspire.Azure.AI.OpenAI.Tests (27)
AspireAzureAIOpenAIExtensionsTests.cs (5)
30builder.Configuration.AddInMemoryCollection([ 61builder.Configuration.AddInMemoryCollection([ 116builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([ 165builder.Configuration.AddInMemoryCollection([
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (7)
20builder.Configuration.AddInMemoryCollection([ 51builder.Configuration.AddInMemoryCollection([ 79builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 138builder.Configuration.AddInMemoryCollection([ 171builder.Configuration.AddInMemoryCollection([ 199builder.Configuration.AddInMemoryCollection([
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (7)
20builder.Configuration.AddInMemoryCollection([ 51builder.Configuration.AddInMemoryCollection([ 79builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 138builder.Configuration.AddInMemoryCollection([ 171builder.Configuration.AddInMemoryCollection([ 199builder.Configuration.AddInMemoryCollection([
AspireConfigurableOpenAIExtensionsTests.cs (8)
21builder.Configuration.AddInMemoryCollection([ 44builder.Configuration.AddInMemoryCollection([ 71builder.Configuration.AddInMemoryCollection([ 98builder.Configuration.AddInMemoryCollection([ 126builder.Configuration.AddInMemoryCollection([ 144builder.Configuration.AddInMemoryCollection([ 171builder.Configuration.AddInMemoryCollection([ 198builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Data.Tables.Tests (5)
AspireTablesExtensionsTests.cs (5)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 78builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Messaging.EventHubs.Tests (10)
AspireEventHubsExtensionsTests.cs (10)
81builder.Configuration.AddInMemoryCollection([ 128builder.Configuration.AddInMemoryCollection([ 197builder.Configuration.AddInMemoryCollection([ 259builder.Configuration.AddInMemoryCollection([ 325builder.Configuration.AddInMemoryCollection([ 371builder.Configuration.AddInMemoryCollection([ 384builder.Configuration.AddInMemoryCollection([ 419builder.Configuration.AddInMemoryCollection([ 502builder.Configuration.AddInMemoryCollection([ 545builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Messaging.ServiceBus.Tests (6)
AspireServiceBusExtensionsTests.cs (6)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 78builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([ 163builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Messaging.WebPubSub.Tests (9)
AspireWebPubSubExtensionsTests.cs (8)
23builder.Configuration.AddInMemoryCollection([ 51builder.Configuration.AddInMemoryCollection([ 88builder.Configuration.AddInMemoryCollection([ 118builder.Configuration.AddInMemoryCollection([ 144builder.Configuration.AddInMemoryCollection([ 159builder.Configuration.AddInMemoryCollection([ 170builder.Configuration.AddInMemoryCollection([ 186builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
65=> configuration.AddInMemoryCollection(
Aspire.Azure.Search.Documents.Tests (3)
AspireAzureSearchExtensionsTests.cs (2)
23builder.Configuration.AddInMemoryCollection([ 76builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
58=> configuration.AddInMemoryCollection(
Aspire.Azure.Security.KeyVault.Tests (4)
AspireKeyVaultExtensionsTests.cs (4)
25builder.Configuration.AddInMemoryCollection([ 54builder.Configuration.AddInMemoryCollection([ 80builder.Configuration.AddInMemoryCollection([ 179builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Storage.Blobs.Tests (5)
AspireBlobStorageExtensionsTests.cs (5)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 78builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([
Aspire.Azure.Storage.Queues.Tests (5)
AspireQueueStorageExtensionsTests.cs (5)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 78builder.Configuration.AddInMemoryCollection([ 107builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([
Aspire.Components.Common.Tests (2)
ConformanceTests.cs (2)
382builder.Configuration.AddInMemoryCollection([ 404builder.Configuration.AddInMemoryCollection([
Aspire.Confluent.Kafka.Tests (12)
ConsumerConfigurationTests.cs (4)
23builder.Configuration.AddInMemoryCollection([ 55builder.Configuration.AddInMemoryCollection([ 88builder.Configuration.AddInMemoryCollection([ 132builder.Configuration.AddInMemoryCollection([
ConsumerConformanceTests.cs (1)
92builder.Configuration.AddInMemoryCollection([
MetricsTests.cs (2)
26builder.Configuration.AddInMemoryCollection([ 143builder.Configuration.AddInMemoryCollection([
ProducerConfigurationTests.cs (4)
21builder.Configuration.AddInMemoryCollection([ 50builder.Configuration.AddInMemoryCollection([ 82builder.Configuration.AddInMemoryCollection([ 122builder.Configuration.AddInMemoryCollection([
ProducerConformanceTests.cs (1)
88builder.Configuration.AddInMemoryCollection([
Aspire.Elastic.Clients.Elasticsearch.Tests (4)
AspireElasticClientExtensionsTest.cs (3)
99builder.Configuration.AddInMemoryCollection([ 125builder.Configuration.AddInMemoryCollection([ 173builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
40configuration.AddInMemoryCollection(
Aspire.Hosting.Tests (16)
Dashboard\TransportOptionsValidatorTests.cs (16)
20var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 40var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 58var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 76var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 93var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 113var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 132var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 152var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 174var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 197var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 222var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 246var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 268var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 290var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 306var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 322var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
Aspire.Microsoft.Azure.Cosmos.Tests (1)
ConformanceTests.cs (1)
80builder.Configuration.AddInMemoryCollection([
Aspire.Microsoft.Data.SqlClient.Tests (4)
AspireSqlServerSqlClientExtensionsTests.cs (4)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 81builder.Configuration.AddInMemoryCollection([ 109builder.Configuration.AddInMemoryCollection([
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (9)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (8)
22builder.Configuration.AddInMemoryCollection([ 58builder.Configuration.AddInMemoryCollection([ 63builder.Configuration.AddInMemoryCollection([ 92builder.Configuration.AddInMemoryCollection([ 97builder.Configuration.AddInMemoryCollection([ 135builder.Configuration.AddInMemoryCollection([ 160builder.Configuration.AddInMemoryCollection([ 183builder.Configuration.AddInMemoryCollection([
EnrichCosmosDbTests.cs (1)
143builder.Configuration.AddInMemoryCollection([
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (15)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (12)
24builder.Configuration.AddInMemoryCollection([ 40builder.Configuration.AddInMemoryCollection([ 59builder.Configuration.AddInMemoryCollection([ 79builder.Configuration.AddInMemoryCollection([ 124builder.Configuration.AddInMemoryCollection([ 164builder.Configuration.AddInMemoryCollection([ 169builder.Configuration.AddInMemoryCollection([ 198builder.Configuration.AddInMemoryCollection([ 203builder.Configuration.AddInMemoryCollection([ 236builder.Configuration.AddInMemoryCollection([ 261builder.Configuration.AddInMemoryCollection([ 284builder.Configuration.AddInMemoryCollection([
EnrichSqlServerTests.cs (3)
59builder.Configuration.AddInMemoryCollection([ 149builder.Configuration.AddInMemoryCollection([ 192builder.Configuration.AddInMemoryCollection([
Aspire.Milvus.Client.Tests (3)
AspireMilvusExtensionTests.cs (2)
88builder.Configuration.AddInMemoryCollection([ 119builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
108builder.Configuration.AddInMemoryCollection([
Aspire.MongoDB.Driver.Tests (3)
AspireMongoDBDriverExtensionsTests.cs (2)
207builder.Configuration.AddInMemoryCollection([ 236builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
67configuration.AddInMemoryCollection(
Aspire.MySqlConnector.Tests (4)
AspireMySqlConnectorExtensionsTests.cs (4)
30builder.Configuration.AddInMemoryCollection([ 57builder.Configuration.AddInMemoryCollection([ 89builder.Configuration.AddInMemoryCollection([ 117builder.Configuration.AddInMemoryCollection([
Aspire.NATS.Net.Tests (7)
AspireNatsClientExtensionsTests.cs (6)
37builder.Configuration.AddInMemoryCollection([ 64builder.Configuration.AddInMemoryCollection([ 93builder.Configuration.AddInMemoryCollection([ 126builder.Configuration.AddInMemoryCollection([ 239builder.Configuration.AddInMemoryCollection([ 268builder.Configuration.AddInMemoryCollection([
NatsClientPublicApiTests.cs (1)
119builder.Configuration.AddInMemoryCollection([
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (16)
AspireEFPostgreSqlExtensionsTests.cs (12)
32builder.Configuration.AddInMemoryCollection([ 48builder.Configuration.AddInMemoryCollection([ 69builder.Configuration.AddInMemoryCollection([ 89builder.Configuration.AddInMemoryCollection([ 131builder.Configuration.AddInMemoryCollection([ 172builder.Configuration.AddInMemoryCollection([ 177builder.Configuration.AddInMemoryCollection([ 206builder.Configuration.AddInMemoryCollection([ 211builder.Configuration.AddInMemoryCollection([ 243builder.Configuration.AddInMemoryCollection([ 268builder.Configuration.AddInMemoryCollection([ 291builder.Configuration.AddInMemoryCollection([
EnrichNpgsqlTests.cs (4)
60builder.Configuration.AddInMemoryCollection([ 153builder.Configuration.AddInMemoryCollection([ 197builder.Configuration.AddInMemoryCollection([ 352builder.Configuration.AddInMemoryCollection([
Aspire.Npgsql.Tests (5)
AspirePostgreSqlNpgsqlExtensionsTests.cs (5)
22builder.Configuration.AddInMemoryCollection([ 49builder.Configuration.AddInMemoryCollection([ 81builder.Configuration.AddInMemoryCollection([ 111builder.Configuration.AddInMemoryCollection([ 139builder.Configuration.AddInMemoryCollection([
Aspire.OpenAI.Tests (21)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (7)
20builder.Configuration.AddInMemoryCollection([ 52builder.Configuration.AddInMemoryCollection([ 80builder.Configuration.AddInMemoryCollection([ 108builder.Configuration.AddInMemoryCollection([ 139builder.Configuration.AddInMemoryCollection([ 172builder.Configuration.AddInMemoryCollection([ 200builder.Configuration.AddInMemoryCollection([
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (7)
20builder.Configuration.AddInMemoryCollection([ 52builder.Configuration.AddInMemoryCollection([ 80builder.Configuration.AddInMemoryCollection([ 108builder.Configuration.AddInMemoryCollection([ 139builder.Configuration.AddInMemoryCollection([ 172builder.Configuration.AddInMemoryCollection([ 200builder.Configuration.AddInMemoryCollection([
AspireOpenAIExtensionsTests.cs (7)
23builder.Configuration.AddInMemoryCollection([ 77builder.Configuration.AddInMemoryCollection([ 95builder.Configuration.AddInMemoryCollection([ 115builder.Configuration.AddInMemoryCollection([ 140builder.Configuration.AddInMemoryCollection([ 162builder.Configuration.AddInMemoryCollection([ 185builder.Configuration.AddInMemoryCollection([
Aspire.Oracle.EntityFrameworkCore.Tests (18)
AspireOracleEFCoreDatabaseExtensionsTests.cs (14)
25builder.Configuration.AddInMemoryCollection([ 41builder.Configuration.AddInMemoryCollection([ 60builder.Configuration.AddInMemoryCollection([ 80builder.Configuration.AddInMemoryCollection([ 125builder.Configuration.AddInMemoryCollection([ 165builder.Configuration.AddInMemoryCollection([ 170builder.Configuration.AddInMemoryCollection([ 199builder.Configuration.AddInMemoryCollection([ 204builder.Configuration.AddInMemoryCollection([ 237builder.Configuration.AddInMemoryCollection([ 262builder.Configuration.AddInMemoryCollection([ 285builder.Configuration.AddInMemoryCollection([ 307builder.Configuration.AddInMemoryCollection([ 323builder.Configuration.AddInMemoryCollection([
EnrichOracleDatabaseTests.cs (4)
60builder.Configuration.AddInMemoryCollection([ 150builder.Configuration.AddInMemoryCollection([ 193builder.Configuration.AddInMemoryCollection([ 341builder.Configuration.AddInMemoryCollection([
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (15)
AspireEFMySqlExtensionsTests.cs (11)
36builder.Configuration.AddInMemoryCollection([ 55builder.Configuration.AddInMemoryCollection([ 76builder.Configuration.AddInMemoryCollection([ 98builder.Configuration.AddInMemoryCollection([ 141builder.Configuration.AddInMemoryCollection([ 183builder.Configuration.AddInMemoryCollection([ 189builder.Configuration.AddInMemoryCollection([ 218builder.Configuration.AddInMemoryCollection([ 224builder.Configuration.AddInMemoryCollection([ 256builder.Configuration.AddInMemoryCollection([ 279builder.Configuration.AddInMemoryCollection([
EnrichMySqlTests.cs (4)
73builder.Configuration.AddInMemoryCollection([ 163builder.Configuration.AddInMemoryCollection([ 206builder.Configuration.AddInMemoryCollection([ 354builder.Configuration.AddInMemoryCollection([
Aspire.Qdrant.Client.Tests (3)
AspireQdrantClientExtensionsTest.cs (2)
91builder.Configuration.AddInMemoryCollection([ 116builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
56configuration.AddInMemoryCollection(
Aspire.RabbitMQ.Client.Tests (6)
AspireRabbitMQExtensionsTests.cs (4)
32builder.Configuration.AddInMemoryCollection([ 60builder.Configuration.AddInMemoryCollection([ 91builder.Configuration.AddInMemoryCollection([ 170builder.Configuration.AddInMemoryCollection([
AspireRabbitMQLoggingTests.cs (1)
37builder.Configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
78configuration.AddInMemoryCollection([
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
46builder.Configuration.AddInMemoryCollection([
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
46builder.Configuration.AddInMemoryCollection([
Aspire.StackExchange.Redis.Tests (8)
AspireRedisExtensionsTests.cs (7)
61builder.Configuration.AddInMemoryCollection([ 89builder.Configuration.AddInMemoryCollection([ 122builder.Configuration.AddInMemoryCollection([ 269builder.Configuration.AddInMemoryCollection([ 307builder.Configuration.AddInMemoryCollection([ 344builder.Configuration.AddInMemoryCollection([ 386configuration.AddInMemoryCollection([
ConformanceTests.cs (1)
72configuration.AddInMemoryCollection([
Microsoft.AspNetCore.Authentication.Test (4)
JwtBearerTests_Handler.cs (4)
961var config = new ConfigurationBuilder().AddInMemoryCollection([ 1031var config = new ConfigurationBuilder().AddInMemoryCollection([ 1058var config = new ConfigurationBuilder().AddInMemoryCollection([ 1078var config = new ConfigurationBuilder().AddInMemoryCollection([
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentsServiceCollectionExtensionsTest.cs (2)
20services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 47services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build());
Microsoft.AspNetCore.DataProtection.Tests (8)
Internal\KeyManagementOptionsPostSetupTest.cs (6)
22var config = new ConfigurationBuilder().AddInMemoryCollection( 39var config = new ConfigurationBuilder().AddInMemoryCollection( 58var config = new ConfigurationBuilder().AddInMemoryCollection( 77var config = new ConfigurationBuilder().AddInMemoryCollection( 107var config = new ConfigurationBuilder().AddInMemoryCollection( 129var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
ServiceCollectionTests.cs (2)
76var config = new ConfigurationBuilder().AddInMemoryCollection( 112var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
Microsoft.AspNetCore.Hosting (1)
GenericHost\WebHostBuilderBase.cs (1)
19.AddInMemoryCollection();
Microsoft.AspNetCore.Mvc.Test (4)
MvcServiceCollectionExtensionsTest.cs (4)
166services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 183services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 202services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 219services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build());
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
ConfigurationReaderTests.cs (2)
22var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 110var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
51configBuilder.AddInMemoryCollection();
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
211.AddInMemoryCollection(); // Make sure there's some default storage since there are no default providers