Exemplo n.º 1
0
 public IEnumerable <File> GetUserSharesFiles(Guid id)
 {
     Logger.ServiceLog.Info("Get user shares files with id: {0}", id);
     return(_sharesRepository.GetUserFiles(id));
 }
 public void ShouldDeleteShares()
 {
     _sharesRepository.Add(Share);
     _sharesRepository.Delete(Share);
     Assert.IsTrue(_sharesRepository.GetUserFiles(Share.User.Id).Count() == 0);
 }