FakeRedactionServiceCollectionExtensions.AddFakeRedaction Metoda

Definice

Přetížení

AddFakeRedaction(IServiceCollection)

Zaregistruje falešného poskytovatele redactoru, který vždy vrací falešné instance redactoru.

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Zaregistruje falešného poskytovatele redactoru, který vždy vrací falešné instance redactoru.

AddFakeRedaction(IServiceCollection)

Zdroj:
FakeRedactionServiceCollectionExtensions.cs
Zdroj:
FakeRedactionServiceCollectionExtensions.cs

Zaregistruje falešného poskytovatele redactoru, který vždy vrací falešné instance redactoru.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection) As IServiceCollection

Parametry

services
IServiceCollection

Kontejner používaný k registraci falešných tříd redakce.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Zdroj:
FakeRedactionServiceCollectionExtensions.cs
Zdroj:
FakeRedactionServiceCollectionExtensions.cs

Zaregistruje falešného poskytovatele redactoru, který vždy vrací falešné instance redactoru.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Testing::FakeRedactorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> configure);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection, configure As Action(Of FakeRedactorOptions)) As IServiceCollection

Parametry

services
IServiceCollection

Kontejner používaný k registraci falešných tříd redakce.

configure
Action<FakeRedactorOptions>

Nakonfiguruje falešný redactor.

Návraty

Hodnota .services

Výjimky

services nebo configure> jsou null.

Platí pro