Serenity.Jasmine.SpecificationGraph.associateSpecs C# (CSharp) Method

associateSpecs() private method

private associateSpecs ( List javascriptFiles ) : void
javascriptFiles List
return void
        private void associateSpecs(List<AssetFile> javascriptFiles)
        {
            var specs = AllSpecifications.ToList();
            javascriptFiles.RemoveAll(file => specs.Any(x => x.File == file));
            specs.Each(spec =>
            {
                // Brute force baby!  No elegance needed here.
                // Ten bucks says this is a perf problem down the line
                javascriptFiles.Where(spec.DependsOn).Each(spec.AddLibrary);

            });
        }