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