public void getList() { TGetList_Return[] CGroups_out = customerGroupService.getList(); // test if transfer was successful Assert.AreEqual(2, CGroups_out.Length, "getList result count"); TGetList_Return CGroup_out1 = CGroups_out[0]; if (CGroup_out1.Error == null) { Console.WriteLine("successfully transfered CustomerGroup: " + CGroup_out1.Alias); Assert.AreEqual("NewCustomer", CGroup_out1.Alias, "test Param 1 NewCustomer"); } else { Console.WriteLine("an error occured (Epages Error):\n" + CGroup_out1.Error.Message); Assert.IsNotNull(CGroup_out1.Error, "getList: no error"); } TGetList_Return CGroup_out2 = CGroups_out[1]; if (CGroup_out2.Error == null) { Console.WriteLine("successfully transfered CustomerGroup: " + CGroup_out2.Alias); Assert.AreEqual("RegularCustomer", CGroup_out2.Alias, "test Param 2 RegularCustomer"); } else { Console.WriteLine("an error occured (Epages Error):\n" + CGroup_out2.Error.Message); Assert.IsNotNull(CGroup_out2.Error, "getList: no error"); } }
public void getList() { TGetList_Return[] ShippingMethod_out = shippingMethodService.getList(); // test if transfer was successful Assert.AreEqual(3, ShippingMethod_out.GetLength(0), "getList result count"); TGetList_Return shippingMethod0 = ShippingMethod_out[0]; Assert.AreEqual(shippingMethod0.Path, "/Shops/DemoShop/ShippingMethods/Post", "shipping method: Post"); TGetList_Return shippingMethod1 = ShippingMethod_out[1]; Assert.AreEqual(shippingMethod1.Path, "/Shops/DemoShop/ShippingMethods/Express", "shipping method: Express"); TGetList_Return shippingMethod2 = ShippingMethod_out[2]; Assert.AreEqual(shippingMethod2.Path, "/Shops/DemoShop/ShippingMethods/PickupByCustomer", "shipping method: PickupByCustomer"); }