コード例 #1
0
        public void ReplaseSign_Test()
        {
            var test = "++4O__";

            var sut    = new EncodeDecodeService();
            var result = sut.ReplaceSign(test);

            Assert.IsNotNull("--40//", result);
        }
コード例 #2
0
        public void DecodeLoanApplicant_Test()
        {
            var loanEncode = LoanAplicantEncodeUtil.GenerateLoanApplicantEncode();

            var sut    = new EncodeDecodeService();
            var result = sut.DecodeLoanApplicant(loanEncode);

            Assert.IsNotNull(result);
        }
コード例 #3
0
        public void Decode_Test()
        {
            var test = "MDk4OS8yNTUtMzQ1";

            var sut    = new EncodeDecodeService();
            var result = sut.Base64Decode(test);

            Assert.IsNotNull(result);
        }
コード例 #4
0
        public void Decrypt_Test()
        {
            var test = "CWH8UP++GqTltbMfA8MSxcCoU5GBP37sx9t0XlXPhsA=";

            var sut = new EncodeDecodeService();

            var result = sut.Decrypt(test);

            Assert.AreNotEqual(test, result);
        }
コード例 #5
0
        public void Encrypt_Test()
        {
            var test = "testName";

            var sut = new EncodeDecodeService();

            var result = sut.Encrypt(test);

            Assert.AreNotEqual(test, result);
        }
コード例 #6
0
        public void DecodeLoanApplicantList_Test()
        {
            var listLoan = new List <LoanApplicant>();

            var loanEncode = LoanAplicantEncodeUtil.GenerateLoanApplicantEncode();

            for (int i = 0; i < 2; i++)
            {
                listLoan.Add(loanEncode);
            }

            var sut = new EncodeDecodeService();

            var result = sut.DecodeLoanApplicantList(listLoan);

            Assert.IsNotNull(result);
        }