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);
        }
示例#2
0
        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);
        }