예제 #1
0
        private EntityInfo CreateEntityInfo(TEntityImplementation implementation)
        {
            Type?  type         = typeExtractor.ExtractFrom(implementation);
            string fullName     = fullNameExtractor.ExtractFrom(implementation);
            var    directErrors = validator.Validate(implementation);

            return(new EntityInfo
                   (
                       type ?? MetaInfo.MetaInfo.UnknownImplementation,
                       type,
                       fullName,
                       directErrors
                   ));
        }
예제 #2
0
        public void Extractsᅠfullᅠnameᅠwhenᅠtypeᅠisᅠconcreteᅠreferenceᅠtype()
        {
            Type type = typeof(string);

            extractor.ExtractFrom(type).Should().Be(type.FullName);
        }