public static void Create (NewFileOptions options, Action<string> takeScreenshot = null) { var ctrl = new NewFileController (takeScreenshot); ctrl.Open (); ctrl.ConfigureAddToProject (!string.IsNullOrEmpty (options.AddToProjectName), options.AddToProjectName); ctrl.SelectFileTypeCategory (options.FileTypeCategory, options.FileTypeCategoryRoot); ctrl.SelectFileType (options.FileType); ctrl.EnterFileName (options.FileName); ctrl.Done (); }
public static void Create(NewFileOptions options, Action <string> takeScreenshot = null) { var ctrl = new NewFileController(takeScreenshot); ctrl.Open(); ctrl.ConfigureAddToProject(!string.IsNullOrEmpty(options.AddToProjectName), options.AddToProjectName); ctrl.SelectFileTypeCategory(options.FileTypeCategory, options.FileTypeCategoryRoot); ctrl.SelectFileType(options.FileType); ctrl.EnterFileName(options.FileName); ctrl.Done(); }
public static void Create (NewFileOptions options, UITestBase testContext = null) { options.PrintData (); Action<string> screenshotAction = (s) => {}; if (testContext != null) { testContext.ReproStep (string.Format ("Add a new file of type '{0}' named '{1}'", options.FileType, options.FileName), options); screenshotAction = testContext.TakeScreenShot; } var ctrl = new NewFileController (screenshotAction); ctrl.Open (); ctrl.ConfigureAddToProject (!string.IsNullOrEmpty (options.AddToProjectName), options.AddToProjectName); ctrl.SelectFileTypeCategory (options.FileTypeCategory, options.FileTypeCategoryRoot); ctrl.SelectFileType (options.FileType); ctrl.EnterFileName (options.FileName); ctrl.Done (); }
public static void Create(NewFileOptions options, UITestBase testContext = null) { options.PrintData(); Action <string> screenshotAction = (s) => {}; if (testContext != null) { testContext.ReproStep(string.Format("Add a new file of type '{0}' named '{1}'", options.FileType, options.FileName), options); screenshotAction = testContext.TakeScreenShot; } var ctrl = new NewFileController(screenshotAction); ctrl.Open(); ctrl.ConfigureAddToProject(!string.IsNullOrEmpty(options.AddToProjectName), options.AddToProjectName); ctrl.SelectFileTypeCategory(options.FileTypeCategory, options.FileTypeCategoryRoot); ctrl.SelectFileType(options.FileType); ctrl.EnterFileName(options.FileName); ctrl.Done(); }