ClassCloudStorageProjectOpener
Definition
Namespace:ArtOfTest.WebAii.Design.Repository
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class CloudStorageProjectOpener : ICloudStorageProjectOpener
Inheritance: objectCloudStorageProjectOpener
Implements:
Constructors
CloudStorageProjectOpener(string, IFileReaderWriterSync, IRepositoryDataBus)
Optional parameters only exist for the purpose of unit testing
Declaration
public CloudStorageProjectOpener(string defaultProjectPath, IFileReaderWriterSync fileReaderWriter = null, IRepositoryDataBus dataBus = null)
Parameters
defaultProjectPath
fileReaderWriter
IFileReaderWriterSync
dataBus
Properties
ConnectionStatus
Returns if the user is entitled to access Cloud Storage
Declaration
public string ConnectionStatus { get; }
Property Value
Implements
IsCredentialsChanged
Signals when credentials have been changed and a new LicenseSession is required
Declaration
public bool IsCredentialsChanged { get; set; }
Property Value
Implements
LicenseSession
Manages connecting to the user account service to get a storage token
Declaration
public ICloudLicenseSession LicenseSession { get; set; }
Property Value
ICloudLicenseSession
Implements
Methods
GetLocalProjectPath(string)
Builds the full local disk path of the given project
SaveProjectAndTestLocallyAsync(IStorageDocument<ProjectNameTransport>, Guid, string)
Writes out the project and specific test to the project's local disk location.
SaveProjectLocallyAsync(IStorageDocument<ProjectNameTransport>, string)
Writes out the project settings and attachments to the project's local disk location.
SaveProjectWithTestListsAndTestsLocallyAsync(IStorageDocument<ProjectNameTransport>, string, bool)
Writes out the project settings and attachments, test lists and tests to the project's local disk location.
Declaration
public Task<Project> SaveProjectWithTestListsAndTestsLocallyAsync(IStorageDocument<ProjectNameTransport> projectNameDocument, string path, bool skipLoadTests = false)
Parameters
projectNameDocument
IStorageDocument<ProjectNameTransport>
path
skipLoadTests
Returns
Implements
SaveTestByPathLocallyAsync(string, string)
Writes out only the specific test to the project's local disk location without redownloading a project.
SaveTestLocallyAsync(Guid, string)
Writes out only the specific test to the project's local disk location without redownloading a project.