Class
FileSystemProvider

Definition

Namespace:ArtOfTest.WebAii.Design.ProjectModel.Providers

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class FileSystemProvider

Inheritance: objectFileSystemProvider

Constructors

FileSystemProvider()

Declaration

cs-api-definition
public FileSystemProvider()

Properties

AppContainer

Declaration

cs-api-definition
public ILifetimeScope AppContainer { get; set; }

Property Value

ILifetimeScope

CachedTests

Declaration

cs-api-definition
public ReadOnlyCollection<TestBase> CachedTests { get; }

Property Value

ReadOnlyCollection<TestBase>

CodeFilesProvider

Declaration

cs-api-definition
public CodeFilesProvider CodeFilesProvider { get; }

Property Value

CodeFilesProvider

CodeService

Declaration

cs-api-definition
public ICodeService CodeService { get; }

Property Value

ICodeService

DataSourceItems

Declaration

cs-api-definition
public IList<LightDataSourceElement> DataSourceItems { get; }

Property Value

IList<LightDataSourceElement>

DataSourcesProvider

Declaration

cs-api-definition
public DataSourcesProvider DataSourcesProvider { get; }

Property Value

DataSourcesProvider

ElementsProvider

Declaration

cs-api-definition
public ElementsProvider ElementsProvider { get; }

Property Value

ElementsProvider

LightProjectElements

Declaration

cs-api-definition
public List<LightProjectElement> LightProjectElements { get; }

Property Value

List<LightProjectElement>

LightTestBaseProvider

Declaration

cs-api-definition
public LightTestsProvider LightTestBaseProvider { get; }

Property Value

LightTestsProvider

OwnerProject

Declaration

cs-api-definition
public Project OwnerProject { get; }

Property Value

Project

SourceControl

Declaration

cs-api-definition
public SourceControlProviderBase SourceControl { get; set; }

Property Value

SourceControlProviderBase

TestAsStepReferences

Declaration

cs-api-definition
public IList<LightTestAsStepReference> TestAsStepReferences { get; }

Property Value

IList<LightTestAsStepReference>

TestsBaseProvider

Declaration

cs-api-definition
public TestsProvider TestsBaseProvider { get; }

Property Value

TestsProvider

Methods

AddDataSource(string)

Declaration

cs-api-definition
public void AddDataSource(string path)

Parameters

path

string

AddElementDescriptor(ElementDescriptor, string)

Declaration

cs-api-definition
public void AddElementDescriptor(ElementDescriptor desc, string filePath)

Parameters

desc

ElementDescriptor

filePath

string

AddLightCodeFileToSrcControl(LightCodeFile)

Declaration

cs-api-definition
public void AddLightCodeFileToSrcControl(LightCodeFile lCodeFile)

Parameters

lCodeFile

LightCodeFile

AddLightTestToSrcControl(LightTest)

Declaration

cs-api-definition
public void AddLightTestToSrcControl(LightTest lightTest)

Parameters

lightTest

LightTest

CloseProject()

Declaration

cs-api-definition
public void CloseProject()

CopyCodeFile(LightFolder, LightCodeFile, string)

Declaration

cs-api-definition
public string CopyCodeFile(LightFolder newParentFolder, LightCodeFile codeFileToCopy, string newName = null)

Parameters

newParentFolder

LightFolder

codeFileToCopy

LightCodeFile

newName

string

Returns

string

CopyElements(LightFolder, params LightProjectElement[])

Declaration

cs-api-definition
public void CopyElements(LightFolder parentFolder, params LightProjectElement[] projectElements)

Parameters

parentFolder

LightFolder

projectElements

LightProjectElement[]

CopyTest(LightFolder, LightTest, string)

Declaration

cs-api-definition
public string CopyTest(LightFolder newParentFolder, LightTest testToCopy, string newName = null)

Parameters

newParentFolder

LightFolder

testToCopy

LightTest

newName

string

Returns

string

CreateCodeFile(string)

Declaration

cs-api-definition
public LightCodeFile CreateCodeFile(string path)

Parameters

path

string

Returns

LightCodeFile

CreateFolder(string, bool)

Declaration

cs-api-definition
public LightFolder CreateFolder(string path, bool folderCreated)

Parameters

path

string

folderCreated

bool

Returns

LightFolder

CreateProject(string, string, string, CodeGenerationLanguage)

Declaration

cs-api-definition
public void CreateProject(string location, string vsSolutionPath, string vsProjectPath, CodeGenerationLanguage vsProjectLanguage)

Parameters

location

string

vsSolutionPath

string

vsProjectPath

string

vsProjectLanguage

CodeGenerationLanguage

CreateTest(TestType, string)

Declaration

cs-api-definition
public LightTest CreateTest(TestType type, string newTestPath)

Parameters

type

TestType

newTestPath

string

Returns

LightTest

DeleteCodeFile(LightCodeFile)

Declaration

cs-api-definition
public void DeleteCodeFile(LightCodeFile lCodeFile)

Parameters

lCodeFile

LightCodeFile

DeleteCodeFile(LightTest)

Declaration

cs-api-definition
public void DeleteCodeFile(LightTest lTest)

Parameters

lTest

LightTest

DeleteDataSourceItem(LightDataSourceElement)

Declaration

cs-api-definition
public void DeleteDataSourceItem(LightDataSourceElement lDataSource)

Parameters

lDataSource

LightDataSourceElement

DeleteFolder(LightFolder)

Declaration

cs-api-definition
public void DeleteFolder(LightFolder lFolder)

Parameters

lFolder

LightFolder

DeleteTest(LightTest, bool)

Declaration

cs-api-definition
public void DeleteTest(LightTest lTest, bool deleteFromDisk)

Parameters

lTest

LightTest

deleteFromDisk

bool

ExcludeProjectElements(IList<LightProjectElement>)

Declaration

cs-api-definition
public void ExcludeProjectElements(IList<LightProjectElement> elements)

Parameters

elements

IList<LightProjectElement>

FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor)

Declaration

cs-api-definition
public void FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor testAsStep)

Parameters

testAsStep

ExecuteTestActionDescriptor

FixTestAsStepByLightTest(LightTest, HashSet<LightProjectElement>)

Recursively resolves all ID references for tests as steps

Declaration

cs-api-definition
public void FixTestAsStepByLightTest(LightTest lightTest, HashSet<LightProjectElement> dirtyTestsSet)

Parameters

lightTest

LightTest

The test that may contain steps as tests

dirtyTestsSet

HashSet<LightProjectElement>

GenerateElementsCode()

Declaration

cs-api-definition
public void GenerateElementsCode()

ImportCodeFile(ImportCodeFileArgs)

Declaration

cs-api-definition
public LightCodeFile ImportCodeFile(ImportCodeFileArgs args)

Parameters

args

ImportCodeFileArgs

Returns

LightCodeFile

ImportTest(ImportTestArgs, bool)

Declaration

cs-api-definition
public LightTest ImportTest(ImportTestArgs args, bool updateCodeBehind = true)

Parameters

args

ImportTestArgs

updateCodeBehind

bool

Returns

LightTest

LoadProject(string, string, string)

Declaration

cs-api-definition
public void LoadProject(string location, string vsSolutionPath = "", string vsProjectPath = "")

Parameters

location

string

vsSolutionPath

string

vsProjectPath

string

MoveCodeFile(LightCodeFile, string)

Declaration

cs-api-definition
public void MoveCodeFile(LightCodeFile lCodeFile, string newCodeFilePath)

Parameters

lCodeFile

LightCodeFile

newCodeFilePath

string

MoveFolder(LightFolder, string)

Declaration

cs-api-definition
public void MoveFolder(LightFolder lFolder, string newFolderPath)

Parameters

lFolder

LightFolder

newFolderPath

string

MoveTest(LightTest, string)

Declaration

cs-api-definition
public void MoveTest(LightTest lTest, string newTestPath)

Parameters

lTest

LightTest

newTestPath

string

NextAvailableFilename(string)

Declaration

cs-api-definition
public static string NextAvailableFilename(string path)

Parameters

path

string

Returns

string

OnBeforeProjectLoad(BeforeProjectLoadArgs)

Declaration

cs-api-definition
protected void OnBeforeProjectLoad(BeforeProjectLoadArgs args)

Parameters

args

BeforeProjectLoadArgs

OnFolderDiscovered(LightFolder)

Declaration

cs-api-definition
protected void OnFolderDiscovered(LightFolder folder)

Parameters

folder

LightFolder

OnLightCodeFileMoved(LightCodeFile, string)

Declaration

cs-api-definition
protected void OnLightCodeFileMoved(LightCodeFile lCodeFile, string oldPath)

Parameters

lCodeFile

LightCodeFile

oldPath

string

OnLightTestDeleted(LightTest)

Declaration

cs-api-definition
protected void OnLightTestDeleted(LightTest lTest)

Parameters

lTest

LightTest

OnLightTestDeleting(LightTest)

Declaration

cs-api-definition
protected void OnLightTestDeleting(LightTest lTest)

Parameters

lTest

LightTest

OnLightTestMoved(LightTest, string)

Declaration

cs-api-definition
protected void OnLightTestMoved(LightTest lTest, string oldPath)

Parameters

lTest

LightTest

oldPath

string

OnLightTestProviderLoadCompleted()

Declaration

cs-api-definition
protected void OnLightTestProviderLoadCompleted()

OnLightTestsDiscovered()

Declaration

cs-api-definition
protected void OnLightTestsDiscovered()

OnProjectElementManuallyDeleted(LightProjectElement)

Declaration

cs-api-definition
protected void OnProjectElementManuallyDeleted(LightProjectElement element)

Parameters

element

LightProjectElement

OpenTest(Guid, bool)

Declaration

cs-api-definition
public TestBase OpenTest(Guid testId, bool waitForElementsToLoad = false)

Parameters

testId

Guid

waitForElementsToLoad

bool

Returns

TestBase

OpenTest(string, bool)

Declaration

cs-api-definition
public TestBase OpenTest(string path, bool waitForElementsToLoad = false)

Parameters

path

string

waitForElementsToLoad

bool

Returns

TestBase

OpenTestAsync(Guid)

Declaration

cs-api-definition
public void OpenTestAsync(Guid testId)

Parameters

testId

Guid

OpenTestAsync(LightTest)

Declaration

cs-api-definition
public void OpenTestAsync(LightTest lTest)

Parameters

lTest

LightTest

OverrideProjectSettings()

Declaration

cs-api-definition
public void OverrideProjectSettings()

RefreshElements()

Declaration

cs-api-definition
public void RefreshElements()

ReloadElements(params LightProjectElement[])

Declaration

cs-api-definition
public void ReloadElements(params LightProjectElement[] elements)

Parameters

elements

LightProjectElement[]

RenameCodeFile(LightCodeFile, string)

Declaration

cs-api-definition
public void RenameCodeFile(LightCodeFile lCodeFile, string newName)

Parameters

lCodeFile

LightCodeFile

newName

string

RenameFolder(LightFolder, string)

Declaration

cs-api-definition
public void RenameFolder(LightFolder lFolder, string newName)

Parameters

lFolder

LightFolder

newName

string

RenameTest(LightTest, string)

Declaration

cs-api-definition
public void RenameTest(LightTest lTest, string newName)

Parameters

lTest

LightTest

newName

string

SaveLightCodeFile(LightCodeFile)

Declaration

cs-api-definition
public void SaveLightCodeFile(LightCodeFile lCodeFile)

Parameters

lCodeFile

LightCodeFile

SaveLightTest(LightTest)

Declaration

cs-api-definition
public void SaveLightTest(LightTest lightTest)

Parameters

lightTest

LightTest

SaveProject()

Declaration

cs-api-definition
public void SaveProject()

SaveProjectElements(IList<LightProjectElement>)

Declaration

cs-api-definition
public void SaveProjectElements(IList<LightProjectElement> elements)

Parameters

elements

IList<LightProjectElement>

SmartRefresh(bool)

Declaration

cs-api-definition
public IList<string> SmartRefresh(bool updateCodeBehind = true)

Parameters

updateCodeBehind

bool

Returns

IList<string>

Events

BeforeElementsLoad

Declaration

cs-api-definition
public event Action BeforeElementsLoad

Event Value

Action

BeforeProjectLoad

Declaration

cs-api-definition
public event Action<BeforeProjectLoadArgs> BeforeProjectLoad

Event Value

Action<BeforeProjectLoadArgs>

DataSourceItemLoaded

Declaration

cs-api-definition
public event Action<LightDataSourceElement> DataSourceItemLoaded

Event Value

Action<LightDataSourceElement>

ElementLoaded

Declaration

cs-api-definition
public event Action<LightElementNode> ElementLoaded

Event Value

Action<LightElementNode>

ElementsLoaded

Declaration

cs-api-definition
public event Action ElementsLoaded

Event Value

Action

ElementsReplacementEnded

Declaration

cs-api-definition
public event Action ElementsReplacementEnded

Event Value

Action

ElementsReplacementStarted

Declaration

cs-api-definition
public event Action ElementsReplacementStarted

Event Value

Action

FolderDiscovered

Declaration

cs-api-definition
public event Action<LightFolder> FolderDiscovered

Event Value

Action<LightFolder>

LightCodeFileMoved

Declaration

cs-api-definition
public event Action<LightCodeFile, string> LightCodeFileMoved

Event Value

Action<LightCodeFile, string>

LightCodeLoaded

Declaration

cs-api-definition
public event Action<LightCodeFile> LightCodeLoaded

Event Value

Action<LightCodeFile>

LightProjectLoaded

Declaration

cs-api-definition
public event Action<Project> LightProjectLoaded

Event Value

Action<Project>

LightTestDeleted

Declaration

cs-api-definition
public event Action<LightTest> LightTestDeleted

Event Value

Action<LightTest>

LightTestDeleting

Declaration

cs-api-definition
public event Action<LightTest> LightTestDeleting

Event Value

Action<LightTest>

LightTestLoaded

Declaration

cs-api-definition
public event Action<LightTest> LightTestLoaded

Event Value

Action<LightTest>

LightTestMoved

Declaration

cs-api-definition
public event Action<LightTestMovedArgs> LightTestMoved

Event Value

Action<LightTestMovedArgs>

LightTestsLoaded

Declaration

cs-api-definition
public event Action LightTestsLoaded

Event Value

Action

ProjectElementManuallyDeleted

Declaration

cs-api-definition
public event Action<LightProjectElement> ProjectElementManuallyDeleted

Event Value

Action<LightProjectElement>

TestOpened

Declaration

cs-api-definition
public event Action<TestBase> TestOpened

Event Value

Action<TestBase>

In this article
DefinitionConstructorsFileSystemProvider()PropertiesAppContainerCachedTestsCodeFilesProviderCodeServiceDataSourceItemsDataSourcesProviderElementsProviderLightProjectElementsLightTestBaseProviderOwnerProjectSourceControlTestAsStepReferencesTestsBaseProviderMethodsAddDataSource(string)AddElementDescriptor(ElementDescriptor, string)AddLightCodeFileToSrcControl(LightCodeFile)AddLightTestToSrcControl(LightTest)CloseProject()CopyCodeFile(LightFolder, LightCodeFile, string)CopyElements(LightFolder, params LightProjectElement[])CopyTest(LightFolder, LightTest, string)CreateCodeFile(string)CreateFolder(string, bool)CreateProject(string, string, string, CodeGenerationLanguage)CreateTest(TestType, string)DeleteCodeFile(LightCodeFile)DeleteCodeFile(LightTest)DeleteDataSourceItem(LightDataSourceElement)DeleteFolder(LightFolder)DeleteTest(LightTest, bool)ExcludeProjectElements(IList<LightProjectElement>)FixTestAsStepActionDescriptor(ExecuteTestActionDescriptor)FixTestAsStepByLightTest(LightTest, HashSet<LightProjectElement>)GenerateElementsCode()ImportCodeFile(ImportCodeFileArgs)ImportTest(ImportTestArgs, bool)LoadProject(string, string, string)MoveCodeFile(LightCodeFile, string)MoveFolder(LightFolder, string)MoveTest(LightTest, string)NextAvailableFilename(string)OnBeforeProjectLoad(BeforeProjectLoadArgs)OnFolderDiscovered(LightFolder)OnLightCodeFileMoved(LightCodeFile, string)OnLightTestDeleted(LightTest)OnLightTestDeleting(LightTest)OnLightTestMoved(LightTest, string)OnLightTestProviderLoadCompleted()OnLightTestsDiscovered()OnProjectElementManuallyDeleted(LightProjectElement)OpenTest(Guid, bool)OpenTest(string, bool)OpenTestAsync(Guid)OpenTestAsync(LightTest)OverrideProjectSettings()RefreshElements()ReloadElements(params LightProjectElement[])RenameCodeFile(LightCodeFile, string)RenameFolder(LightFolder, string)RenameTest(LightTest, string)SaveLightCodeFile(LightCodeFile)SaveLightTest(LightTest)SaveProject()SaveProjectElements(IList<LightProjectElement>)SmartRefresh(bool)EventsBeforeElementsLoadBeforeProjectLoadDataSourceItemLoadedElementLoadedElementsLoadedElementsReplacementEndedElementsReplacementStartedFolderDiscoveredLightCodeFileMovedLightCodeLoadedLightProjectLoadedLightTestDeletedLightTestDeletingLightTestLoadedLightTestMovedLightTestsLoadedProjectElementManuallyDeletedTestOpened
Not finding the help you need?
Contact Support