ClassStandaloneHost
Class representing the standalone host including the project interfaces
Definition
Namespace:ArtOfTest.WebAii.Design.ProjectModel
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class StandaloneHost : IUIProject
Inheritance: objectStandaloneHost
Implements:
Constructors
StandaloneHost(bool)
Create the host.
Properties
AppContainer
Declaration
public IContainer AppContainer { get; }
Property Value
IContainer
CodeService
The code service for compilation/parsing
Declaration
public ICodeService CodeService { get; }
Property Value
Implements
ContainerBuilder
Declaration
public ContainerBuilder ContainerBuilder { get; }
Property Value
ContainerBuilder
ElementsExplorer
Declaration
public IElementsExplorer ElementsExplorer { get; set; }
Property Value
Implements
InteractionService
Declaration
public IUserInteractionService InteractionService { get; }
Property Value
Implements
IsStarted
Indicates whether the host is started.
ResultViewer
Declaration
public ResultsViewerControl ResultViewer { get; set; }
Property Value
ScopedContainer
Declaration
public ILifetimeScope ScopedContainer { get; }
Property Value
ILifetimeScope
Implements
SelectedProject
Gets the currently selected project, or null if no project is selected
Declaration
public Project SelectedProject { get; }
Property Value
Implements
TestListsController
Declaration
public TestListsExplorerController TestListsController { get; set; }
Property Value
UIInteraction
Declaration
public IHostInteraction UIInteraction { get; }
Property Value
Implements
Methods
AddCodedFunction(Test, AutomationStep, string, bool)
Add a coded function to the test.
Declaration
public void AddCodedFunction(Test test, AutomationStep step, string functionContent, bool positionCodedStep)
Parameters
test
The test
step
The test to add the function for
functionContent
The code to add
positionCodedStep
Implements
AddFile(string)
Adds a file to the project. The file should already exist on disk under the project root.
Declaration
public void AddFile(string location)
Parameters
location
The full path to the file
Implements
AddProjectReference(Project, string)
Add a project reference to a certain assembly
AssignCodeService(ICodeService)
Assign the code service provider
Declaration
public void AssignCodeService(ICodeService codeService)
Parameters
codeService
Implements
AssignHostInteraction(IHostInteraction)
Assign the interaction interface to this project
Declaration
public void AssignHostInteraction(IHostInteraction hostInteraction)
Parameters
hostInteraction
Implements
BuildProject(Project, bool)
Compile the project
Declaration
public CompilerResults BuildProject(Project project, bool skipInDevelopment)
Parameters
project
skipInDevelopment
Returns
Implements
BuildProjectAsync(Project, bool)
Declaration
public Task<CompilerResults> BuildProjectAsync(Project project, bool skipInDevelopment)
Parameters
project
skipInDevelopment
Returns
DisplayLanguageSelector(Project)
Display a dialog where the user selects the language of a project
GetDefaultNewProjectName()
Get a default new project name
GetDefaultProjectLocation()
Return default location where project will be created
GetKnownProjectFolderFileTypesToIgnore()
Declaration
public static string[] GetKnownProjectFolderFileTypesToIgnore()
Returns
string[]
GetOutputFileName(string)
Gets the output file name for a certain project. TODO:// Why do we need to pass in a testpath? Why not a project object?
GetOutputFolder(string)
Gets the output directory given a test. TODO:// Why do we need to pass in a testpath? Why not a project object?
GetProjectScope(string)
Declaration
public ILifetimeScope GetProjectScope(string projectPath)
Parameters
projectPath
Returns
ILifetimeScope
Implements
GetSpecialFolder(Project, SpecialFolders)
Get the location of a specific special folder as defined by the enum
Declaration
public string GetSpecialFolder(Project project, SpecialFolders folder)
Parameters
project
folder
The special folder to get.
Returns
The full path to the folder.
Implements
GetTestNames(Project)
Gets the full paths to all loaded tests
LoadTestListsIfNone()
Declaration
public void LoadTestListsIfNone()
LogMessage(string, bool)
Log a message to the log.
OnProjectDirtied(string)
Notify the orchestrator that the project has changed
Declaration
public void OnProjectDirtied(string projectPath)
Parameters
projectPath
Implements
PrepareToExecuteTest(Test, bool)
Prompts the user to save a list of dirty files and saves the ones they want to save
PromptAndSaveFiles(object)
Prompts the user to save a list of dirty files and saves the ones they want to save
ReBuildContainer()
Declaration
public void ReBuildContainer()
RemoveProjectReference(Project, string)
Remove a project reference to a certain assembly
SetHostStatus(string)
Set the host status (if it has one)
Declaration
public void SetHostStatus(string text)
Parameters
text
The status text
Implements
ShowTestCodeFile(Test, IStepViewModel)
Show the code file for the passed in test
Declaration
public void ShowTestCodeFile(Test test, IStepViewModel step)
Parameters
test
The test to show the code file for.
step
If not null, the navigate to that coded step
Implements
Startup()
Start the orchestrator and associate it with this IUIProject
Declaration
public void Startup()
UpdateCodedStepContent(AutomationStep)
Declaration
public void UpdateCodedStepContent(AutomationStep automationStep)
Parameters
automationStep
Implements
Events
CodeFileDeleted
Declaration
public event Action<LightCodeFile> CodeFileDeleted
Event Value
CodeFileExcluded
Declaration
public event Action<LightCodeFile> CodeFileExcluded
Event Value
CodeFileRenamed
Declaration
public event EventHandler<RenameEventArg> CodeFileRenamed
Event Value
CodeFolderExcluded
Declaration
public event Action<LightFolder> CodeFolderExcluded
Event Value
ProjectClosed
Project closed
Declaration
public event EventHandler<ProjectClosedEventArg> ProjectClosed
Event Value
Implements
ProjectClosing
Project closed
Declaration
public event EventHandler<ProjectClosedEventArg> ProjectClosing
Event Value
Implements
ProjectCreated
Project created
Declaration
public event EventHandler<ProjectEventArgs> ProjectCreated
Event Value
Implements
ProjectOpened
Project openned
Declaration
public event EventHandler<ProjectEventArgs> ProjectOpened
Event Value
Implements
ProjectRenamed
Project Renamed
Declaration
public event EventHandler<RenameEventArg> ProjectRenamed
Event Value
Implements
ProjectSaved
Project is saved
Declaration
public event EventHandler<ProjectEventArgs> ProjectSaved
Event Value
Implements
ProjectSelected
Project is selected in a (for multi-project systems)
Declaration
public event EventHandler<ProjectEventArgs> ProjectSelected
Event Value
Implements
ResultChanged
Declaration
public event EventHandler<RunResultNodeEventArgs> ResultChanged
Event Value
ResultViewerAppointmentSelectionChanged
Declaration
public event EventHandler<RunResultNodeEventArgs> ResultViewerAppointmentSelectionChanged
Event Value
ResultsLoaded
Declaration
public event EventHandler<ResultsLoadedEventArgs> ResultsLoaded
Event Value
RunResultDeleted
Declaration
public event EventHandler<LightRunResultEventArgs> RunResultDeleted
Event Value
SchedulingConnectionStateChanged
Declaration
public event Action SchedulingConnectionStateChanged
Event Value
TestClosed
The test has been closed
Declaration
public event EventHandler<TestEventArg> TestClosed
Event Value
Implements
TestDeleted
Declaration
public event EventHandler<DeleteTestEventArg> TestDeleted
Event Value
TestListCreated
Declaration
public event Action<TestListNode, int> TestListCreated
Event Value
TestListDeleted
Declaration
public event EventHandler<TestListNodeEventArg> TestListDeleted
Event Value
TestListExecutionCompleted
Declaration
public event EventHandler<EventArgs> TestListExecutionCompleted
Event Value
TestListExecutionStarted
Declaration
public event EventHandler<EventArgs> TestListExecutionStarted
Event Value
TestListSelectionChanged
Declaration
public event EventHandler<TestListNodeEventArg> TestListSelectionChanged
Event Value
TestListsLoaded
Declaration
public event EventHandler<TestListNodeCollectionEventArgs> TestListsLoaded
Event Value
TestPropertyChanged
Declaration
public event EventHandler<TestPropertyChangedEventArgs> TestPropertyChanged
Event Value
TestRenamed
Declaration
public event EventHandler<RenameEventArg> TestRenamed
Event Value
TestSaved
The test was saved
Declaration
public event EventHandler<TestEventArg> TestSaved
Event Value
Implements
TestSaving
Declaration
public event EventHandler<TestEventArg> TestSaving
Event Value
TestSelected
A Test is selected
Declaration
public event EventHandler<TestEventArg> TestSelected
Event Value
Implements