Class SilverbackBuilderUseMockedKafkaExtensions
Adds the UseMockedKafka method to the ISilverbackBuilder.
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 |
|---|---|---|
| ISilverbackBuilder | builder | The ISilverbackBuilder. |
| Action<IMockedKafkaOptionsBuilder> | optionsAction | Configures the mock options. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |