Exemple #1
0
        public void TestValidLogin()
        {
            var key    = new VerifyId.VerificationService.Authenticate();
            var apiKey = key.Excecute(_username, _password);

            Assert.IsTrue(!string.IsNullOrEmpty(apiKey.Result.API_KEY));
        }
Exemple #2
0
        public void TestInvalidLogin()
        {
            var key    = new VerifyId.VerificationService.Authenticate();
            var apiKey = key.Excecute("WrongUsername", "WrongPassword");

            Assert.IsTrue(apiKey.Status.Equals("Failure"));
        }
Exemple #3
0
        public void TestResponseForMyCredits()
        {
            var service  = new VerifyId.VerificationService.Authenticate();
            var apikey   = service.Excecute(GetCredentials.Username, GetCredentials.Password);
            var mycredit = new VerifyId.VerificationService.MyCredits();
            var result   = mycredit.GetAvailableCredits(apikey.Result.API_KEY);

            Assert.IsTrue(result.Result.credits > 1);
        }