public IronController(IronBankEntities context) { if (context == null) throw new ArgumentNullException("IronController: context can not be null."); db = context; Authentication = new AuthenticationService(db); }
public TransferManager(IronBankEntities context) { if (context == null) throw new ArgumentNullException("TransferManager: context can not be null."); db = context; productsManager = new ProductService(db); transactionManager = new TransactionService(db); }
public TransactionService(IronBankEntities providedContext) { generator = new AccountNumberGenerator(); this.context = providedContext; }