Class ServiceCollectionViewComponentsExtensions
Contains view component extension methods for IServiceCollection.
Inheritance
System.Object
ServiceCollectionViewComponentsExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewComponents.dll
Syntax
public static class ServiceCollectionViewComponentsExtensions
Methods
| Improve this Doc View SourceAddViewComponentsTesting(IServiceCollection)
Adds view component testing services.
Declaration
public static IServiceCollection AddViewComponentsTesting(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | serviceCollection | Instance of IServiceCollection type. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The same IServiceCollection. |