public UnitOfWork(TripContext context, ILogger <TripRepository> tripLogger, ILogger <StopRepository> stopLogger)
 {
     _context    = context;
     _tripLogger = tripLogger;
     _stopLogger = stopLogger;
     Trips       = new TripRepository(_context, _tripLogger);
     Stops       = new StopRepository(_context, _stopLogger);
 }
Пример #2
0
 public TripContextSeedData(TripContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }