Exemplo n.º 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
                   ));
        }
Exemplo n.º 2
0
        public void Extractsᅠtypeᅠwhenᅠtypeᅠisᅠconcreteᅠreferenceᅠtype()
        {
            Type type = typeof(string);

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