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);
        }
 public void DeleteFile(string ownerType, int id)
 {
     filesAccess.DeleteFile(ownerType, id);
 }