C# Class MyTested.AspNetCore.Mvc.ServiceCollectionControllersExtensions

Contains controller extension methods for IServiceCollection.
Afficher le fichier Open project: ivaylokenov/MyTested.AspNetCore.Mvc

Méthodes publiques

Méthode Description
AddActionContextAccessor ( this serviceCollection ) : IServiceCollection

Adds IActionContextAccessor with singleton scope to the service collection.

AddControllersTesting ( this serviceCollection ) : IServiceCollection

Adds controller testing services.

Method Details

AddActionContextAccessor() public static méthode

Adds IActionContextAccessor with singleton scope to the service collection.
public static AddActionContextAccessor ( this serviceCollection ) : IServiceCollection
serviceCollection this Instance of type.
Résultat IServiceCollection

AddControllersTesting() public static méthode

Adds controller testing services.
public static AddControllersTesting ( this serviceCollection ) : IServiceCollection
serviceCollection this Instance of type.
Résultat IServiceCollection