Beispiel #1
0
 public TransactionManager(
     IAccountingDataAccess accountingDataAccess,
     IAccountingEngine accountingEngine,
     IMapper mapper,
     ILogger logger)
 {
     _accountingDataAccess = accountingDataAccess ?? throw new ArgumentNullException(nameof(accountingDataAccess));
     _accountingEngine     = accountingEngine ?? throw new ArgumentNullException(nameof(accountingEngine));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
 public static AccountingManager Create(
     out IAccountingDataAccess accountingDataAccess,
     in bool performInitialisation = true)