Esempio n. 1
0
        public void DeviceFarmCreateProject()
        {
            #region createproject-example-1470862210860

            var response = client.CreateProject(new CreateProjectRequest
            {
                Name = "MyProject" // A project in Device Farm is a workspace that contains test runs. A run is a test of a single app against one or more devices.
            });

            Project project = response.Project;

            #endregion
        }
Esempio n. 2
0
 private Amazon.DeviceFarm.Model.CreateProjectResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.CreateProjectRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "CreateProject");
     try
     {
         #if DESKTOP
         return(client.CreateProject(request));
         #elif CORECLR
         return(client.CreateProjectAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }