InterfaceIUIProject
Interface implemented by the host project system.
Definition
Namespace:ArtOfTest.WebAii.Design.ProjectModel
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public interface IUIProject
Derived Classes:
Properties
CodeService
The code service for compilation/parsing
ElementsExplorer
Declaration
IElementsExplorer ElementsExplorer { get; set; }
Property Value
InteractionService
Declaration
IUserInteractionService InteractionService { get; }
Property Value
ScopedContainer
Declaration
ILifetimeScope ScopedContainer { get; }
Property Value
ILifetimeScope
SelectedProject
Gets the currently selected project, or null if no project is selected
UIInteraction
Declaration
IHostInteraction UIInteraction { get; }
Property Value
Methods
AddCodedFunction(Test, AutomationStep, string, bool)
Add a coded function to the test.
Declaration
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
AddFile(string)
Adds a file to the project. The file should already exist on disk under the project root.
Declaration
void AddFile(string location)
Parameters
location
The full path to the file
AddProjectReference(Project, string)
Add a project reference to a certain assembly
AssignCodeService(ICodeService)
Assign the code service provider
Declaration
void AssignCodeService(ICodeService codeService)
Parameters
codeService
AssignHostInteraction(IHostInteraction)
Assign the interaction interface to this project
Declaration
void AssignHostInteraction(IHostInteraction hostInteraction)
Parameters
hostInteraction
BuildProject(Project, bool)
Compile the project
Declaration
CompilerResults BuildProject(Project project, bool skipInDevelopment)
Parameters
project
skipInDevelopment
Returns
DisplayLanguageSelector(Project)
Display a dialog where the user selects the language of a project
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
ILifetimeScope GetProjectScope(string projectPath)
Parameters
projectPath
Returns
ILifetimeScope
GetSpecialFolder(Project, SpecialFolders)
Get the location of a specific special folder as defined by the enum
Declaration
string GetSpecialFolder(Project project, SpecialFolders folder)
Parameters
project
folder
The special folder to get.
Returns
The full path to the folder.
GetTestNames(Project)
Gets a list of WebAii test names in the project.
LogMessage(string, bool)
Log a message to the log.
OnProjectDirtied(string)
Notify the orchestrator that the project has changed
Declaration
void OnProjectDirtied(string projectPath)
Parameters
projectPath
PrepareToExecuteTest(Test, bool)
Prompts the user to save a list of dirty files and saves the ones they want to save
PromptAndSaveFiles(object)
Prompt the user if they would like to save a list of files
RemoveProjectReference(Project, string)
Remove a project reference to a certain assembly
SetHostStatus(string)
Set the host status (if it has one)
Declaration
void SetHostStatus(string text)
Parameters
text
The status text
ShowTestCodeFile(Test, IStepViewModel)
Show the code file for the passed in test
Declaration
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
UpdateCodedStepContent(AutomationStep)
Declaration
void UpdateCodedStepContent(AutomationStep automationStep)
Parameters
automationStep
Events
ProjectClosed
Project closed
Declaration
event EventHandler<ProjectClosedEventArg> ProjectClosed
Event Value
ProjectClosing
Project closed
Declaration
event EventHandler<ProjectClosedEventArg> ProjectClosing
Event Value
ProjectCreated
Project created
Declaration
event EventHandler<ProjectEventArgs> ProjectCreated
Event Value
ProjectOpened
Project openned
Declaration
event EventHandler<ProjectEventArgs> ProjectOpened
Event Value
ProjectRenamed
Project Renamed
Declaration
event EventHandler<RenameEventArg> ProjectRenamed
Event Value
ProjectSaved
Project is saved
Declaration
event EventHandler<ProjectEventArgs> ProjectSaved
Event Value
ProjectSelected
Project is selected in a (for multi-project systems)
Declaration
event EventHandler<ProjectEventArgs> ProjectSelected
Event Value
TestClosed
The test has been closed
Declaration
event EventHandler<TestEventArg> TestClosed
Event Value
TestSaved
The test was saved
Declaration
event EventHandler<TestEventArg> TestSaved
Event Value
TestSelected
A Test is selected
Declaration
event EventHandler<TestEventArg> TestSelected
Event Value