Class SilverbackBuilderUseMockedKafkaExtensions
Adds the UseMockedKafka
method to the ISilverback
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.Kafka.Testing.dll
Syntax
public static class SilverbackBuilderUseMockedKafkaExtensions
Methods
| Improve this doc View sourceUseMockedKafka(ISilverbackBuilder, Action<IMockedKafkaOptionsBuilder>?)
Replaces the Kafka connectivity based on Confluent.Kafka with a mocked in-memory message broker that more or less replicates the Kafka behavior.
Declaration
public static ISilverbackBuilder UseMockedKafka(this ISilverbackBuilder builder, Action<IMockedKafkaOptionsBuilder>? optionsAction = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverback |
builder | The ISilverback |
Action<IMocked |
optionsAction | Configures the mock options. |
Returns
Type | Description |
---|---|
ISilverback |
The ISilverback |