ServicesOpenSocketSendDataScenarioResult ExecuteOpenSocketSendDataScenario(ServicesOpenSocketSendDataParameters dataParams, bool localInitiate = true) { ServicesOpenSocketSendDataScenario scenario; if (localInitiate) { scenario = new ServicesOpenSocketSendDataScenario( localWFDController, remoteWFDController, dataParams ); } else { scenario = new ServicesOpenSocketSendDataScenario( remoteWFDController, localWFDController, dataParams ); } ServicesOpenSocketSendDataScenarioResult scenarioResult = scenario.Execute(); Verify.IsTrue(scenarioResult.ScenarioSucceeded); return(scenarioResult); }
public ServicesOpenSocketSendDataScenario( WiFiDirectTestController senderWFDController, WiFiDirectTestController receiverWFDController, ServicesOpenSocketSendDataParameters socketDataParameters ) { this.senderWFDController = senderWFDController; this.receiverWFDController = receiverWFDController; this.socketDataParameters = socketDataParameters; }