Anyone got any ideas on how I'd mock a call to a method that contains something similar to below. I realise I could mock the method call itself but I'm really after the method being entered and the linq statment returning values that don't actually exist in the db
| using (OptimumWebRollEntities context = new OptimumWebRollEntities()) |
| { |
| returnList = (from u in context.OptimumUser |
| where u.IsOptimumStaff == false |
| && u.IsActive |
| && u.Region.RegionId == regionId |
| orderby u.Surname, u.FirstName |
| select new data.ReportingEntities.Candidate() |
| { |
| OptimumUserId = u.OptimumUserId, |
| FirstName = u.FirstName, |
| Surname = u.Surname |
| }).ToList(); |
| } |