public ObjectTypeTransformation(Func<T, object> transformer, IObjectTypeTransformer original)
 {
     _original = original;
     _transformer = transformer;
 }
        public static ServiceRepository RegisterObjectTypeTransformer(this ServiceRepository serviceRepository, [NotNull] IObjectTypeTransformer transformer)
        {
            if (transformer == null)
            {
                throw new ArgumentNullException(nameof(transformer));
            }

            serviceRepository.RegisterSingleton(transformer);
            return(serviceRepository);
        }