/// <summary> /// test find method. search for customer Order /// </summary> public void findCustomerOrder() { TFind_Input parameters = new TFind_Input(); parameters.Customer = Order_in.Customer; string[] OrderPaths = orderService.find(parameters); // test if find was successful Assert.GreaterOrEqual(OrderPaths.Length, 1, "find result set"); }
/// <summary> /// test find method /// </summary> public void find() { TFind_Input parameters = new TFind_Input(); parameters.Alias = Order_in.Alias; parameters.DateFrom = new DateTime(2006, 1, 1, 0, 0, 0, DateTimeKind.Local); parameters.DateTo = new DateTime(2006, 1, 3, 0, 0, 0, DateTimeKind.Local); string[] OrderPaths = orderService.find(parameters); // test if find was successful Assert.AreEqual(1, OrderPaths.Length, "find result set"); Assert.AreEqual(path, OrderPaths[0], "Order path"); }
/// <remarks/> public void findAsync(TFind_Input SearchParameters, object userState) { if ((this.findOperationCompleted == null)) { this.findOperationCompleted = new System.Threading.SendOrPostCallback(this.OnfindOperationCompleted); } this.InvokeAsync("find", new object[] { SearchParameters}, this.findOperationCompleted, userState); }
/// <remarks/> public void findAsync(TFind_Input SearchParameters) { this.findAsync(SearchParameters, null); }
/// <remarks/> public System.IAsyncResult Beginfind(TFind_Input SearchParameters, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("find", new object[] { SearchParameters}, callback, asyncState); }
public string[] find(TFind_Input SearchParameters) { object[] results = this.Invoke("find", new object[] { SearchParameters}); return ((string[])(results[0])); }