public void SaveMetrics() { var modules = GetCompiledDlls().Select(GetMetricsForDll).ToList(); var mongo = new MongoRepository(); mongo.SaveMetrics(_repositoryUrl, _commit, modules); }