/// <summary>
        /// Initializes a new instance of the <see cref="CarDealershipRepository"/> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="connectionStringFactory">The connection string factory.</param>
        /// <exception cref="System.ArgumentNullException">
        /// logger
        /// or
        /// connectionStringFactory
        /// </exception>
        public CarDealershipRepository(ILog logger, IConnectionStringFactory connectionStringFactory)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (connectionStringFactory == null)
            {
                throw new ArgumentNullException(nameof(connectionStringFactory));
            }

            this._logger           = logger;
            this._connectionString = connectionStringFactory.GetLiveConnectionString();
        }