public SignatureStyle ToSDKSignatureStyle()
        {
            if (null != sdkSignatureStyle)
            {
                return(sdkSignatureStyle);
            }

            return(SignatureStyle.valueOf(apiSubtype));
        }
        public void whenBuildingSignatureStyleWithUnknownAPIValueThenUNRECOGNIZEDSignatureStyleIsReturned()
        {
            string expectedSDKValue = "UNRECOGNIZED";


            OneSpanSign.Sdk.SignatureStyle classUnderTest = OneSpanSign.Sdk.SignatureStyle.valueOf("ThisSignatureStyleDoesNotExistINSDK");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
        public void whenBuildingSignatureStyleWithAPIValueFULLNAMEThenREGULARSignatureStyleIsReturned()
        {
            string expectedSDKValue = "FULL_NAME";


            OneSpanSign.Sdk.SignatureStyle classUnderTest = OneSpanSign.Sdk.SignatureStyle.valueOf("FULLNAME");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
        public void whenBuildingSignatureStyleWithAPIValueCAPTUREThenHAND_DRAWNSignatureStyleIsReturned()
        {
            string expectedSDKValue = "HAND_DRAWN";


            OneSpanSign.Sdk.SignatureStyle classUnderTest = OneSpanSign.Sdk.SignatureStyle.valueOf("CAPTURE");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
        public void whenBuildingSignatureStyleWithAPIValueINITIALSThenINITIALSSignatureStyleIsReturned()
        {
            string expectedSDKValue = "INITIALS";


            OneSpanSign.Sdk.SignatureStyle classUnderTest = OneSpanSign.Sdk.SignatureStyle.valueOf("INITIALS");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
 public SignatureStyleConverter(string apiSubtype)
 {
     this.apiSubtype        = apiSubtype;
     this.sdkSignatureStyle = null;
 }