Exemplo n.º 1
0
        public void DeleteFileTest()
        {
            var user = db.Users.FirstOrDefault();

            filesAccess.SaveFile("user", user.ID, "newfile.txt");

            filesAccess.DeleteFile("user", user.Files.LastOrDefault().ID);

            Assert.IsNotNull(user.Files.LastOrDefault().Deleted);
        }
Exemplo n.º 2
0
 public void DeleteFile(string ownerType, int id)
 {
     filesAccess.DeleteFile(ownerType, id);
 }