/// <summary> /// 获取对象Hash值 /// </summary> /// <param name="obj"></param> /// <returns></returns> public static string CreateObjectHash(this object obj) { var objectHashHelper = ObjectHashHelper.Resolve(); return(objectHashHelper.CreateObjectHash(obj)); }
/// <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)); }
public void MyTestInitialize() { _objectHashHelper = ObjectHashHelper.Resolve(); }