[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)); }
public void SetFormsDatePickerValue(string automationId, DateTime value) { UITestBackdoorMethods.SetFormsDatePickerValue(automationId, value); }