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