/// <summary> /// use stub to find Orders via web services /// </summary> /// <param name="parameters">search parameters, TFind_Input</param> /// <returns>found Orders, Array of paths</returns> public string[] find(TFind_Input parameters) { string[] paths = stub.find(parameters); Console.WriteLine("found entries: " + paths.Length); return(paths); }
/// <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. search for specific email and expect the previously created Product /// </summary> public void find() { TFind_Input parameters = new TFind_Input(); parameters.Alias = Product_in.Alias; string[] ProductPaths = serviceClient.find(parameters); // test if find was successful Assert.AreEqual(1, ProductPaths.Length, "find result set"); Assert.AreEqual(path + alias, ProductPaths[0], "product path"); }
/// <summary> /// test find method. search for specific email and expect the previously created customer /// </summary> public void find() { TFind_Input parameters = new TFind_Input(); parameters.EMail = customer_in.BillingAddress.EMail; string[] customerPaths = serviceClient.find(parameters); // test if find was successful Assert.AreEqual(1, customerPaths.Length, "find result set"); Assert.AreEqual(path + alias, customerPaths[0], "customer path"); }
/// <summary> /// test find method. search for specific email and expect the previously created Order /// </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 = serviceClient.find(parameters); // test if find was successful Assert.AreEqual(1, OrderPaths.Length, "find result set"); Assert.AreEqual(path + alias, OrderPaths[0], "Order path"); }
/// <summary> /// test find method. search for specific email and expect the previously created Order /// </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"); }