public DocumentIndexType(DocumentIndexTypeToken typeToken, DocumentIndexDataTypeToken dataTypeToken, string fileName, IEnumerable<Enum> indexFields, IEnumerable<Enum> documentFields, int version, DocumentIndexDataTypeService documentIndexDataTypeService, IFileService fileService)
 {
     _typeToken = typeToken;
     _dataTypeToken = dataTypeToken;
     _fileName = fileName;
     _documentIndexDataTypeService = documentIndexDataTypeService;
     _fileService = fileService;
     _versionedFileName = _documentIndexDataTypeService.CreateVersionedFilename(fileName, version);
     _indexFields = indexFields;
     _documentFields = documentFields;
     _version = version;
 }
 public DocumentIndexType(DocumentIndexTypeToken typeToken, DocumentIndexDataTypeToken dataTypeToken, string fileName, IEnumerable <Enum> indexFields, IEnumerable <Enum> documentFields, int version, DocumentIndexDataTypeService documentIndexDataTypeService, IFileService fileService)
 {
     _typeToken     = typeToken;
     _dataTypeToken = dataTypeToken;
     _fileName      = fileName;
     _documentIndexDataTypeService = documentIndexDataTypeService;
     _fileService       = fileService;
     _versionedFileName = _documentIndexDataTypeService.CreateVersionedFilename(fileName, version);
     _indexFields       = indexFields;
     _documentFields    = documentFields;
     _version           = version;
 }