ClassRepositoryDataBus
Definition
Namespace:ArtOfTest.WebAii.Design.Repository
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class RepositoryDataBus : IRepositoryDataBus
Inheritance: objectRepositoryDataBus
Implements:
Constructors
RepositoryDataBus(IExtendedRepositoryFactory)
Declaration
public RepositoryDataBus(IExtendedRepositoryFactory repositoryFactory)
Parameters
repositoryFactory
IExtendedRepositoryFactory
RepositoryDataBus(IExtendedRepositoryFactory, IFileReaderWriterSync)
Declaration
public RepositoryDataBus(IExtendedRepositoryFactory repositoryFactory, IFileReaderWriterSync fileReaderWriter)
Parameters
repositoryFactory
IExtendedRepositoryFactory
fileReaderWriter
IFileReaderWriterSync
Fields
Properties
RepositoryFactory
Updatable IExtendedRepositoryFactory (in case the user switches storage creds)
Declaration
public IExtendedRepositoryFactory RepositoryFactory { get; set; }
Property Value
IExtendedRepositoryFactory
Implements
Methods
DeleteReportDefinition(Guid)
Deletes a ReportDefinition
DownloadLightProjectsAsync()
Uses a Cloud Storage repo to download all projects as light objects
Declaration
public Task<IStorageCollection<IStorageDocument<LightProjectTransport>>> DownloadLightProjectsAsync()
Returns
Task<IStorageCollection<IStorageDocument<LightProjectTransport>>>
Implements
DownloadLightRunResultsForTestListRun(Guid, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<LightRunResultTransport>>> DownloadLightRunResultsForTestListRun(Guid testListRunId, int skip = 0, int take = 0, string sort = null)
Parameters
testListRunId
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<LightRunResultTransport>>>
Implements
DownloadLightTestListResultsForTestList(Guid, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<LightTestListResultTransport>>> DownloadLightTestListResultsForTestList(Guid testListId, int skip = 0, int take = 0, string sort = null)
Parameters
testListId
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<LightTestListResultTransport>>>
Implements
DownloadLightTestListsByProjectIdAsync(Guid)
Uses a Cloud Storage repo to download light transports for all test lists in a single project
Declaration
public Task<IStorageCollection<IStorageDocument<LightTestListTransport>>> DownloadLightTestListsByProjectIdAsync(Guid projectId)
Parameters
projectId
The id of project
Returns
Task<IStorageCollection<IStorageDocument<LightTestListTransport>>>
A Storage Collection with all test lists
Implements
DownloadLightTestListsForTestListIds(Guid[])
Uses a Cloud Storage repo to download light transports for all test lists from a list of test list ids
Declaration
public Task<IStorageCollection<IStorageDocument<LightTestListTransport>>> DownloadLightTestListsForTestListIds(Guid[] testListIds)
Parameters
testListIds
Guid[]
The list of test list ids
Returns
Task<IStorageCollection<IStorageDocument<LightTestListTransport>>>
A StorageCollection with all test lists
Implements
DownloadLightTestsAsync(Guid)
Uses a Cloud Storage repo to download LightTests filtered by Project ID and test type
Declaration
public Task<IQueryable<IStorageDocument<LightTestTransport>>> DownloadLightTestsAsync(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<LightTestTransport>>>
Implements
DownloadMinimalTransportById<T>(Guid)
Wrapper around ProjectCloudStorageRepositoryFactory.CreateLightweightRepository
DownloadPerfResultsAsync(Guid)
Uses a Cloud Storage repo to download perf results filtered by test ID
Declaration
public Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>> DownloadPerfResultsAsync(Guid testId)
Parameters
testId
Returns
Task<IQueryable<IStorageDocument<ResultsFileXmlRoot>>>
Implements
DownloadProjectByIdAsync(string)
Direct single project request from the repo
DownloadProjectsAsync()
Direct all projects request from the repo
Declaration
public Task<IQueryable<IStorageDocument<Project>>> DownloadProjectsAsync()
Returns
Task<IQueryable<IStorageDocument<Project>>>
All projects from the repo
Implements
DownloadReportDefinitionByIdAsync(Guid)
Uses a Cloud Storage repo to download a report definition by id
Declaration
public Task<IStorageDocument<ReportDefinition>> DownloadReportDefinitionByIdAsync(Guid id)
Parameters
id
Returns
Task<IStorageDocument<ReportDefinition>>
Implements
DownloadReportDefinitionsForProjectAsync(Guid)
Uses a Cloud Storage repo to download all report definitions for a single project
Declaration
public Task<IStorageCollection<IStorageDocument<ReportDefinition>>> DownloadReportDefinitionsForProjectAsync(Guid projectId)
Parameters
projectId
Returns
Task<IStorageCollection<IStorageDocument<ReportDefinition>>>
Implements
DownloadRunResultsCounters(Guid[], DateTime, DateTime)
Declaration
public Task<IQueryable<IStorageDocument<RunResultCountersTransport>>> DownloadRunResultsCounters(Guid[] testListIds, DateTime fromStartDate, DateTime toStartDate)
Parameters
testListIds
Guid[]
fromStartDate
toStartDate
Returns
Task<IQueryable<IStorageDocument<RunResultCountersTransport>>>
Implements
DownloadRunResultsForTestListRun(Guid, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<RunResult>>> DownloadRunResultsForTestListRun(Guid dispatchGroupId, int skip = 0, int take = 0, string sort = null)
Parameters
dispatchGroupId
skip
take
sort
Returns
Implements
DownloadSingleTestRunResultsForTestListRun(Guid, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<LightRunResultSingleTestTransport>>> DownloadSingleTestRunResultsForTestListRun(Guid dispatchGroupId, int skip = 0, int take = 0, string sort = null)
Parameters
dispatchGroupId
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<LightRunResultSingleTestTransport>>>
Implements
DownloadTestByIdAsync(Guid)
Uses a Cloud Storage repo to download a single test
DownloadTestIdByPathAsync(Guid, string)
Uses a Cloud Storage repo to download a single test
DownloadTestListByIdAsync(Guid)
Uses a Cloud Storage repo to download a single test list
DownloadTestListsAsync(Guid)
Uses a Cloud Storage repo to download test lists filtered by Project ID
Declaration
public Task<IQueryable<IStorageDocument<TestList>>> DownloadTestListsAsync(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<TestList>>>
Implements
DownloadTestsAsync(Guid)
Uses a Cloud Storage repo to download tests filtered by Project ID
Declaration
public Task<IQueryable<IStorageDocument<TestBase>>> DownloadTestsAsync(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<TestBase>>>
Implements
DownloadTestsExcludingLoadAsync(Guid)
Uses a Cloud Storage repo to download tests filtered by Project ID excluding load tests
Declaration
public Task<IQueryable<IStorageDocument<TestBase>>> DownloadTestsExcludingLoadAsync(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<TestBase>>>
Implements
DownloadTopLevelTestListResult(Guid)
Used to get just a single result.
DownloadTopLevelTestListResults()
Declaration
public Task<IQueryable<IStorageDocument<TestListResultTransport>>> DownloadTopLevelTestListResults()
Returns
Task<IQueryable<IStorageDocument<TestListResultTransport>>>
Implements
DownloadTopLevelTestListResults(int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<TestListResultTransport>>> DownloadTopLevelTestListResults(int skip = 0, int take = 0, string sort = null)
Parameters
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<TestListResultTransport>>>
Implements
DownloadTopLevelTestListResultsForTestList(Guid, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<TestListResultTransport>>> DownloadTopLevelTestListResultsForTestList(Guid testListId, int skip = 0, int take = 0, string sort = null)
Parameters
testListId
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<TestListResultTransport>>>
Implements
DownloadTopLevelTestListResultsForTestListForPeriod(Guid, DateTime, DateTime, int, int, string)
Declaration
public Task<IStorageCollection<IStorageDocument<LightTestListResultTransport>>> DownloadTopLevelTestListResultsForTestListForPeriod(Guid testListId, DateTime fromStartDate, DateTime toStartDate, int skip = 0, int take = 0, string sort = null)
Parameters
testListId
fromStartDate
toStartDate
skip
take
sort
Returns
Task<IStorageCollection<IStorageDocument<LightTestListResultTransport>>>
Implements
DownloadTopLevelTestListResultsPerProject(Guid)
Declaration
public Task<IQueryable<IStorageDocument<TestListResultTransport>>> DownloadTopLevelTestListResultsPerProject(Guid projectId)
Parameters
projectId
Returns
Task<IQueryable<IStorageDocument<TestListResultTransport>>>
Implements
UploadAsync(Project, IStorageDocument<Project>)
Uploads a Project via a Project Cloud Repository
UploadAsync(ReportDefinition)
Uploads a ReportDefinition via a ReportDefinition Cloud Repository
Declaration
public Task UploadAsync(ReportDefinition reportDefinition)
Parameters
reportDefinition
Returns
Implements
UploadAsync(ResultsFileXmlRoot)
Uploads a ResultsFileXmlRoot via a ResultsFileXmlRoot Cloud Repository
Declaration
public Task UploadAsync(ResultsFileXmlRoot perfResult)
Parameters
perfResult
Returns
Implements
UploadAsync(RunResult, bool)
Uploads a RunResult via a RunResult Cloud Repository
UploadAsync(TestBase, IStorageDocument<TestBase>)
Uploads a Test via a TestBase Cloud Repository
UploadAsync(TestList, IStorageDocument<TestList>)
Uploads a TestList via a TestList Cloud Repository
UploadAsync(TestListResultTransport)
Declaration
public Task UploadAsync(TestListResultTransport testListRunHeader)
Parameters
testListRunHeader
TestListResultTransport
Returns
Implements