/// <summary>
        /// Initializes a new instance of the <see cref="CodeBuilder"/> class.
        /// </summary>
        /// <param name="config">A required configuration</param>
        /// <param name="builder">An optionally string builder to append to. If not provided, a new instance will be created.</param>
        internal CodeBuilder(IDictionaryBuilderConfiguration config, StringBuilder builder = null)
        {
            _config  = config ?? throw new ArgumentException("Argument is required", nameof(config));
            _builder = builder ?? new StringBuilder();

            AssemblyName assemblyName = GetType().Assembly.GetName();

            _name    = assemblyName.Name;
            _version = assemblyName.Version.ToString(3);
        }
 public DictionaryComponent(IDictionaryBuilderConfiguration configuration, ModelsGenerator modelsGenerator)
 {
     _configuration = configuration;
     _modelsGenerator = modelsGenerator;
 }
 public ModelsGenerator(IUmbracoService umbracoService, IDictionaryBuilderConfiguration config)
 {
     _umbracoService = umbracoService;
     _config         = config;
 }