예제 #1
0
        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);
        }
예제 #2
0
 public ServicesOpenSocketSendDataScenario(
     WiFiDirectTestController senderWFDController,
     WiFiDirectTestController receiverWFDController,
     ServicesOpenSocketSendDataParameters socketDataParameters
     )
 {
     this.senderWFDController   = senderWFDController;
     this.receiverWFDController = receiverWFDController;
     this.socketDataParameters  = socketDataParameters;
 }