Ejemplo n.º 1
0
 public BankActivityService(CommerceBankAppContext context, ILastTransactionService lastTransactionService, IMailService mailService, IUserService userService)
     : base(context)
 {
     _lastTransactionService = lastTransactionService;
     _mailService            = mailService;
     _userService            = userService;
 }
Ejemplo n.º 2
0
 //contructor injection(Dependency injection)
 public AccountService(IUserService userService, IPersonService personService,
                       IBankActivityService bankActivityService, ILastTransactionService lastTransactionService, IMailService mailService)
 {
     _userService            = userService;
     _personService          = personService;
     _bankActivityService    = bankActivityService;
     _lastTransactionService = lastTransactionService;
     _mailService            = mailService;
 }