7 references to Add
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
40
services.
Add
(ServiceDescriptor.Transient(serviceType.Key, mockType));
68
services.
Add
(ServiceDescriptor.Transient(serviceType, mockType));
Microsoft.AspNetCore.Mvc.Localization.Test (3)
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
38
collection.
Add
(ServiceDescriptor.Singleton(typeof(IHtmlLocalizerFactory), typeof(TestHtmlLocalizerFactory)));
39
collection.
Add
(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(TestHtmlLocalizer<>)));
40
collection.
Add
(ServiceDescriptor.Transient(typeof(IViewLocalizer), typeof(TestViewLocalizer)));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.cs (2)
446
/// <see cref="
Add
(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add
498
/// <see cref="
Add
(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add