Example #1
0
        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);
        }
Example #2
0
 /// <summary>
 /// 更新未审查的文件
 /// </summary>
 /// <param name="pFile"></param>
 public void UpdatePFile(Post_file pFile)
 {
     helperP.UpdatePost_file(pFile);
 }