Exemple #1
0
 public UnitOfWork(
     RunnerDbContext context,
     ICategoryRepository categories,
     IRunnerRepository runners,
     IDatabase database,
     IChangesFinder changesFinder,
     IChangesLogger changesLogger)
     : this(context, categories, runners, database)
 {
     _changesFinder = changesFinder ?? throw new ArgumentNullException(nameof(changesFinder));
     _changesLogger = changesLogger ?? throw new ArgumentNullException(nameof(changesLogger));
 }
Exemple #2
0
        public UnitOfWork(
            RunnerDbContext context,
            ICategoryRepository categories,
            IRunnerRepository runners,
            IDatabase database)
        {
            _context = context ?? throw new ArgumentNullException(nameof(context));

            Categories = categories ?? throw new ArgumentNullException(nameof(categories));
            Runners    = runners ?? throw new ArgumentNullException(nameof(runners));
            Database   = database ?? throw new ArgumentNullException(nameof(database));
        }