Ejemplo n.º 1
0
 public DataTablesDomainService(IDataTablesRepository dataTablesRepository,
                                IUnitOfWorkFactory unitOfWorkFactory,
                                ITableColumnsRepository tableColumnsRepository)
 {
     _dataTablesRepository   = dataTablesRepository;
     _unitOfWorkFactory      = unitOfWorkFactory;
     _tableColumnsRepository = tableColumnsRepository;
 }
Ejemplo n.º 2
0
        public DataSourceFieldAccessValidator(
            [NotNull] IDataSourceAccessValidator dataSourceAccessValidator,
            [NotNull] ITableColumnsRepository tableColumnsRepository)
        {
            if (dataSourceAccessValidator == null)
            {
                throw new ArgumentNullException(nameof(dataSourceAccessValidator));
            }
            if (tableColumnsRepository == null)
            {
                throw new ArgumentNullException(nameof(tableColumnsRepository));
            }

            _dataSourceAccessValidator = dataSourceAccessValidator;
            _tableColumnsRepository    = tableColumnsRepository;
        }