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