Exemplo n.º 1
0
        public void UpdatePrivateList_EmptyPropertyList_Failure()
        {
            ConnectionPropertyList oProps = new ConnectionPropertyList();
            var res = PrivateList.UpdatePrivateList(_mockServer, "Object", oProps, "ownerid");

            Assert.IsFalse(res.Success, "Updating private list via static method did not fail with empty property list");
        }
        public void UpdatePrivateList_InvalidObjectIdAndOwnerObjectId_Failure()
        {
            ConnectionPropertyList oProps = new ConnectionPropertyList();

            oProps.Add("blah", "blah");
            var res = PrivateList.UpdatePrivateList(_connectionServer, "Object", oProps, "ownerId");

            Assert.IsFalse(res.Success, "Updating private list via static method did not fail with invalid owner and objectIds ");
        }
Exemplo n.º 3
0
        public void UpdatePrivateList_NullPropertyList_Failure()
        {
            var res = PrivateList.UpdatePrivateList(_mockServer, "Object", null, "ownerid");

            Assert.IsFalse(res.Success, "Updating private list via static method did not fail with null property list");
        }
Exemplo n.º 4
0
        public void UpdatePrivateList_NullConnectionServer_Failure()
        {
            var res = PrivateList.UpdatePrivateList(null, "Object", null, "ownerId");

            Assert.IsFalse(res.Success, "Updating private list via static method did not fail with null ConnectionServer");
        }