public void UpdatePFileTest() { var file = postFileQueryHql.GetPost_fileById(11); file.title = "你好"; postFileQueryHql.UpdatePost_file(file); var testFile = postFileQueryHql.GetPost_fileById(11); Assert.AreEqual("你好", testFile.title); }
/// <summary> /// 更新未审查的文件 /// </summary> /// <param name="pFile"></param> public void UpdatePFile(Post_file pFile) { helperP.UpdatePost_file(pFile); }