Esempio n. 1
0
        public void GetNotesSlideInvalidStorage()
        {
            InvalidPropertyTestExecutor <GetNotesSlideRequest, NotesSlideResponse> testExecutor =
                new InvalidPropertyTestExecutor <GetNotesSlideRequest, NotesSlideResponse>("GetNotesSlide", "Storage");
            GetNotesSlideRequest request  = testExecutor.PrepareRequest();
            NotesSlideResponse   response = null;
            bool needAssertResponse       = false;

            try
            {
                response           = m_instance.GetNotesSlide(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
Esempio n. 2
0
        public void DeleteNotesSlideInvalidName()
        {
            InvalidPropertyTestExecutor <DeleteNotesSlideRequest, SlideResponse> testExecutor =
                new InvalidPropertyTestExecutor <DeleteNotesSlideRequest, SlideResponse>("DeleteNotesSlide", "Name");
            DeleteNotesSlideRequest request  = testExecutor.PrepareRequest();
            SlideResponse           response = null;
            bool needAssertResponse          = false;

            try
            {
                response           = m_instance.DeleteNotesSlide(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void PutLayoutSlideInvalidFolder()
        {
            InvalidPropertyTestExecutor <PutLayoutSlideRequest, LayoutSlideResponse> testExecutor =
                new InvalidPropertyTestExecutor <PutLayoutSlideRequest, LayoutSlideResponse>("PutLayoutSlide", "Folder");
            PutLayoutSlideRequest request  = testExecutor.PrepareRequest();
            LayoutSlideResponse   response = null;
            bool needAssertResponse        = false;

            try
            {
                response           = m_instance.PutLayoutSlide(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
Esempio n. 4
0
        public void GetSlidesThemeInvalidFolder()
        {
            InvalidPropertyTestExecutor <GetSlidesThemeRequest, ThemeResponse> testExecutor =
                new InvalidPropertyTestExecutor <GetSlidesThemeRequest, ThemeResponse>("GetSlidesTheme", "Folder");
            GetSlidesThemeRequest request  = testExecutor.PrepareRequest();
            ThemeResponse         response = null;
            bool needAssertResponse        = false;

            try
            {
                response           = m_instance.GetSlidesTheme(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void GetSlidesImagesInvalidName()
        {
            InvalidPropertyTestExecutor <GetSlidesImagesRequest, ImagesResponse> testExecutor =
                new InvalidPropertyTestExecutor <GetSlidesImagesRequest, ImagesResponse>("GetSlidesImages", "Name");
            GetSlidesImagesRequest request  = testExecutor.PrepareRequest();
            ImagesResponse         response = null;
            bool needAssertResponse         = false;

            try
            {
                response           = m_instance.GetSlidesImages(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
Esempio n. 6
0
        public void PostAddNotesSlideInvalidDto()
        {
            InvalidPropertyTestExecutor <PostAddNotesSlideRequest, NotesSlideResponse> testExecutor =
                new InvalidPropertyTestExecutor <PostAddNotesSlideRequest, NotesSlideResponse>("PostAddNotesSlide", "Dto");
            PostAddNotesSlideRequest request  = testExecutor.PrepareRequest();
            NotesSlideResponse       response = null;
            bool needAssertResponse           = false;

            try
            {
                response           = m_instance.PostAddNotesSlide(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
Esempio n. 7
0
        public void GetNotesSlideWithFormatInvalidStorage()
        {
            InvalidPropertyTestExecutor <GetNotesSlideWithFormatRequest, System.IO.Stream> testExecutor =
                new InvalidPropertyTestExecutor <GetNotesSlideWithFormatRequest, System.IO.Stream>("GetNotesSlideWithFormat", "Storage");
            GetNotesSlideWithFormatRequest request = testExecutor.PrepareRequest();

            System.IO.Stream response           = null;
            bool             needAssertResponse = false;

            try
            {
                response           = m_instance.GetNotesSlideWithFormat(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void PostCopyLayoutSlideFromSourcePresentationInvalidStorage()
        {
            InvalidPropertyTestExecutor <PostCopyLayoutSlideFromSourcePresentationRequest, LayoutSlideResponse> testExecutor =
                new InvalidPropertyTestExecutor <PostCopyLayoutSlideFromSourcePresentationRequest, LayoutSlideResponse>("PostCopyLayoutSlideFromSourcePresentation", "Storage");
            PostCopyLayoutSlideFromSourcePresentationRequest request = testExecutor.PrepareRequest();
            LayoutSlideResponse response = null;
            bool needAssertResponse      = false;

            try
            {
                response           = m_instance.PostCopyLayoutSlideFromSourcePresentation(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void PostSlidesSlideReplaceTextInvalidStorage()
        {
            InvalidPropertyTestExecutor <PostSlidesSlideReplaceTextRequest, SlideStringReplaceResponse> testExecutor =
                new InvalidPropertyTestExecutor <PostSlidesSlideReplaceTextRequest, SlideStringReplaceResponse>("PostSlidesSlideReplaceText", "Storage");
            PostSlidesSlideReplaceTextRequest request  = testExecutor.PrepareRequest();
            SlideStringReplaceResponse        response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.PostSlidesSlideReplaceText(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void GetSlidesSlideTextItemsInvalidWithEmpty()
        {
            InvalidPropertyTestExecutor <GetSlidesSlideTextItemsRequest, TextItemsResponse> testExecutor =
                new InvalidPropertyTestExecutor <GetSlidesSlideTextItemsRequest, TextItemsResponse>("GetSlidesSlideTextItems", "WithEmpty");
            GetSlidesSlideTextItemsRequest request = testExecutor.PrepareRequest();
            TextItemsResponse response             = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.GetSlidesSlideTextItems(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void PutSlidesSetDocumentPropertyInvalidStorage()
        {
            InvalidPropertyTestExecutor <PutSlidesSetDocumentPropertyRequest, DocumentPropertyResponse> testExecutor =
                new InvalidPropertyTestExecutor <PutSlidesSetDocumentPropertyRequest, DocumentPropertyResponse>("PutSlidesSetDocumentProperty", "Storage");
            PutSlidesSetDocumentPropertyRequest request  = testExecutor.PrepareRequest();
            DocumentPropertyResponse            response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.PutSlidesSetDocumentProperty(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void PostSlidesSetDocumentPropertiesInvalidFolder()
        {
            InvalidPropertyTestExecutor <PostSlidesSetDocumentPropertiesRequest, DocumentPropertiesResponse> testExecutor =
                new InvalidPropertyTestExecutor <PostSlidesSetDocumentPropertiesRequest, DocumentPropertiesResponse>("PostSlidesSetDocumentProperties", "Folder");
            PostSlidesSetDocumentPropertiesRequest request  = testExecutor.PrepareRequest();
            DocumentPropertiesResponse             response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.PostSlidesSetDocumentProperties(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void DeleteSlidesDocumentPropertyInvalidPropertyName()
        {
            InvalidPropertyTestExecutor <DeleteSlidesDocumentPropertyRequest, DocumentPropertiesResponse> testExecutor =
                new InvalidPropertyTestExecutor <DeleteSlidesDocumentPropertyRequest, DocumentPropertiesResponse>("DeleteSlidesDocumentProperty", "PropertyName");
            DeleteSlidesDocumentPropertyRequest request  = testExecutor.PrepareRequest();
            DocumentPropertiesResponse          response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.DeleteSlidesDocumentProperty(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
Esempio n. 14
0
        public void PostPresentationMergeInvalidName()
        {
            InvalidPropertyTestExecutor <PostPresentationMergeRequest, DocumentResponse> testExecutor =
                new InvalidPropertyTestExecutor <PostPresentationMergeRequest, DocumentResponse>("PostPresentationMerge", "Name");
            PostPresentationMergeRequest request  = testExecutor.PrepareRequest();
            DocumentResponse             response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.PostPresentationMerge(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }
        public void GetSlidesPlaceholdersInvalidSlideIndex()
        {
            InvalidPropertyTestExecutor <GetSlidesPlaceholdersRequest, PlaceholdersResponse> testExecutor =
                new InvalidPropertyTestExecutor <GetSlidesPlaceholdersRequest, PlaceholdersResponse>("GetSlidesPlaceholders", "SlideIndex");
            GetSlidesPlaceholdersRequest request  = testExecutor.PrepareRequest();
            PlaceholdersResponse         response = null;
            bool needAssertResponse = false;

            try
            {
                response           = m_instance.GetSlidesPlaceholders(request);
                needAssertResponse = true;
            }
            catch (Exception ex)
            {
                testExecutor.AssertException(ex);
            }
            if (needAssertResponse)
            {
                testExecutor.AssertResult(response);
            }
        }