示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CollectorReceiptRepository"/> class.
        /// </summary>
        /// <param name="database">The h2 database.</param>
        /// <param name="logger">The logger.</param>
        /// <exception cref="System.ArgumentNullException">
        /// h2Database
        /// or
        /// logger
        /// </exception>
        public CollectorReceiptRepository(Interfaces.IH2Database database, CrossCutting.ILoggerService logger)
        {
            if (database == null)
            {
                throw new ArgumentNullException("h2Database");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.database = database;
            this.logger   = logger;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CollectorReceiptRepository"/> class.
        /// </summary>
        /// <param name="database">The h2 database.</param>
        /// <param name="logger">The logger.</param>
        /// <exception cref="System.ArgumentNullException">
        /// h2Database
        /// or
        /// logger
        /// </exception>
        public CollectorReceiptRepository(Interfaces.IH2Database database, CrossCutting.ILoggerService logger)
        {
            if (database == null)
            {
                throw new ArgumentNullException("h2Database");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.database = database;
            this.logger = logger;
        }