Exemple #1
0
 public Mapper_LedgerBookDto_LedgerBook(
     [NotNull] IBudgetBucketRepository bucketRepo,
     [NotNull] IAccountTypeRepository accountTypeRepo,
     [NotNull] ILedgerBucketFactory bucketFactory,
     [NotNull] ILedgerTransactionFactory transactionFactory,
     [NotNull] IReconciliationBuilder reconciliationBuilder)
 {
     if (bucketRepo == null)
     {
         throw new ArgumentNullException(nameof(bucketRepo));
     }
     if (accountTypeRepo == null)
     {
         throw new ArgumentNullException(nameof(accountTypeRepo));
     }
     if (bucketFactory == null)
     {
         throw new ArgumentNullException(nameof(bucketFactory));
     }
     if (transactionFactory == null)
     {
         throw new ArgumentNullException(nameof(transactionFactory));
     }
     if (reconciliationBuilder == null)
     {
         throw new ArgumentNullException(nameof(reconciliationBuilder));
     }
     this.bucketRepo            = bucketRepo;
     this.accountTypeRepo       = accountTypeRepo;
     this.bucketFactory         = bucketFactory;
     this.transactionFactory    = transactionFactory;
     this.reconciliationBuilder = reconciliationBuilder;
 }
        public LedgerAutoMapperConfiguration(
            [NotNull] ILedgerTransactionFactory ledgerTransactionFactory, 
            [NotNull] IAccountTypeRepository accountTypeRepo, 
            [NotNull] IBudgetBucketRepository bucketRepo, 
            [NotNull] ILogger logger)
        {
            if (ledgerTransactionFactory == null)
            {
                throw new ArgumentNullException("ledgerTransactionFactory");
            }

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

            this.ledgerTransactionFactory = ledgerTransactionFactory;
            this.accountTypeRepo = accountTypeRepo;
            this.bucketRepo = bucketRepo;
            this.logger = logger;
        }
Exemple #3
0
 public Mapper_LedgerTransactionDto_LedgerTransaction([NotNull] ILedgerTransactionFactory transactionFactory, [NotNull] IAccountTypeRepository accountTypeRepo)
 {
     if (transactionFactory == null)
     {
         throw new ArgumentNullException(nameof(transactionFactory));
     }
     if (accountTypeRepo == null)
     {
         throw new ArgumentNullException(nameof(accountTypeRepo));
     }
     this.transactionFactory = transactionFactory;
     this.accountTypeRepo    = accountTypeRepo;
 }
 public Mapper_LedgerBookDto_LedgerBook(
     [NotNull] IBudgetBucketRepository bucketRepo,
     [NotNull] IAccountTypeRepository accountTypeRepo,
     [NotNull] ILedgerBucketFactory bucketFactory,
     [NotNull] ILedgerTransactionFactory transactionFactory,
     [NotNull] IReconciliationBuilder reconciliationBuilder)
 {
     if (bucketRepo == null) throw new ArgumentNullException(nameof(bucketRepo));
     if (accountTypeRepo == null) throw new ArgumentNullException(nameof(accountTypeRepo));
     if (bucketFactory == null) throw new ArgumentNullException(nameof(bucketFactory));
     if (transactionFactory == null) throw new ArgumentNullException(nameof(transactionFactory));
     if (reconciliationBuilder == null) throw new ArgumentNullException(nameof(reconciliationBuilder));
     this.bucketRepo = bucketRepo;
     this.accountTypeRepo = accountTypeRepo;
     this.bucketFactory = bucketFactory;
     this.transactionFactory = transactionFactory;
     this.reconciliationBuilder = reconciliationBuilder;
 }
Exemple #5
0
 public Mapper_LedgerEntryLineDto_LedgerEntryLine(
     [NotNull] IAccountTypeRepository accountTypeRepo,
     [NotNull] ILedgerBucketFactory bucketFactory,
     [NotNull] ILedgerTransactionFactory transactionFactory)
 {
     if (accountTypeRepo == null)
     {
         throw new ArgumentNullException(nameof(accountTypeRepo));
     }
     if (bucketFactory == null)
     {
         throw new ArgumentNullException(nameof(bucketFactory));
     }
     if (transactionFactory == null)
     {
         throw new ArgumentNullException(nameof(transactionFactory));
     }
     this.accountTypeRepo    = accountTypeRepo;
     this.bucketFactory      = bucketFactory;
     this.transactionFactory = transactionFactory;
 }
 public Mapper_LedgerTransactionDto_LedgerTransaction([NotNull] ILedgerTransactionFactory transactionFactory, [NotNull] IAccountTypeRepository accountTypeRepo)
 {
     if (transactionFactory == null) throw new ArgumentNullException(nameof(transactionFactory));
     if (accountTypeRepo == null) throw new ArgumentNullException(nameof(accountTypeRepo));
     this.transactionFactory = transactionFactory;
     this.accountTypeRepo = accountTypeRepo;
 }
 public Mapper_LedgerEntryLineDto_LedgerEntryLine(
     [NotNull] IAccountTypeRepository accountTypeRepo,
     [NotNull] ILedgerBucketFactory bucketFactory,
     [NotNull] ILedgerTransactionFactory transactionFactory)
 {
     if (accountTypeRepo == null) throw new ArgumentNullException(nameof(accountTypeRepo));
     if (bucketFactory == null) throw new ArgumentNullException(nameof(bucketFactory));
     if (transactionFactory == null) throw new ArgumentNullException(nameof(transactionFactory));
     this.accountTypeRepo = accountTypeRepo;
     this.bucketFactory = bucketFactory;
     this.transactionFactory = transactionFactory;
 }