示例#1
0
 private Size GetSize()
 {
     using (var context = UploadImageContextMaker.MockImageContext(TestConstants.TestFileName))
     {
         var process = new ImageCompressionProcesser();
         return(process.GetImageSize(context));
     }
 }
        private UploadImageContext GetSaveResult()
        {
            var context = UploadImageContextMaker.MockImageContext(TestConstants.TestFileName);
            var process = new ImageSourceProcesser();
            int result  = process.Process(context);

            Assert.AreEqual(result, ImageErrorMessage.ImageUploadSucess);
            return(context);
        }