Esempio n. 1
0
        public void ConvertSdkUnrecognizedKnowledgeBasedAuthenticationStatusToApiUnknownValue()
        {
            apiKnowledgeBasedAuthenticationStatus1 = "NEWLY_ADDED_KBA_STATUS";
            var unrecognizedKnowledgeBasedAuthenticationStatus = KnowledgeBasedAuthenticationStatus.valueOf(apiKnowledgeBasedAuthenticationStatus1);
            var actualApiValue = new KnowledgeBasedAuthenticationStatusConverter(unrecognizedKnowledgeBasedAuthenticationStatus).ToAPIKnowledgeBasedAuthenticationStatus();

            Assert.AreEqual(apiKnowledgeBasedAuthenticationStatus1, actualApiValue);
        }
Esempio n. 2
0
        public void whenBuildingKnowledgeBasedAuthenticationStatusWithUnknownAPIValueThenUNRECOGNIZEDKnowledgeBasedAuthenticationStatusIsReturned()
        {
            string expectedSDKValue = "UNRECOGNIZED";


            KnowledgeBasedAuthenticationStatus classUnderTest = KnowledgeBasedAuthenticationStatus.valueOf("ThisKnowledgeBasedAuthenticationStatusDoesNotExistINSDK");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
Esempio n. 3
0
        public void whenBuildingKnowledgeBasedAuthenticationStatusWithAPIValuePASSEDThenPASSEDKnowledgeBasedAuthenticationStatusIsReturned()
        {
            string expectedSDKValue = "PASSED";


            KnowledgeBasedAuthenticationStatus classUnderTest = KnowledgeBasedAuthenticationStatus.valueOf("PASSED");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }