public static MediaIndexPopulator GetMediaIndexRebuilder(PropertyEditorCollection propertyEditors, IMediaService mediaService) { var mediaValueSetBuilder = new MediaValueSetBuilder(propertyEditors, new UrlSegmentProviderCollection(new[] { new DefaultUrlSegmentProvider() }), GetMockUserService(), GetMockLogger()); var mediaIndexDataSource = new MediaIndexPopulator(null, mediaService, mediaValueSetBuilder); return(mediaIndexDataSource); }
public MediaIndexPopulator GetMediaIndexRebuilder(IMediaService mediaService) { var mediaValueSetBuilder = new MediaValueSetBuilder( _propertyEditors, new UrlSegmentProviderCollection(() => new[] { new DefaultUrlSegmentProvider(_shortStringHelper) }), _mediaUrlGenerators, GetMockUserService(), _shortStringHelper, _contentSettings); var mediaIndexDataSource = new MediaIndexPopulator(null, mediaService, mediaValueSetBuilder); return(mediaIndexDataSource); }