Ejemplo n.º 1
0
 public ApprenticeshipUpdateRepository(
     string connectionString,
     ICommitmentsLogger logger,
     IApprenticeshipUpdateTransactions apprenticeshipUpdateTransactions,
     IApprenticeshipTransactions apprenticeshipTransactions) : base(connectionString, logger.BaseLogger)
 {
     _logger = logger;
     _apprenticeshipUpdateTransactions = apprenticeshipUpdateTransactions;
     _apprenticeshipTransactions       = apprenticeshipTransactions;
 }
Ejemplo n.º 2
0
 public ApprenticeshipRepository(
     string connectionString,
     ICommitmentsLogger logger,
     IApprenticeshipTransactions apprenticeshipTransactions,
     ICurrentDateTime currentDateTime) : base(connectionString, logger.BaseLogger)
 {
     _logger = logger;
     _apprenticeshipTransactions = apprenticeshipTransactions;
     _currentDateTime            = currentDateTime;
 }
Ejemplo n.º 3
0
        public ApprenticeshipUpdateRepository(
            string connectionString,
            ICommitmentsLogger logger,
            IApprenticeshipUpdateTransactions apprenticeshipUpdateTransactions,
            IApprenticeshipTransactions apprenticeshipTransactions) : base(connectionString, logger.BaseLogger)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (apprenticeshipUpdateTransactions == null)
            {
                throw new ArgumentNullException(nameof(apprenticeshipUpdateTransactions));
            }
            if (apprenticeshipTransactions == null)
            {
                throw new ArgumentNullException(nameof(apprenticeshipTransactions));
            }

            _logger = logger;
            _apprenticeshipUpdateTransactions = apprenticeshipUpdateTransactions;
            _apprenticeshipTransactions       = apprenticeshipTransactions;
        }