public void TestInitialize()
        {
            // create a doc lib
            var listCreator = new ListGivens(_ctx);

            listCreator.GivenThereIsListCalled(Microsoft.SharePoint.Client.ListTemplateType.DocumentLibrary, "testdoclib1");
        }
        public void ListCreationSetsContext()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");

            Assert.AreEqual("TestDocumentLibrary", _ctx.LastListTitle);
        }
        public void ListCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");
        }
Beispiel #4
0
        public void ListCreationSetsContext()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");

            Assert.AreEqual("TestDocumentLibrary", _ctx.LastListTitle);
        }
Beispiel #5
0
        public void ListCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");
        }
        public void DocumentSetCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "BDLBS_2");
            sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB");

            sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB");
        }
Beispiel #7
0
        public void DocumentSetCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "BDLBS_2");
            sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB");

            sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB");
        }
        public void ListCreationThrowsWhenListAlreadyExistsButTypeIsWrong()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.GenericList, "TestGenericList");

            bool thrown = false;
            try
            {
                sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestGenericList");
            }
            catch
            {
                thrown = true;
            }

            Assert.IsTrue(thrown);
        }
Beispiel #9
0
        public void ListCreationThrowsWhenListAlreadyExistsButTypeIsWrong()
        {
            var sut = new ListGivens(_ctx);

            sut.GivenThereIsListCalled(ListTemplateType.GenericList, "TestGenericList");

            bool thrown = false;

            try
            {
                sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestGenericList");
            }
            catch
            {
                thrown = true;
            }

            Assert.IsTrue(thrown);
        }
 public void TestInitialize()
 {
     // create a doc lib
     var listCreator = new ListGivens(_ctx);
     listCreator.GivenThereIsListCalled(Microsoft.SharePoint.Client.ListTemplateType.DocumentLibrary, "testdoclib1");
 }