ClassFileSystemProvider
Definition
Namespace:ArtOfTest.WebAii.Design.ProjectModel.Providers
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class FileSystemProvider
Inheritance: objectFileSystemProvider
Constructors
FileSystemProvider()
Declaration
public FileSystemProvider()
Properties
AppContainer
Declaration
public ILifetimeScope AppContainer { get; set; }
Property Value
ILifetimeScope
CachedTests
Declaration
public ReadOnlyCollection<TestBase> CachedTests { get; }
Property Value
CodeFilesProvider
Declaration
public CodeFilesProvider CodeFilesProvider { get; }
Property Value
DataSourceItems
Declaration
public IList<LightDataSourceElement> DataSourceItems { get; }
Property Value
DataSourcesProvider
Declaration
public DataSourcesProvider DataSourcesProvider { get; }
Property Value
ElementsProvider
Declaration
public ElementsProvider ElementsProvider { get; }
Property Value
LightProjectElements
Declaration
public List<LightProjectElement> LightProjectElements { get; }
Property Value
LightTestBaseProvider
Declaration
public LightTestsProvider LightTestBaseProvider { get; }
Property Value
SourceControl
Declaration
public SourceControlProviderBase SourceControl { get; set; }
Property Value
TestAsStepReferences
Declaration
public IList<LightTestAsStepReference> TestAsStepReferences { get; }
Property Value
TestsBaseProvider
Declaration
public TestsProvider TestsBaseProvider { get; }
Property Value
Methods
AddElementDescriptor(ElementDescriptor, string)
Declaration
public void AddElementDescriptor(ElementDescriptor desc, string filePath)
Parameters
desc
filePath
AddLightCodeFileToSrcControl(LightCodeFile)
Declaration
public void AddLightCodeFileToSrcControl(LightCodeFile lCodeFile)
Parameters
lCodeFile
AddLightTestToSrcControl(LightTest)
Declaration
public void AddLightTestToSrcControl(LightTest lightTest)
Parameters
lightTest
CloseProject()
Declaration
public void CloseProject()
CopyCodeFile(LightFolder, LightCodeFile, string)
Declaration
public string CopyCodeFile(LightFolder newParentFolder, LightCodeFile codeFileToCopy, string newName = null)
Parameters
newParentFolder
codeFileToCopy
newName
Returns
CopyElements(LightFolder, params LightProjectElement[])
Declaration
public void CopyElements(LightFolder parentFolder, params LightProjectElement[] projectElements)
Parameters
parentFolder
projectElements
CopyTest(LightFolder, LightTest, string)
Declaration
public string CopyTest(LightFolder newParentFolder, LightTest testToCopy, string newName = null)
Parameters
newParentFolder
testToCopy
newName
Returns
CreateCodeFile(string)
Declaration
public LightCodeFile CreateCodeFile(string path)
Parameters
path
Returns
CreateFolder(string, bool)
Declaration
public LightFolder CreateFolder(string path, bool folderCreated)
Parameters
path
folderCreated
Returns
CreateProject(string, string, string, CodeGenerationLanguage)
Declaration
public void CreateProject(string location, string vsSolutionPath, string vsProjectPath, CodeGenerationLanguage vsProjectLanguage)
Parameters
location
vsSolutionPath
vsProjectPath
vsProjectLanguage
DeleteCodeFile(LightCodeFile)
Declaration
public void DeleteCodeFile(LightCodeFile lCodeFile)
Parameters
lCodeFile
DeleteCodeFile(LightTest)
Declaration
public void DeleteCodeFile(LightTest lTest)
Parameters
lTest
DeleteDataSourceItem(LightDataSourceElement)
Declaration
public void DeleteDataSourceItem(LightDataSourceElement lDataSource)
Parameters
lDataSource
DeleteFolder(LightFolder)
Declaration
public void DeleteFolder(LightFolder lFolder)
Parameters
lFolder
ExcludeProjectElements(IList<LightProjectElement>)
Declaration
public void ExcludeProjectElements(IList<LightProjectElement> elements)
Parameters
elements
FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor)
Declaration
public void FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor testAsStep)
Parameters
testAsStep
FixTestAsStepByLightTest(LightTest, HashSet<LightProjectElement>)
Recursively resolves all ID references for tests as steps
Declaration
public void FixTestAsStepByLightTest(LightTest lightTest, HashSet<LightProjectElement> dirtyTestsSet)
Parameters
lightTest
The test that may contain steps as tests
dirtyTestsSet
GenerateElementsCode()
Declaration
public void GenerateElementsCode()
ImportCodeFile(ImportCodeFileArgs)
Declaration
public LightCodeFile ImportCodeFile(ImportCodeFileArgs args)
Parameters
args
Returns
ImportTest(ImportTestArgs, bool)
Declaration
public LightTest ImportTest(ImportTestArgs args, bool updateCodeBehind = true)
Parameters
args
updateCodeBehind
Returns
MoveCodeFile(LightCodeFile, string)
Declaration
public void MoveCodeFile(LightCodeFile lCodeFile, string newCodeFilePath)
Parameters
lCodeFile
newCodeFilePath
MoveFolder(LightFolder, string)
Declaration
public void MoveFolder(LightFolder lFolder, string newFolderPath)
Parameters
lFolder
newFolderPath
OnBeforeProjectLoad(BeforeProjectLoadArgs)
Declaration
protected void OnBeforeProjectLoad(BeforeProjectLoadArgs args)
Parameters
args
OnFolderDiscovered(LightFolder)
Declaration
protected void OnFolderDiscovered(LightFolder folder)
Parameters
folder
OnLightCodeFileMoved(LightCodeFile, string)
Declaration
protected void OnLightCodeFileMoved(LightCodeFile lCodeFile, string oldPath)
Parameters
lCodeFile
oldPath
OnLightTestDeleted(LightTest)
Declaration
protected void OnLightTestDeleted(LightTest lTest)
Parameters
lTest
OnLightTestDeleting(LightTest)
Declaration
protected void OnLightTestDeleting(LightTest lTest)
Parameters
lTest
OnLightTestProviderLoadCompleted()
Declaration
protected void OnLightTestProviderLoadCompleted()
OnLightTestsDiscovered()
Declaration
protected void OnLightTestsDiscovered()
OnProjectElementManuallyDeleted(LightProjectElement)
Declaration
protected void OnProjectElementManuallyDeleted(LightProjectElement element)
Parameters
element
OverrideProjectSettings()
Declaration
public void OverrideProjectSettings()
RefreshElements()
Declaration
public void RefreshElements()
ReloadElements(params LightProjectElement[])
Declaration
public void ReloadElements(params LightProjectElement[] elements)
Parameters
elements
RenameCodeFile(LightCodeFile, string)
Declaration
public void RenameCodeFile(LightCodeFile lCodeFile, string newName)
Parameters
lCodeFile
newName
RenameFolder(LightFolder, string)
Declaration
public void RenameFolder(LightFolder lFolder, string newName)
Parameters
lFolder
newName
SaveLightCodeFile(LightCodeFile)
Declaration
public void SaveLightCodeFile(LightCodeFile lCodeFile)
Parameters
lCodeFile
SaveLightTest(LightTest)
Declaration
public void SaveLightTest(LightTest lightTest)
Parameters
lightTest
SaveProject()
Declaration
public void SaveProject()
SaveProjectElements(IList<LightProjectElement>)
Declaration
public void SaveProjectElements(IList<LightProjectElement> elements)
Parameters
elements
Events
BeforeProjectLoad
Declaration
public event Action<BeforeProjectLoadArgs> BeforeProjectLoad
Event Value
DataSourceItemLoaded
Declaration
public event Action<LightDataSourceElement> DataSourceItemLoaded
Event Value
ElementLoaded
Declaration
public event Action<LightElementNode> ElementLoaded
Event Value
FolderDiscovered
Declaration
public event Action<LightFolder> FolderDiscovered
Event Value
LightCodeFileMoved
Declaration
public event Action<LightCodeFile, string> LightCodeFileMoved
Event Value
LightCodeLoaded
Declaration
public event Action<LightCodeFile> LightCodeLoaded
Event Value
LightTestMoved
Declaration
public event Action<LightTestMovedArgs> LightTestMoved
Event Value
ProjectElementManuallyDeleted
Declaration
public event Action<LightProjectElement> ProjectElementManuallyDeleted
Event Value