Esempio n. 1
0
        public void TearDown()
        {
            var libraryId = new Guid(TestLibraryId);
            var library   = LibrariesMethods.GetDocumentLibrary(libraryId);

            if (library != null)
            {
                LibrariesMethods.DeleteDocumentLibrary(libraryId);
            }
        }
Esempio n. 2
0
        public void GetDocumentLibraryTest()
        {
            Guid   newDocumentLibraryId = new Guid(TestLibraryId);
            string expectedTitle        = TestLibraryTitle;

            LibrariesMethods.CreateDocumentLibrary(newDocumentLibraryId, expectedTitle);

            var documentLibrary = LibrariesMethods.GetDocumentLibrary(newDocumentLibraryId);

            Assert.IsNotNull(documentLibrary);
            Assert.AreEqual <string>(expectedTitle, documentLibrary.Title);
        }
Esempio n. 3
0
        public void DeleteDocumentLibraryNativeTestDevGuide()
        {
            Guid   newDocumentLibraryId = new Guid(TestLibraryId);
            string expectedTitle        = "Test Library";

            LibrariesMethods.CreateDocumentLibrary(newDocumentLibraryId, expectedTitle);

            int initialDocumentLibrariesCount = LibrariesMethods.GetAllDocumentLibraries().Count;

            LibrariesMethods.DeleteDocumentLibrary(newDocumentLibraryId);

            int finalDocumentLibrariesCount = LibrariesMethods.GetAllDocumentLibraries().Count;

            Assert.AreEqual(initialDocumentLibrariesCount - 1, finalDocumentLibrariesCount);
        }
Esempio n. 4
0
        public void ModifyDocumentLibraryNativeTestDevGuide()
        {
            Guid   newDocumentLibraryId = new Guid(TestLibraryId);
            string expectedTitle        = TestLibraryTitle;

            LibrariesMethods.CreateDocumentLibrary(newDocumentLibraryId, expectedTitle);

            string newTitle = "Dev Guide New title";

            LibrariesMethods.ModifyDocumentLibrary(newDocumentLibraryId, newTitle);

            var modifiedDocumentLibrary = LibrariesMethods.GetDocumentLibrary(newDocumentLibraryId);

            Assert.AreEqual <string>(newTitle, modifiedDocumentLibrary.Title);
        }