Table of Contents

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

consumerConfig ConsumerConfig

The 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

name string

The name of the consumer group.

bootstrapServers string

The bootstrap servers string used to identify the target broker.

Returns

IMockedConsumerGroup

The in-memory topic.