[Export("setFormsPickerValue:")] // notice the colon at the end of the method name
        public NSString SetFormsPickerValue(NSString parameters)
        {
            var idAndValueAsString = (string)parameters;

            var myParams = idAndValueAsString.Split('|');

            if (myParams.Length != 2)
            {
                throw new Exception($"SelectPickerValue: Could not parse '{parameters}' into an Id and Value");
            }

            string returnValue = UITestBackdoorMethods.SetFormsPickerValue(myParams[0], myParams[1]);

            return(new NSString(returnValue));
        }
        [Export("setFormsDatePickerValue:")] // notice the colon at the end of the method name
        public NSString SetFormsDatePickerValue(NSString parameters)
        {
            var idAndValueAsString = (string)parameters;

            var myParams = idAndValueAsString.Split('|');

            if (myParams.Length != 2)
            {
                throw new Exception($"SetDatePickerValue: Could not parse '{parameters}' into an Id and Value");
            }

            // Parse the parameter from a string to a DateTime
            DateTime value       = DateTime.Parse(myParams[1]);
            string   returnValue = UITestBackdoorMethods.SetFormsDatePickerValue(myParams[0], value);

            return(new NSString(returnValue));
        }
Beispiel #3
0
 public void SetFormsDatePickerValue(string automationId, DateTime value)
 {
     UITestBackdoorMethods.SetFormsDatePickerValue(automationId, value);
 }
Beispiel #4
0
 public void SetFormsPickerValue(string automationId, string value)
 {
     UITestBackdoorMethods.SetFormsPickerValue(automationId, value);
 }
Beispiel #5
0
 public void SetFormsPickerIndex(string automationId, int value)
 {
     UITestBackdoorMethods.SetFormsPickerIndex(automationId, value);
 }