private static async Task <ProjectModelBase> AddAutomationTestFolderAsync(ProjectModelBase locationForTest, UIAutomationTestCreationOptions creationOptions)
 {
     return(await locationForTest.AddFolderAsync(creationOptions.TestFolderName));
 }
        internal static async Task <IEnumerable <FileModel> > InstantiateAsync(ProjectModelBase selectedProjectNode, UIAutomationTestCreationOptions automationTestOptions)
        {
            var testFolder = await AddAutomationTestFolderAsync(selectedProjectNode, automationTestOptions);

            return(await Task.WhenAll(
                       AddAutomationTestClassAsync(testFolder, automationTestOptions),
                       AddAutomationPageClassAsync(testFolder, automationTestOptions),
                       AddAutomationPageElementMapClassAsync(testFolder, automationTestOptions),
                       AddAutomationPageValidatorClassAsync(testFolder, automationTestOptions)));
        }
        private static async Task <FileModel> AddAutomationTestClassAsync(ProjectModelBase testFolder, UIAutomationTestCreationOptions automationTestOptions)
        {
            var unitTestClass = new TestTemplate(testFolder, automationTestOptions);

            return(await testFolder.AddFileAsync($"{automationTestOptions.TestClassName}.cs", unitTestClass.TransformText()));
        }