public void YotiAttributeValue_JpegBase64Uri()
        {
            byte[] jpegBytes          = Conversion.UtfToBytes("jpegData");
            var    yotiAttributeValue = new YotiAttributeValue(
                TypeEnum.Jpeg,
                jpegBytes);
            var yotiAttribute = new YotiImageAttribute <Image>("selfie", yotiAttributeValue);

            string expectedString = String.Format("data:image/jpeg;base64,{0}", Conversion.BytesToBase64(jpegBytes));

            Assert.AreEqual(expectedString, yotiAttribute.GetBase64URI());
        }
        public void YotiAttribute_GetImageValue()
        {
            byte[] imageBytes = Conversion.UtfToBytes("ImageValue");

            var yotiAttributeValue = new YotiAttributeValue(TypeEnum.Jpeg, imageBytes);
            var yotiAttribute      = new YotiImageAttribute <Image>("selfie", yotiAttributeValue);

            var expectedImage = new Image
            {
                Base64URI = "data:image/jpeg;base64," + Conversion.BytesToBase64(imageBytes),
                Data      = imageBytes,
                Type      = TypeEnum.Jpeg
            };

            Image actualImage = yotiAttribute.GetImage();

            Assert.IsTrue(new ImageComparer().Equals(expectedImage, actualImage));
        }