public void TestCreateActivityWithIncorrectEmployee()
{
string xml =
"<activity xmlns=\"http://ns.opensocial.org/2008/opensocial\"><postedTime>1304533194580</postedTime><title>This is Profiles test activity from ChatterSqlProceduresTest</title></activity>";
var xmlReader = XmlTextReader.Create(new System.IO.StringReader(xml));
SqlXml messageBlob = new SqlXml(xmlReader);
try
{
//ChatterSqlProcedures.CreateActivity(_url, _username, _password, _token, "1221212", messageBlob, _pmid, _title, _body);
Assert.Fail("CreateActivity method should throw and exception if user is not found by employee id");
}
catch (Exception ex)
{
Assert.AreEqual("Object not found, Salesforce.User, keys:1221212", ex.Message);
}
}