Class FileSystemProvider
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.Design.ProjectModel.Providers
Assembly: ArtOfTest.WebAii.Design.dll
Syntax
public class FileSystemProvider
Constructors
FileSystemProvider()
Declaration
public FileSystemProvider()
Properties
AppContainer
Declaration
public ILifetimeScope AppContainer { get; set; }
Property Value
Autofac.ILifetimeScope
|
CachedTests
Declaration
public ReadOnlyCollection<TestBase> CachedTests { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<TestBase>
|
CodeFilesProvider
CodeService
DataSourceItems
Declaration
public IList<LightDataSourceElement> DataSourceItems { get; }
Property Value
System.Collections.Generic.IList<LightDataSourceElement>
|
DataSourcesProvider
Declaration
public DataSourcesProvider DataSourcesProvider { get; }
Property Value
DataSourcesProvider
|
ElementsProvider
LightProjectElements
Declaration
public List<LightProjectElement> LightProjectElements { get; }
Property Value
System.Collections.Generic.List<LightProjectElement>
|
LightTestBaseProvider
Declaration
public LightTestsProvider LightTestBaseProvider { get; }
Property Value
LightTestsProvider
|
OwnerProject
SourceControl
Declaration
public SourceControlProviderBase SourceControl { get; set; }
Property Value
SourceControlProviderBase
|
TestAsStepReferences
Declaration
public IList<LightTestAsStepReference> TestAsStepReferences { get; }
Property Value
System.Collections.Generic.IList<LightTestAsStepReference>
|
TestsBaseProvider
Methods
AddDataSource(String)
Declaration
public void AddDataSource(string path)
Parameters
System.String
path
|
AddElementDescriptor(ElementDescriptor, String)
Declaration
public void AddElementDescriptor(ElementDescriptor desc, string filePath)
Parameters
ElementDescriptor
desc
|
System.String
filePath
|
AddLightCodeFileToSrcControl(LightCodeFile)
Declaration
public void AddLightCodeFileToSrcControl(LightCodeFile lCodeFile)
Parameters
LightCodeFile
lCodeFile
|
AddLightTestToSrcControl(LightTest)
Declaration
public void AddLightTestToSrcControl(LightTest lightTest)
Parameters
LightTest
lightTest
|
CloseProject()
Declaration
public void CloseProject()
CopyCodeFile(LightFolder, LightCodeFile, String)
Declaration
public string CopyCodeFile(LightFolder newParentFolder, LightCodeFile codeFileToCopy, string newName = null)
Parameters
LightFolder
newParentFolder
|
LightCodeFile
codeFileToCopy
|
System.String
newName
|
Returns
System.String
|
CopyElements(LightFolder, LightProjectElement[])
Declaration
public void CopyElements(LightFolder parentFolder, params LightProjectElement[] projectElements)
Parameters
LightFolder
parentFolder
|
LightProjectElement[]
projectElements
|
CopyTest(LightFolder, LightTest, String)
Declaration
public string CopyTest(LightFolder newParentFolder, LightTest testToCopy, string newName = null)
Parameters
LightFolder
newParentFolder
|
LightTest
testToCopy
|
System.String
newName
|
Returns
System.String
|
CreateCodeFile(String)
Declaration
public LightCodeFile CreateCodeFile(string path)
Parameters
System.String
path
|
Returns
LightCodeFile
|
CreateFolder(String, Boolean)
Declaration
public LightFolder CreateFolder(string path, bool folderCreated)
Parameters
System.String
path
|
System.Boolean
folderCreated
|
Returns
LightFolder
|
CreateProject(String, String, String, CodeGenerationLanguage)
Declaration
public void CreateProject(string location, string vsSolutionPath, string vsProjectPath, CodeGenerationLanguage vsProjectLanguage)
Parameters
System.String
location
|
System.String
vsSolutionPath
|
System.String
vsProjectPath
|
CodeGenerationLanguage
vsProjectLanguage
|
CreateTest(TestType, String)
Declaration
public LightTest CreateTest(TestType type, string parentFolder)
Parameters
TestType
type
|
System.String
parentFolder
|
Returns
LightTest
|
DeleteCodeFile(LightCodeFile)
DeleteCodeFile(LightTest)
DeleteDataSourceItem(LightDataSourceElement)
Declaration
public void DeleteDataSourceItem(LightDataSourceElement lDataSource)
Parameters
LightDataSourceElement
lDataSource
|
DeleteFolder(LightFolder)
DeleteTest(LightTest, Boolean)
Declaration
public void DeleteTest(LightTest lTest, bool deleteFromDisk)
Parameters
LightTest
lTest
|
System.Boolean
deleteFromDisk
|
ExcludeProjectElements(IList<LightProjectElement>)
Declaration
public void ExcludeProjectElements(IList<LightProjectElement> elements)
Parameters
System.Collections.Generic.IList<LightProjectElement>
elements
|
FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor)
Declaration
public void FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor testAsStep)
Parameters
ExecuteTestActionDescriptor
testAsStep
|
FixTestAsStepByLightTest(LightTest, HashSet<LightProjectElement>)
Declaration
public void FixTestAsStepByLightTest(LightTest lightTest, HashSet<LightProjectElement> dirtyTestsSet)
Parameters
LightTest
lightTest
|
System.Collections.Generic.HashSet<LightProjectElement>
dirtyTestsSet
|
GenerateElementsCode()
Declaration
public void GenerateElementsCode()
ImportCodeFile(ImportCodeFileArgs)
Declaration
public LightCodeFile ImportCodeFile(ImportCodeFileArgs args)
Parameters
ImportCodeFileArgs
args
|
Returns
LightCodeFile
|
ImportTest(ImportTestArgs, Boolean)
Declaration
public LightTest ImportTest(ImportTestArgs args, bool updateCodeBehind = true)
Parameters
ImportTestArgs
args
|
System.Boolean
updateCodeBehind
|
Returns
LightTest
|
LoadProject(String, String, String)
Declaration
public void LoadProject(string location, string vsSolutionPath = "", string vsProjectPath = "")
Parameters
System.String
location
|
System.String
vsSolutionPath
|
System.String
vsProjectPath
|
MoveCodeFile(LightCodeFile, String)
Declaration
public void MoveCodeFile(LightCodeFile lCodeFile, string newCodeFilePath)
Parameters
LightCodeFile
lCodeFile
|
System.String
newCodeFilePath
|
MoveFolder(LightFolder, String)
Declaration
public void MoveFolder(LightFolder lFolder, string newFolderPath)
Parameters
LightFolder
lFolder
|
System.String
newFolderPath
|
MoveTest(LightTest, String)
Declaration
public void MoveTest(LightTest lTest, string newTestPath)
Parameters
LightTest
lTest
|
System.String
newTestPath
|
NextAvailableFilename(String)
Declaration
public static string NextAvailableFilename(string path)
Parameters
System.String
path
|
Returns
System.String
|
OnBeforeProjectLoad(BeforeProjectLoadArgs)
Declaration
protected void OnBeforeProjectLoad(BeforeProjectLoadArgs args)
Parameters
BeforeProjectLoadArgs
args
|
OnFolderDiscovered(LightFolder)
OnLightCodeFileMoved(LightCodeFile, String)
Declaration
protected void OnLightCodeFileMoved(LightCodeFile lCodeFile, string oldPath)
Parameters
LightCodeFile
lCodeFile
|
System.String
oldPath
|
OnLightTestDeleted(LightTest)
OnLightTestDeleting(LightTest)
OnLightTestMoved(LightTest, String)
Declaration
protected void OnLightTestMoved(LightTest lTest, string oldPath)
Parameters
LightTest
lTest
|
System.String
oldPath
|
OnLightTestProviderLoadCompleted()
Declaration
protected void OnLightTestProviderLoadCompleted()
OnLightTestsDiscovered()
Declaration
protected void OnLightTestsDiscovered()
OnProjectElementManuallyDeleted(LightProjectElement)
Declaration
protected void OnProjectElementManuallyDeleted(LightProjectElement element)
Parameters
LightProjectElement
element
|
OpenTest(Guid, Boolean)
Declaration
public TestBase OpenTest(Guid testId, bool waitForElementsToLoad = false)
Parameters
System.Guid
testId
|
System.Boolean
waitForElementsToLoad
|
Returns
TestBase
|
OpenTest(String, Boolean)
Declaration
public TestBase OpenTest(string path, bool waitForElementsToLoad = false)
Parameters
System.String
path
|
System.Boolean
waitForElementsToLoad
|
Returns
TestBase
|
OpenTestAsync(LightTest)
OpenTestAsync(Guid)
Declaration
public void OpenTestAsync(Guid testId)
Parameters
System.Guid
testId
|
OverrideProjectSettings()
Declaration
public void OverrideProjectSettings()
RefreshElements()
Declaration
public void RefreshElements()
ReloadElements(LightProjectElement[])
Declaration
public void ReloadElements(params LightProjectElement[] elements)
Parameters
LightProjectElement[]
elements
|
RenameCodeFile(LightCodeFile, String)
Declaration
public void RenameCodeFile(LightCodeFile lCodeFile, string newName)
Parameters
LightCodeFile
lCodeFile
|
System.String
newName
|
RenameFolder(LightFolder, String)
Declaration
public void RenameFolder(LightFolder lFolder, string newName)
Parameters
LightFolder
lFolder
|
System.String
newName
|
RenameTest(LightTest, String)
Declaration
public void RenameTest(LightTest lTest, string newName)
Parameters
LightTest
lTest
|
System.String
newName
|
SaveLightCodeFile(LightCodeFile)
Declaration
public void SaveLightCodeFile(LightCodeFile lCodeFile)
Parameters
LightCodeFile
lCodeFile
|
SaveLightTest(LightTest)
SaveProject()
Declaration
public void SaveProject()
SaveProjectElements(IList<LightProjectElement>)
Declaration
public void SaveProjectElements(IList<LightProjectElement> elements)
Parameters
System.Collections.Generic.IList<LightProjectElement>
elements
|
SmartRefresh(Boolean)
Declaration
public IList<string> SmartRefresh(bool updateCodeBehind = true)
Parameters
System.Boolean
updateCodeBehind
|
Returns
System.Collections.Generic.IList<System.String>
|
Events
BeforeElementsLoad
Declaration
public event Action BeforeElementsLoad
Event Type
System.Action
|
BeforeProjectLoad
Declaration
public event Action<BeforeProjectLoadArgs> BeforeProjectLoad
Event Type
System.Action<BeforeProjectLoadArgs>
|
DataSourceItemLoaded
Declaration
public event Action<LightDataSourceElement> DataSourceItemLoaded
Event Type
System.Action<LightDataSourceElement>
|
ElementLoaded
Declaration
public event Action<LightElementNode> ElementLoaded
Event Type
System.Action<LightElementNode>
|
ElementsLoaded
Declaration
public event Action ElementsLoaded
Event Type
System.Action
|
ElementsReplacementEnded
Declaration
public event Action ElementsReplacementEnded
Event Type
System.Action
|
ElementsReplacementStarted
Declaration
public event Action ElementsReplacementStarted
Event Type
System.Action
|
FolderDiscovered
LightCodeFileMoved
Declaration
public event Action<LightCodeFile, string> LightCodeFileMoved
Event Type
System.Action<LightCodeFile, System.String>
|
LightCodeLoaded
Declaration
public event Action<LightCodeFile> LightCodeLoaded
Event Type
System.Action<LightCodeFile>
|
LightProjectLoaded
LightTestDeleted
LightTestDeleting
LightTestLoaded
LightTestMoved
Declaration
public event Action<LightTestMovedArgs> LightTestMoved
Event Type
System.Action<LightTestMovedArgs>
|
LightTestsLoaded
Declaration
public event Action LightTestsLoaded
Event Type
System.Action
|
ProjectElementManuallyDeleted
Declaration
public event Action<LightProjectElement> ProjectElementManuallyDeleted
Event Type
System.Action<LightProjectElement>
|