public async Task GivenNoDeletedInstances_WhenCleanupCalled_ThenNotCallStoresAndReturnsCorrectTuple() { _indexDataStore .RetrieveDeletedInstancesAsync(Arg.Any <int>(), Arg.Any <int>(), Arg.Any <CancellationToken>()) .ReturnsForAnyArgs(Enumerable.Empty <VersionedInstanceIdentifier>()); (bool success, int retrievedInstanceCount) = await _deleteService.CleanupDeletedInstancesAsync(CancellationToken.None); Assert.True(success); Assert.Equal(0, retrievedInstanceCount); await _indexDataStore .ReceivedWithAnyArgs(1) .RetrieveDeletedInstancesAsync(batchSize: default, maxRetries: default, CancellationToken.None);