ClassLocalTestListResultDataBus
Definition
Namespace:ArtOfTest.WebAii.Design.Repository.TestListResults
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class LocalTestListResultDataBus : ITestListResultDataBus
Inheritance: objectLocalTestListResultDataBus
Implements:
Constructors
LocalTestListResultDataBus(IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<TestListResultTransport>>>>, IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<RunResult>>>>, IIndex<Type, Func<string[], IStoragePathBuilder>>, TestListResultDataBusParams)
Declaration
public LocalTestListResultDataBus(IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<TestListResultTransport>>>> repoHeaderFactoryFinder, IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<RunResult>>>> repoResultFactoryFinder, IIndex<Type, Func<string[], IStoragePathBuilder>> pathBuilderFactoryFinder, TestListResultDataBusParams dataBusParams)
Parameters
repoHeaderFactoryFinder
IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<TestListResultTransport>>>>
repoResultFactoryFinder
IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<RunResult>>>>
pathBuilderFactoryFinder
IIndex<Type, Func<string[], IStoragePathBuilder>>
dataBusParams
Properties
StorageType
Is this data bus for local or cloud storage
Declaration
public StorageType StorageType { get; }
Property Value
StorageType
Implements
Methods
DownloadPerfResultAsync(Guid, CancellationToken)
Loads the perf result from cloud/local disk
Declaration
public Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>> DownloadPerfResultAsync(Guid headerId, CancellationToken token)
Parameters
headerId
token
Returns
Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>>
Implements
DownloadRunResultsAsync(Guid, CancellationToken, IAttachmentDownloadSettings)
Loads the list of RunResults from cloud/local disk related to the header
Declaration
public Task<IQueryable<IStorageDocument<RunResult>>> DownloadRunResultsAsync(Guid headerId, CancellationToken token, IAttachmentDownloadSettings attachmentSettings = null)
Parameters
headerId
token
attachmentSettings
IAttachmentDownloadSettings
Settings for downloading RunResult attachments
Returns
Task<IQueryable<IStorageDocument<RunResult>>>
Implements
DownloadTestListResultAsync(Guid, CancellationToken)
Loads the test list result header from cloud/local disk
Declaration
public Task<IStorageDocument<TestListResultTransport>> DownloadTestListResultAsync(Guid transportID, CancellationToken token)
Parameters
transportID
token
Returns
Task<IStorageDocument<TestListResultTransport>>
Implements
DownloadTestListResultsForProjectAsync(Guid)
Loads the list of TestListResultTransports from cloud/local disk related to the project
Declaration
public Task<IQueryable<IStorageDocument<TestListResultTransport>>> DownloadTestListResultsForProjectAsync(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<TestListResultTransport>>>
Implements
UploadTestListResultAsync(TestListResultTransport)
Saves the TestListResultTransport JSON to cloud/local disk
Declaration
public Task UploadTestListResultAsync(TestListResultTransport transport)
Parameters
transport
TestListResultTransport
Returns
Implements