Interface IMockedConsumerGroupsCollection
The collection of Silverback.Messaging.Broker.Kafka.Mocks.MockedConsumerGroup being used in the current session.
Inherited Members
Namespace: Silverback.Messaging.Broker.Kafka.Mocks
Assembly: Silverback.Integration.Kafka.Testing.dll
Syntax
public interface IMockedConsumerGroupsCollection : IReadOnlyCollection<IMockedConsumerGroup>, IEnumerable<IMockedConsumerGroup>, IEnumerable
Methods
Get(ConsumerConfig)
Gets the topic with the specified name or creates it on the fly.
Declaration
IMockedConsumerGroup Get(ConsumerConfig consumerConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsumerConfig | consumerConfig | The consumer configuration. |
Returns
| Type | Description |
|---|---|
| IMockedConsumerGroup | The in-memory topic. |
Get(string, string)
Gets the topic with the specified name or creates it on the fly.
Declaration
IMockedConsumerGroup Get(string name, string bootstrapServers)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the consumer group. |
| string | bootstrapServers | The bootstrap servers string used to identify the target broker. |
Returns
| Type | Description |
|---|---|
| IMockedConsumerGroup | The in-memory topic. |