ClassLightProjectModule
Definition
Namespace:ArtOfTest.WebAii.Design.ProjectModel.Providers.Modules
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class LightProjectModule : ModuleBase
Inheritance: objectModuleBaseLightProjectModule
Inherited Members
Properties
FileSystemProvider
Declaration
protected FileSystemProvider FileSystemProvider { get; }
Property Value
IsProjectLoaded
True if the all the light elements are loaded
LightProjectElements
Gets all light project elements such as LightTest(s), LightFolder(s), LightDataSource(s) and LightProject
Declaration
public List<LightProjectElement> LightProjectElements { get; }
Property Value
The light project elements.
Project
Declaration
protected override Project Project { get; }
Property Value
Overrides
SourceControlProvider
Declaration
protected SourceControlProviderBase SourceControlProvider { get; }
Property Value
TestAsStepReferences
Gets the test as step references extracted by the load-on demand process
Declaration
public IList<LightTestAsStepReference> TestAsStepReferences { get; }
Property Value
IList<LightTestAsStepReference>
The test as step references.
Methods
CopyElements(LightFolder, params LightProjectElement[])
Copies the elements files and loads the copies.
Declaration
public void CopyElements(LightFolder parentFolder, params LightProjectElement[] projectElements)
Parameters
parentFolder
The parent folder.
projectElements
The project elements.
CreateCodeFile(string)
Creates LightFolder object.
Declaration
public LightCodeFile CreateCodeFile(string path)
Parameters
path
The path.
Returns
LightCodeFile
CreateFolder(string, bool)
Creates LightFolder object.
CreateTest(TestType, string)
Creates LightTest.
DeleteCodeBehindFile(LightTest)
Deletes the code behind file.
Declaration
public void DeleteCodeBehindFile(LightTest lTest)
Parameters
lTest
The LightTest.
DeleteExternalCodeFile(LightCodeFile)
Deletes the external code file.
Declaration
public void DeleteExternalCodeFile(LightCodeFile lCodeFile)
Parameters
lCodeFile
The LightCodeFile.
DeleteFolder(LightFolder)
Deletes the LightFolder.
Declaration
public void DeleteFolder(LightFolder lFolder)
Parameters
lFolder
The LightFolder.
DeleteTest(LightTest, bool)
Deletes LightTest, also removes the test's elements and code from the CodeService
ExcludeProjectElements(IList<LightProjectElement>)
Excludes the selected project elements.
Declaration
public void ExcludeProjectElements(IList<LightProjectElement> elements)
Parameters
elements
The elements.
FixTestAsStepByLightTest(LightTest, HashSet<LightProjectElement>)
Fixes the test as step references by light test.
Declaration
public void FixTestAsStepByLightTest(LightTest lightTest, HashSet<LightProjectElement> dirtyTestsSet)
Parameters
lightTest
The light test.
dirtyTestsSet
The dirty tests set.
HookUpFileSystemProviderEvents()
Declaration
protected virtual void HookUpFileSystemProviderEvents()
ImportCodeFile(ImportCodeFileArgs)
Imports test. The test is upgraded if neccessary and creates LightTest wrapper.
Declaration
public LightCodeFile ImportCodeFile(ImportCodeFileArgs args)
Parameters
args
The args.
Returns
LightCodeFile
ImportTest(ImportTestArgs)
Imports test. The test is upgraded if neccessary and creates LightTest wrapper.
Declaration
public LightTest ImportTest(ImportTestArgs args)
Parameters
args
The args.
Returns
LightTest
MoveCodeFile(LightCodeFile, string)
Moves the test.
Declaration
public void MoveCodeFile(LightCodeFile lCodeFile, string newCodeFilePath)
Parameters
lCodeFile
The l code file.
newCodeFilePath
The new code file path.
MoveFolder(LightFolder, string)
Moves the folder.
Declaration
public void MoveFolder(LightFolder lFolder, string newFolderPath)
Parameters
lFolder
The l folder.
newFolderPath
The new folder path.
MoveTest(LightTest, string)
Moves the test.
OnFolderDiscovered(LightFolder)
Declaration
protected virtual void OnFolderDiscovered(LightFolder lightFolder)
Parameters
lightFolder
OnLightCodeFileLoaded(LightCodeFile)
Declaration
protected virtual void OnLightCodeFileLoaded(LightCodeFile lightCodeFile)
Parameters
lightCodeFile
OnLightTestDeleted(LightTest)
Declaration
protected void OnLightTestDeleted(LightTest lTest)
Parameters
lTest
OnLightTestDeleting(LightTest)
Declaration
protected void OnLightTestDeleting(LightTest lTest)
Parameters
lTest
OnLightTestLoaded(LightTest)
Declaration
protected virtual void OnLightTestLoaded(LightTest lightTest)
Parameters
lightTest
OnLightTestMoved(LightTestMovedArgs)
Declaration
protected void OnLightTestMoved(LightTestMovedArgs args)
Parameters
args
OnLightTestsLoaded()
Declaration
protected virtual void OnLightTestsLoaded()
OnProjectElementManuallyDeleted(LightProjectElement)
Declaration
protected virtual void OnProjectElementManuallyDeleted(LightProjectElement element)
Parameters
element
OnProjectLoaded(Project)
Declaration
protected virtual void OnProjectLoaded(Project project)
Parameters
project
RenameCodeFile(LightCodeFile, string)
Renames the test.
Declaration
public void RenameCodeFile(LightCodeFile lCodeFile, string newName)
Parameters
lCodeFile
The light code file.
newName
The new name.
RenameFolder(LightFolder, string)
Renames the folder.
Declaration
public void RenameFolder(LightFolder lFolder, string newName)
Parameters
lFolder
The l folder.
newName
The new name.
RenameTest(LightTest, string)
Renames the test.
SaveProject()
Saves all LightTests and code files in the LightProject.
Declaration
public void SaveProject()
SaveProjectAsync()
Saves all LightTests and code files in the LightProject in async mode.
SaveProjectElements(IList<LightProjectElement>)
Saves all light elements in the LightProject.
Declaration
public void SaveProjectElements(IList<LightProjectElement> elements)
Parameters
elements
The elements.
SaveProjectElementsAsync(IList<LightProjectElement>)
Saves all light elements in the LightProject in async mode.
Declaration
public Task SaveProjectElementsAsync(IList<LightProjectElement> elements)
Parameters
elements
The elements.
Returns
SmartRefresh(bool)
Smart the refresh all LightTest(s), LightFolder(s) and LightDataSource(s)
UnHookUpFileSystemProviderEvents()
Declaration
protected virtual void UnHookUpFileSystemProviderEvents()
Events
FolderDiscovered
Occurs foreach 'user' folder discovery. This is not triggerd for reserved forlders such as 'Bin', 'TestLists', Results etc...
Declaration
public event Action<LightFolder> FolderDiscovered
Event Value
LightCodeFileLoaded
Occurs foreach LightCodeFile during the LightCodeFile(s) creation.
Declaration
public event Action<LightCodeFile> LightCodeFileLoaded
Event Value
LightCodeFileMoved
Occurs when code file location is changed.
Declaration
public event Action<LightCodeFile, string> LightCodeFileMoved
Event Value
LightProjectLoaded
Occurs when all light project elements(LightTests, LightFolders, LightDataSources) are loaded
LightTestDeleted
Occurs after the LightTest is deleted and removed from the providers system, this is also triggered for excluded tests.
LightTestDeleting
Occurs before the LightTest is deleted and removed from the providers system, this is also triggered for excluded tests.
LightTestDirtyStateChanged
Occurs when a light test gets modified and will need to be saved.
LightTestLoaded
Occurs foreach LightTest during the LightTest(s) creation.
LightTestMoved
Occurs when test location is changed.
Declaration
public event Action<LightTestMovedArgs> LightTestMoved
Event Value
LightTestsLoaded
/// Occurs when all discovered tests in the project are loaded as LightTest(s).
ProjectElementManuallyDeleted
Occurs when a project element was deleted by the user.
Declaration
public event Action<LightProjectElement> ProjectElementManuallyDeleted
Event Value