Make AddAndSelectPrinter an extension method

This commit is contained in:
John Lewin 2017-06-04 09:01:56 -07:00
parent f342460a84
commit 2233529a68
5 changed files with 13 additions and 13 deletions

View file

@ -194,7 +194,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
var config = TestAutomationConfig.Load();
// Create the printer
MatterControlUtilities.AddAndSelectPrinter(testRunner, make, model);
testRunner.AddAndSelectPrinter(make, model);
var emulator = new Emulator();
@ -265,7 +265,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.WaitForReloadAll(() => testRunner.ClickByName("Yes Button", 5));
}
public static void AddAndSelectPrinter(AutomationRunner testRunner, string make, string model)
public static void AddAndSelectPrinter(this AutomationRunner testRunner, string make, string model)
{
if (!testRunner.WaitForName("Select Make", 1))
{