7 references to Add
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
40services.Add(ServiceDescriptor.Transient(serviceType.Key, mockType)); 68services.Add(ServiceDescriptor.Transient(serviceType, mockType));
Microsoft.AspNetCore.Mvc.Localization.Test (3)
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
38collection.Add(ServiceDescriptor.Singleton(typeof(IHtmlLocalizerFactory), typeof(TestHtmlLocalizerFactory))); 39collection.Add(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(TestHtmlLocalizer<>))); 40collection.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