コード例 #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);
        }