void ExecutePairingScenario(PairingScenarioType pairingScenarioType, DOT11_WPS_CONFIG_METHOD configMethod) { PairingScenario pairingScenario = new PairingScenario(localWFDController, remoteWFDController, pairingScenarioType, configMethod, false, true); PairingScenarioResult pairingScenarioResult = pairingScenario.Execute(); Verify.IsTrue(pairingScenarioResult.ScenarioSucceeded); }
private DOT11_WPS_CONFIG_METHOD GetAcceptConfigMethod() { DOT11_WPS_CONFIG_METHOD acceptConfigMethod = DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_PUSHBUTTON; switch (configMethod) { case DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_DISPLAY: acceptConfigMethod = DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_KEYPAD; break; case DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_KEYPAD: acceptConfigMethod = DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_DISPLAY; break; } return(acceptConfigMethod); }
public PairingScenario( WiFiDirectTestController localWFDController, WiFiDirectTestController remoteWFDController, PairingScenarioType pairingScenarioType, DOT11_WPS_CONFIG_METHOD configMethod, bool isPersistent, bool runDataPathValidation ) { this.succeeded = false; this.localWFDController = localWFDController; this.remoteWFDController = remoteWFDController; this.pairingScenarioType = pairingScenarioType; if (configMethod != DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_DISPLAY && configMethod != DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_PUSHBUTTON && configMethod != DOT11_WPS_CONFIG_METHOD.DOT11_WPS_CONFIG_METHOD_KEYPAD) { throw new ArgumentException("Invalid value for configMethod. Expect pin display, pushbutton, or keypad.", "configMethod"); } this.configMethod = configMethod; this.isPersistent = isPersistent; this.runDataPathValidation = runDataPathValidation; }