public BaseIntelligentMediaCommand() { Settings = DependencyResolver.Current.GetService <IIntelligentMediaSettings>(); SearchService = DependencyResolver.Current.GetService <IIntelligentMediaSearchService>(); MediaWrapper = DependencyResolver.Current.GetService <IMediaWrapper>(); PersonGroupService = DependencyResolver.Current.GetService <IPersonGroupService>(); }
public ImageSearchFactory( IServiceProvider provider, ISitecoreDataWrapper dataWrapper, IIntelligentMediaSearchService searchService) { Provider = provider; DataWrapper = dataWrapper; SearchService = searchService; }
public MediaItemDeleted( ISitecoreDataWrapper dataWrapper, IIntelligentMediaSearchService searchService, IMediaWrapper mediaWrapper) { DataWrapper = dataWrapper; SearchService = searchService; MediaWrapper = mediaWrapper; }
public PersonGroupService( IIntelligentMediaSettings settings, ISitecoreDataWrapper dataWrapper, IFaceService faceService, IIntelligentMediaSearchService searchService) { Settings = settings; DataWrapper = dataWrapper; FaceService = faceService; SearchService = searchService; }
public MediaItemSaved( IIntelligentMediaSettings settings, IImageAnalysisService analysisService, ISitecoreDataWrapper dataWrapper, IIntelligentMediaSearchService searchService, IContextItemsWrapper contextItems, IMediaWrapper mediaWrapper) { Settings = settings; AnalysisService = analysisService; DataWrapper = dataWrapper; SearchService = searchService; ContextItems = contextItems; MediaWrapper = mediaWrapper; }
public ImageAnalysisService( IIntelligentMediaSettings settings, IIntelligentMediaSearchService searchService, ISitecoreDataWrapper dataWrapper, IFaceService faceService, IComputerVisionService visionService, IImageAnalysisFactory imageAnalysisFactory, IPersonGroupService personService) { Settings = settings; SearchService = searchService; DataWrapper = dataWrapper; FaceService = faceService; VisionService = visionService; ImageAnalysisFactory = imageAnalysisFactory; PersonService = personService; }
public IntelligentMediaController( IIntelligentMediaSearchService searchService, ISitecoreDataWrapper dataWrapper, IWebUtilWrapper webUtil, IImageSearchFactory msFactory, ISetAltTagsAllFactory satarFactory, IImageAnalysisService analysisService, IJobResultFactory jobResultFactory, ISetupInformationFactory setupFactory, ISetupService setupService, IIntelligentMediaSettings searchSettings, IFaceService faceService, IPersonGroupService personGroupService, IComputerVisionService computerVisionService, IMediaWrapper mediaWrapper) { Assert.IsNotNull(searchService, typeof(IIntelligentMediaSearchService)); Assert.IsNotNull(dataWrapper, typeof(ISitecoreDataWrapper)); Assert.IsNotNull(webUtil, typeof(IWebUtilWrapper)); Assert.IsNotNull(msFactory, typeof(IImageSearchFactory)); Assert.IsNotNull(satarFactory, typeof(ISetAltTagsAllFactory)); Assert.IsNotNull(analysisService, typeof(IImageAnalysisService)); Assert.IsNotNull(jobResultFactory, typeof(IJobResultFactory)); Assert.IsNotNull(setupFactory, typeof(ISetupInformationFactory)); Assert.IsNotNull(setupService, typeof(ISetupService)); Assert.IsNotNull(searchSettings, typeof(IIntelligentMediaSettings)); Assert.IsNotNull(faceService, typeof(IFaceService)); Assert.IsNotNull(personGroupService, typeof(IPersonGroupService)); Assert.IsNotNull(computerVisionService, typeof(IComputerVisionService)); Assert.IsNotNull(mediaWrapper, typeof(IMediaWrapper)); SearchService = searchService; DataWrapper = dataWrapper; WebUtil = webUtil; MediaSearchFactory = msFactory; SetAltTagsAllFactory = satarFactory; AnalysisService = analysisService; JobResultFactory = jobResultFactory; SetupFactory = setupFactory; SetupService = setupService; SearchSettings = searchSettings; FaceService = faceService; PersonGroupService = personGroupService; ComputerVisionService = computerVisionService; MediaWrapper = mediaWrapper; }
public void Setup() { SearchService = Substitute.For <IIntelligentMediaSearchService>(); DataWrapper = Substitute.For <ISitecoreDataWrapper>(); WebUtil = Substitute.For <IWebUtilWrapper>(); MediaSearchFactory = Substitute.For <IImageSearchFactory>(); SetAltTagsAllFactory = Substitute.For <ISetAltTagsAllFactory>(); ImageAnalysisFactory = Substitute.For <IImageAnalysisFactory>(); ImageAnalysisService = Substitute.For <IImageAnalysisService>(); JobResultFactory = Substitute.For <IJobResultFactory>(); SetupInformationFactory = Substitute.For <ISetupInformationFactory>(); Settings = Substitute.For <IIntelligentMediaSettings>(); SetupService = Substitute.For <ISetupService>(); User u = User.FromName("sitecore\\name", true); DataWrapper.ContextUser.Returns(u); }
public SetupService( ISitecoreDataWrapper dataWrapper, IMicrosoftCognitiveServicesApiKeys mscsApiKeys, IIntelligentMediaSettings searchSettings, IImageAnalysisService analysisService, IIntelligentMediaSearchService searchService, IPublishWrapper publishWrapper, HttpContextBase context, ISCSDKSettings scsdkSettings, ILogWrapper logger) { DataWrapper = dataWrapper; MSCSApiKeys = mscsApiKeys; SearchSettings = searchSettings; AnalysisService = analysisService; SearchService = searchService; Context = context; PublishWrapper = publishWrapper; SCSDKSettings = scsdkSettings; Logger = logger; }