public void ConvertAPIToAPI()
        {
            string binding = null;
            apiFieldSubtype1 = FieldSubtype.CUSTOMFIELD;
            apiFieldSubtype2 = new FieldStyleAndSubTypeConverter(apiFieldSubtype1, binding).ToAPIFieldSubtype();

            Assert.IsNotNull(apiFieldSubtype2);
            Assert.AreEqual(apiFieldSubtype2, apiFieldSubtype1);
        }
        public void ConvertAPIToAPI()
        {
            string binding = null;

            apiFieldSubtype1 = FieldSubtype.CUSTOMFIELD;
            apiFieldSubtype2 = new FieldStyleAndSubTypeConverter(apiFieldSubtype1, binding).ToAPIFieldSubtype();

            Assert.IsNotNull(apiFieldSubtype2);
            Assert.AreEqual(apiFieldSubtype2, apiFieldSubtype1);
        }
Ejemplo n.º 3
0
        private static SignatureStyle FromAPIFieldSubType(Silanis.ESL.API.FieldSubtype subtype)
        {
            switch (subtype)
            {
            case Silanis.ESL.API.FieldSubtype.INITIALS:
                return(SignatureStyle.INITIALS);

            case Silanis.ESL.API.FieldSubtype.CAPTURE:
                return(SignatureStyle.HAND_DRAWN);

            case Silanis.ESL.API.FieldSubtype.FULLNAME:
                return(SignatureStyle.FULL_NAME);

            default:
                throw new EslException("FieldSubtype unknown: " + subtype);
            }
        }