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"); }
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"); }
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"); }