Пример #1
0
        public void AuthLib_Reg_ReturnsError(string inputValue)
        {
            AuthLib authLib = new AuthLib();

            AuthData result = authLib.Reg(inputValue);

            Assert.IsFalse(string.IsNullOrEmpty(result.error_message));
        }
Пример #2
0
        public void AuthLib_Reg()
        {
            AuthLib authLib = new AuthLib();

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

            Assert.IsNotNull(result);
            Assert.IsTrue(string.IsNullOrEmpty(result.error_message));
        }
Пример #3
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);
        }