예제 #1
0
        /// <summary>
        /// 获取对象Hash值
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static string CreateObjectHash(this object obj)
        {
            var objectHashHelper = ObjectHashHelper.Resolve();

            return(objectHashHelper.CreateObjectHash(obj));
        }
예제 #2
0
        /// <summary>
        /// 校验对象Hash值
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="hash"></param>
        /// <returns></returns>
        public static bool VerifyObjectHash(this object obj, string hash)
        {
            var objectHashHelper = ObjectHashHelper.Resolve();

            return(objectHashHelper.VerifyObjectHash(obj, hash));
        }
예제 #3
0
 public void MyTestInitialize()
 {
     _objectHashHelper = ObjectHashHelper.Resolve();
 }