public ProfileTypeInfo(ProfileTypeNode node) { Node = node; var root = (CatalogueBaseNode)node.Ancestors().Last(); SourceName = root.Name; }
public RuleConverter(ProfileTypeNode profileType, CharacteristicTypeNode characteristicType, ImmutableArray <RuleNode> rules) { ProfileType = profileType; CharacteristicType = characteristicType; Rules = rules; Profiles = Rules.ToImmutableDictionary(x => x.Id, ConvertRuleToProfile); }