mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user