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)); }
public void DeleteMediaContentSuccessShouldSucceed() { DocScanClient docScanClient = SetupDocScanClientResponse(HttpStatusCode.OK); docScanClient.DeleteMediaContent("some-session-id", "some-media-id"); }