Ejemplo n.º 1
0
        public void GetGreetings_EmptyObjectId_Failure()
        {
            List <Greeting> oGreetings;
            var             res = Greeting.GetGreetings(_mockServer, "", out oGreetings);

            Assert.IsFalse(res.Success, "Empty call handler ObjectId param should fail");
        }
Ejemplo n.º 2
0
        public void GetGreetings_NullConnectionServer_Failure()
        {
            List <Greeting> oGreetings;

            //Static calls for GetGreetings
            WebCallResult res = Greeting.GetGreetings(null, "objectid", out oGreetings);

            Assert.IsFalse(res.Success, "Null ConnecitonObject param should fail");
        }
Ejemplo n.º 3
0
        public void StaticCallFailures_GetGreetings()
        {
            List <Greeting> oGreetings;

            var res = Greeting.GetGreetings(_connectionServer, "aaa", out oGreetings);

            Assert.IsFalse(res.Success, "Invalid call handler ObjectId should fail");

            res = Greeting.GetGreetings(_connectionServer, _callHandler.ObjectId, out oGreetings);
            Assert.IsTrue(res.Success, "Failed to fetch greetings in GetGreetings_Failure:" + res);
            Assert.IsNotNull(oGreetings, "Null greetings colleciton returned");
            Assert.IsTrue(oGreetings.Count > 1, "Empty list of greetings returned");
        }