Beispiel #1
0
        public void AuthLib_Auth_ReturnsError(AuthData authData, string queryString, string CPCertNumber)
        {
            AuthLib authLib = new AuthLib();

            AuthData result = authLib.Auth(authData, queryString, CPCertNumber);

            Assert.IsFalse(string.IsNullOrEmpty(result.error_message));
        }
Beispiel #2
0
        public void AuthLib_Auth(string sertNum)
        {
            AuthLib authLib = new AuthLib();

            AuthData result = authLib.Reg("https://int01.gismt.crpt.tech/api/v3/true-api/auth/key");

            result = authLib.Auth(result, "https://int01.gismt.crpt.tech/api/v3/true-api/auth/simpleSignIn", sertNum);

            Assert.IsNotNull(result);
            Assert.IsTrue(string.IsNullOrEmpty(result.error_message));
            Console.WriteLine(result.token);
        }