public void ShareFileToAnotherUserAddToRecent(string fileTitleExpected, bool notify, string message) { FilesControllerHelper.SetFileSecurityInfo(TestFile.Id, TestFileShare, notify, message); SecurityContext.AuthenticateMe(NewUser.ID); var RecentFile = FilesControllerHelper.AddToRecent(TestFile.Id); Assert.IsNotNull(RecentFile); Assert.AreEqual(fileTitleExpected + ".docx", RecentFile.Title); }
public void ShareFileToAnotherUserReadAndWrite(bool notify, string message) { var shareFolder = FilesControllerHelper.SetFileSecurityInfo(TestFileReadAndWrite.Id, TestFolderParamReadAndWrite, notify, message); Assert.IsNotNull(shareFolder); }