8 references to AddPooled
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (8)
DependencyInjectionExtensionsTests.cs (8)
20
Assert.Throws<ArgumentNullException>(() => ObjectPoolServiceCollectionExtensions.
AddPooled
<ITestClass, TestClass>(null!));
100
.
AddPooled
<ITestClass, TestClass>()
101
.
AddPooled
<ITestClass, OtherTestClass>();
130
.
AddPooled
<ITestClass, TestClass>();
144
.
AddPooled
<ITestClass, TestClass>(options => options.Capacity = 64);
160
.
AddPooled
<ITestClass, TestClass>();
179
.
AddPooled
<ITestClass, TestClass>(options => options.Capacity = capacity);
214
.
AddPooled
<ITestClass, TestClass>();