/// <summary> /// 文件通过审查 /// </summary> /// <param name="pFile"></param> public void filePass(Post_file pFile) { Treat_file tFile = new Treat_file(); tFile.title = pFile.title; tFile.content = pFile.content; tFile.username = pFile.username; tFile.status = 1; helperP.DeletePost_file(pFile); helperT.CreateTreatFile(tFile); }
public void DeletePFileTest() { var file = postFileQueryHql.GetPost_fileById(10); postFileQueryHql.DeletePost_file(file); var testFile = postFileQueryHql.GetPost_fileById(10); Assert.IsNull(testFile); }