예제 #1
0
        public void DeleteMediaContentShouldThrowForNonSuccessStatusCode(HttpStatusCode httpStatusCode)
        {
            DocScanClient docScanClient = SetupDocScanClientResponse(httpStatusCode);

            var aggregateException = Assert.ThrowsException <AggregateException>(() =>
            {
                docScanClient.DeleteMediaContent("someSessionId", "someMediaId");
            });

            Assert.IsTrue(TestTools.Exceptions.IsExceptionInAggregateException <DocScanException>(aggregateException));
        }
예제 #2
0
        public void DeleteMediaContentSuccessShouldSucceed()
        {
            DocScanClient docScanClient = SetupDocScanClientResponse(HttpStatusCode.OK);

            docScanClient.DeleteMediaContent("some-session-id", "some-media-id");
        }