public async Task CreateStreamConsumerAsync_WhenConsumerExists_CreatesIt( [Frozen] Mock <IEventStreamConsumers> consumerRegistryMock, EventStoreConnection eventStoreConnection, string streamName, string consumerName) { var consumer = await eventStoreConnection.CreateStreamConsumerAsync(streamName, consumerName); Assert.NotNull(consumer); Assert.IsType <EventStreamConsumer>(consumer); }