Ejemplo n.º 1
0
 internal Task Should_Throw_On_DeleteSubscription_When_ConsumerGroup_IsNull(
     EventStoreClient sut,
     CancellationToken cancellationToken)
 => FluentActions
 .Awaiting(() => sut.DeleteSubscriptionAsync(null, cancellationToken))
 .Should()
 .ThrowAsync <ArgumentNullException>();
Ejemplo n.º 2
0
        internal async Task Should_DeleteSubscription(
            [Frozen] IStreamSubscriptionRemover remover,
            EventStoreClient sut,
            ConsumerGroup consumerGroup,
            CancellationToken cancellationToken)
        {
            await sut.DeleteSubscriptionAsync(
                consumerGroup,
                cancellationToken : cancellationToken);

            _ = remover
                .Received(1)
                .DeleteAsync(
                consumerGroup,
                cancellationToken);
        }