internal static List<TimeSpentItem> GetCleanedVisualStudioProjects(DateTimeOffset date)
{
var maxVsProjects = 10;
var vsProjects = WindowTitleCodeExtractor.GetVisualStudioProjects(date);
var list = new List<TimeSpentItem>();
foreach (var p in vsProjects)
{
var item = new TimeSpentItem(TimeSpentType.VsProject, p.Key, p.Value);
list.Add(item);
}
return list.Where(w => w.DurationInMins > MinDurationInMins).Take(maxVsProjects).ToList();
}