internal Task Should_Throw_On_DeleteSubscription_When_ConsumerGroup_IsNull( EventStoreClient sut, CancellationToken cancellationToken) => FluentActions .Awaiting(() => sut.DeleteSubscriptionAsync(null, cancellationToken)) .Should() .ThrowAsync <ArgumentNullException>();
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); }