public UnitWork( IlknurContext context, ICategoryRepository categoryRepository, IErrorRepository errorRepository, ICrudLoggerRepository crudLoggerRepository, ICrudOperationLogger crudLogger ) { CategoryRepo = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository)); ErrorRepo = errorRepository ?? throw new ArgumentNullException(nameof(errorRepository)); CrudLoggerRepo = crudLoggerRepository ?? throw new ArgumentNullException(nameof(crudLoggerRepository)); _crudLogger = crudLogger ?? throw new ArgumentNullException(nameof(crudLogger)); Context = context ?? throw new ArgumentNullException(nameof(context)); }
public DbCrudOperationLogger(ICrudLoggerRepository logCrudRepo, IMapper mapper) { _logCrudRepo = logCrudRepo; _mapper = mapper; }