private static async Task <ProjectModelBase> GetUnitTestProjectLocationAsync(ProjectModelBase locationForTest, UnitTestCreationDetails creationOptions, bool shouldCreateParentFolder) { if (shouldCreateParentFolder) { return(await locationForTest.AddFolderAsync(creationOptions.UnitTestFolderName)); } return(locationForTest); }
private static async Task <FileModel> AddUnitTestClassAsync(ProjectModelBase unitTestProjectLocation, UnitTestCreationDetails unitTestCreationOptions) { var unitTestClass = new TestClassTemplate(unitTestProjectLocation, unitTestCreationOptions); return(await unitTestProjectLocation.AddFileAsync(unitTestCreationOptions.UnitTestClassFileName, unitTestClass.TransformText())); }