Class
LocalTestListResultDataBus

Definition

Namespace:ArtOfTest.WebAii.Design.Repository.TestListResults

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class LocalTestListResultDataBus : ITestListResultDataBus

Inheritance: objectLocalTestListResultDataBus

Implements: ITestListResultDataBus

Constructors

LocalTestListResultDataBus(IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<TestListResultTransport>>>>, IIndex<string, Func<IStoragePathBuilder, IStorageRepository<IStorageDocument<RunResult>>>>, IIndex<Type, Func<string[], IStoragePathBuilder>>, TestListResultDataBusParams)

Declaration

cs-api-definition
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

TestListResultDataBusParams

Properties

StorageType

Is this data bus for local or cloud storage

Declaration

cs-api-definition
public StorageType StorageType { get; }

Property Value

StorageType

Implements ITestListResultDataBus.StorageType

Methods

DeleteTestListResult(string)

Declaration

cs-api-definition
public Task DeleteTestListResult(string headerId)

Parameters

headerId

string

Returns

Task

Implements ITestListResultDataBus.DeleteTestListResult(string)

DownloadPerfResultAsync(Guid, CancellationToken)

Loads the perf result from cloud/local disk

Declaration

cs-api-definition
public Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>> DownloadPerfResultAsync(Guid headerId, CancellationToken token)

Parameters

headerId

Guid

token

CancellationToken

Returns

Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>>

Implements ITestListResultDataBus.DownloadPerfResultAsync(Guid, CancellationToken)

DownloadRunResultsAsync(Guid, CancellationToken, IAttachmentDownloadSettings)

Loads the list of RunResults from cloud/local disk related to the header

Declaration

cs-api-definition
public Task<IQueryable<IStorageDocument<RunResult>>> DownloadRunResultsAsync(Guid headerId, CancellationToken token, IAttachmentDownloadSettings attachmentSettings = null)

Parameters

headerId

Guid

token

CancellationToken

attachmentSettings

IAttachmentDownloadSettings

Settings for downloading RunResult attachments

Returns

Task<IQueryable<IStorageDocument<RunResult>>>

Implements ITestListResultDataBus.DownloadRunResultsAsync(Guid, CancellationToken, IAttachmentDownloadSettings)

DownloadTestListResultAsync(Guid, CancellationToken)

Loads the test list result header from cloud/local disk

Declaration

cs-api-definition
public Task<IStorageDocument<TestListResultTransport>> DownloadTestListResultAsync(Guid transportID, CancellationToken token)

Parameters

transportID

Guid

token

CancellationToken

Returns

Task<IStorageDocument<TestListResultTransport>>

Implements ITestListResultDataBus.DownloadTestListResultAsync(Guid, CancellationToken)

DownloadTestListResultsForProjectAsync(Guid)

Loads the list of TestListResultTransports from cloud/local disk related to the project

Declaration

cs-api-definition
public Task<IQueryable<IStorageDocument<TestListResultTransport>>> DownloadTestListResultsForProjectAsync(Guid projectId)

Parameters

projectId

Guid

Returns

Task<IQueryable<IStorageDocument<TestListResultTransport>>>

Implements ITestListResultDataBus.DownloadTestListResultsForProjectAsync(Guid)

UploadTestListResultAsync(TestListResultTransport)

Saves the TestListResultTransport JSON to cloud/local disk

Declaration

cs-api-definition
public Task UploadTestListResultAsync(TestListResultTransport transport)

Parameters

transport

TestListResultTransport

Returns

Task

Implements ITestListResultDataBus.UploadTestListResultAsync(TestListResultTransport)