public void CacheEntries_ShouldGetPeopleAndCallSave() { EFTeamworkPeople efTeamworkPeople = new EFTeamworkPeople(_context.Object, _config.Object, _iAPIMethod.Object); efTeamworkPeople.CacheEntries(); _iAPIMethod.Verify(x => x.GetPeople(), Times.Once); _context.Verify(x => x.SaveChanges(), Times.Once); }
private void CacheTeamwork() { WriteTimeLog("--CacheTeamwork:People", "Starting"); ITeamworkPeople efTeamworkPeople = new EFTeamworkPeople(); efTeamworkPeople.CacheEntries(); WriteTimeLog("--CacheTeamwork:Tasks", "Starting"); ITeamworkTasks efTeamworkTasks = new EFTeamworkTasks(); efTeamworkTasks.CacheEntries(GetFromDay("Teamwork:FromDateDays"), Boolean.Parse(_configuration.GetKey("APISources:Teamwork:IncludeCompleted"))); }