Beispiel #1
0
        public void ThenTheImageRatingIsGenerated()
        {
            //load the result
            var fileWarning = FileWarning.GetFileWarning_File(ExhibitId, FileId);

            //Assert
            Assert.AreEqual(HandlerOutcome, WorkItemBase.ExecutionOutcome.Succeeded);
            Assert.AreEqual(fileWarning, null);
        }
        public void ThenNoThumbnailIsGenerated()
        {
            //load the result
            var metadata    = ImageMetadata.GetImageMetadata(ExhibitId, FileId, true, true);
            var fileWarning = FileWarning.GetFileWarning_File(ExhibitId, FileId);

            //Assert
            Assert.AreEqual(HandlerOutcome, WorkItemBase.ExecutionOutcome.Succeeded);
            Assert.AreNotEqual(metadata, null);
            Assert.AreEqual(metadata.Thumbnail, null);
            Assert.AreNotEqual(fileWarning, null);
            Assert.AreEqual(fileWarning.First().FileWarningType, FileWarningType.ImageFormatNotRecognised.ToString());
        }