src/NuGetGallery/Services/CloudDownloadCountService.cs
/// <summary>
/// This method is added for unit testing purposes. It can return a null stream if the blob does not exist
/// and assumes the caller will properly dispose of the returned stream.
/// </summary>
This method is added for unit testing purposes. It can return a null stream if the blob does not exist
and assumes the caller will properly dispose of the returned stream.
This method is added for unit testing purposes . It can return a null stream if the blob does not exist and assumes the caller will properly dispose of the returned stream .
protected virtual async Task<Stream> GetBlobStreamAsync()
        {
            var blob = GetBlobReference();
            return await blob.OpenReadIfExistsAsync();
        }
protected virtual async Task < Stream > GetBlobStreamAsync ( ) { var blob = GetBlobReference ( ) ; return await blob . OpenReadIfExistsAsync ( ) ; }
This method is added for unit testing purposes.
This method is added for unit testing purposes .