< Summary

Information
Class: Elsa.WorkflowProviders.BlobStorage.Providers.BlobStorageProvider
Assembly: Elsa.WorkflowProviders.BlobStorage
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.WorkflowProviders.BlobStorage/Providers/BlobStorageProvider.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 24
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
GetBlobStorage()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.WorkflowProviders.BlobStorage/Providers/BlobStorageProvider.cs

#LineLine coverage
 1using Elsa.WorkflowProviders.BlobStorage.Contracts;
 2using FluentStorage.Blobs;
 3
 4namespace Elsa.WorkflowProviders.BlobStorage.Providers;
 5
 6/// <summary>
 7/// A provider of <see cref="IBlobStorage"/>.
 8/// </summary>
 9public class BlobStorageProvider : IBlobStorageProvider
 10{
 11    private readonly IBlobStorage _blobStorage;
 12
 13    /// <summary>
 14    /// Initializes a new instance of the <see cref="BlobStorageProvider"/> class.
 15    /// </summary>
 16    /// <param name="blobStorage">The <see cref="IBlobStorage"/>.</param>
 26617    public BlobStorageProvider(IBlobStorage blobStorage)
 18    {
 26619        _blobStorage = blobStorage;
 26620    }
 21
 22    /// <inheritdoc />
 17623    public IBlobStorage GetBlobStorage() => _blobStorage;
 24}