public void ListCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

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

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");
        }
示例#2
0
        public void ListCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

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

            sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary");
        }
        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);
        }
示例#5
0
        public void ListCreationSetsContext()
        {
            var sut = new ListGivens(_ctx);

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

            Assert.AreEqual("TestDocumentLibrary", _ctx.LastListTitle);
        }
        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);
        }
示例#8
0
        public void DocumentSetCreationIsIdempotent()
        {
            var sut = new ListGivens(_ctx);

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

            sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB");
        }
示例#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");
 }