public MappingFactory(MappingCollection mappings, string assembliesField, Type attributeSearch) { if (!attributeSearch.IsSubclassOf(typeof(Attribute)) || !attributeSearch.GetInterfaces().Any(a => a == typeof(ISetFacadeAttribute))) { throw new NotImplementedException($"Not implemented [{typeof(ISetFacadeAttribute).Name}]"); } Mapper = new MappingStore(mappings); AssembliesField = assembliesField; AttributeSearch = attributeSearch ?? throw new ArgumentNullException(nameof(attributeSearch)); }
internal MappingStore(MappingCollection mappings) { Mappings = mappings ?? throw new ArgumentNullException(nameof(mappings)); }