CMIS-WS .NET tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12874 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Logneon
2009-01-23 10:30:06 +00:00
parent dedef025d6
commit eaccbb3bf9
95 changed files with 63712 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using NUnit.Framework;
using System.Collections.Generic;
namespace WcfCmisWSTests {
///
/// author: Dmitry Velichkevich
///
[TestFixture]
public class MultiFilingServiceClientTest {
[Test]
public void testParentAdding() {
KeyValuePair<string, KeyValuePair<string, string[]>> multifilledDocument =
AbstractCmisServicesHelper.createMultiFilledDocument(
AbstractCmisServicesHelper.getAndAssertRootFolder());
AbstractCmisServicesHelper.assertDocumentParents(multifilledDocument.Value.Key,
multifilledDocument.Value.Value);
AbstractCmisServicesHelper.deleteAndAssertDocument(multifilledDocument.Value.Key);
AbstractCmisServicesHelper.deleteAndAssertFolder(multifilledDocument.Key, false);
}
[Test]
public void testParentAddingAndRemoving() {
KeyValuePair<string, KeyValuePair<string, string[]>> multifilledDocument =
AbstractCmisServicesHelper.createMultiFilledDocument(
AbstractCmisServicesHelper.getAndAssertRootFolder());
AbstractCmisServicesHelper.createMultiFilingServiceClient().removeObjectFromFolder(
AbstractCmisServicesHelper.getAndAssertRepositoryId(),
multifilledDocument.Value.Key, multifilledDocument.Key);
AbstractCmisServicesHelper.assertDocumentParents(multifilledDocument.Value.Key,
new string[] {AbstractCmisServicesHelper.getAndAssertRootFolder()});
AbstractCmisServicesHelper.deleteAndAssertFolder(multifilledDocument.Key, false);
AbstractCmisServicesHelper.deleteAndAssertDocument(multifilledDocument.Value.Key);
}
}
}