public void SaveFileTest() { var user = db.Users.FirstOrDefault(); filesAccess.SaveFile("user", user.ID, "newfile.txt"); Assert.AreEqual("newfile.txt", user.Files.LastOrDefault().Name); }
public void SaveFile(string ownerType, int id, File file) { filesAccess.SaveFile(ownerType, id, file.Name); }