patch a test

master
UbitUmarov 2020-02-14 20:17:52 +00:00
parent 59414467e2
commit e155ab7814
1 changed files with 16 additions and 1 deletions

View File

@ -121,7 +121,22 @@ namespace OpenSim.Tests.Common
return true;
}
public bool MoveItem(string id, string newParent) { throw new NotImplementedException(); }
public bool MoveItem(string id, string newParent)
{
UUID uid = new UUID(id);
UUID upid = new UUID(newParent);
m_allItems[uid].parentFolderID = upid;
return true;
}
public bool MoveItems(string[] ids, string[] newParents)
{
if(ids.Length != newParents.Length)
return false;
for(int i =0; i< ids.Length;++i)
MoveItem(ids[i], newParents[i]);
return true;
}
public bool MoveFolder(string id, string newParent)
{