示例#1
0
        public void GetHashcodeTest()
        {
            List <ServiceError> errors        = new List <ServiceError>();
            VerifyResult        verifyResult1 = new VerifyResult();

            verifyResult1.TransactionID       = "test-transactionID";
            verifyResult1.UploadedDt          = DateTime.Parse("2020-09-15T00:00:00+00:00");
            verifyResult1.CountryCode         = "test-countryCode";
            verifyResult1.ProductName         = "test-productName";
            verifyResult1.CustomerReferenceID = "test-customerReferenceID";
            verifyResult1.Record = new Trulioo.SDK.Model.Record(transactionRecordID: "test-transactionRecordID");
            verifyResult1.Errors = errors;

            VerifyResult verifyResult2 = new VerifyResult();

            verifyResult2.TransactionID       = "test-transactionID";
            verifyResult2.UploadedDt          = DateTime.Parse("2020-09-15T00:00:00+00:00");
            verifyResult2.CountryCode         = "test-countryCode";
            verifyResult2.ProductName         = "test-productName";
            verifyResult2.CustomerReferenceID = "test-customerReferenceID";
            verifyResult2.Record = new Trulioo.SDK.Model.Record(transactionRecordID: "test-transactionRecordID");
            verifyResult2.Errors = errors;

            Assert.Equal(verifyResult1.GetHashCode(), verifyResult2.GetHashCode());
        }