Esempio n. 1
0
 public TeamController(ITeamRepository teamRepo, ICheckoutRepository checkoutRepo, IEarningsRepository eRepo, ILogger <TeamController> logger)
 {
     checkoutsCore   = new CheckoutsCore(checkoutRepo);
     serverTeamsCore = new ServerTeamsCore(teamRepo);
     earningsCore    = new EarningsCore(eRepo);
     _barCore        = new BarCore(teamRepo, checkoutRepo);
     _logger         = logger;
 }
Esempio n. 2
0
 public CheckoutController(ICheckoutRepository coRepository, ILogger <CheckoutController> logger, IStaffMemberRepository sRepo, IJobRepository jRepo, ITeamRepository teamRepo, IEarningsRepository earningsRepo)
 {
     _checkoutsCore  = new CheckoutsCore(coRepository);
     _logger         = logger;
     _staffCore      = new StaffMembersCore(sRepo);
     _jobCore        = new JobCore(jRepo);
     _barCore        = new BarCore(teamRepo, coRepository);
     _serverTeamCore = new ServerTeamsCore(teamRepo);
     _earningsCore   = new EarningsCore(earningsRepo);
 }