Пример #1
0
        /// <summary>
        /// test find method. search for specific name and expect the previously created user
        /// </summary>
        public void find()
        {
            type_Find_Input parameters = new type_Find_Input();

            parameters.Name = "Klaus";
            string[] userPaths = serviceClient.find(parameters);

            // test if find was successful
            Assert.AreEqual(1, userPaths.Length, "find result set");
            Assert.AreEqual("/Shops/DemoShop/" + path + alias, userPaths[0], "user path");
        }
Пример #2
0
        /// <summary>
        /// test find method. search for specific name and expect the previously created user
        /// </summary>
        public void find()
        {
            type_Find_Input parameters = new type_Find_Input();

            parameters.Name = "Klaus";
            string[] userPaths = serviceClient.find(parameters);

            // test if find was successful
            Assert.AreEqual(1, userPaths.Length, "find result set");
            Assert.That(userPaths[0].Contains(path + alias), "user path: " + userPaths[0]);
        }