Пример #1
0
        private static IReport BuildModelFrom(IAssembly assembly)
        {
            var allSpecTypes      = assembly.AllTypesMatching(Context.Specification);
            var collectedConcerns = new List <Concern>();

            foreach (var specType in allSpecTypes)
            {
                var context = Context.BuildFrom(specType);
                var concern = BuildOrGetConcern(specType, collectedConcerns);

                concern.AddContext(context);
            }

            return(new Report(collectedConcerns, assembly));
        }