public ProductVideoSearchService(Func <IVideoLinkRepository> repositoryFactory, IPlatformMemoryCache platformMemoryCache , IProductVideoService productVideoService) { _repositoryFactory = repositoryFactory; _platformMemoryCache = platformMemoryCache; _productVideoService = productVideoService; }
public ProductVideoController( IProductVideoService productVideoService, IProductVideoSearchService productVideoSearchService, IValidator <ProductVideoSearchCriteria> validator) { _productVideoService = productVideoService; _productVideoSearchService = productVideoSearchService; _validator = validator; }
public ProductVideoServiceTests() { _videoLinkRepositoryMock = new Mock <IVideoLinkRepository>(); _videoLinkRepositoryMock.SetupGet(r => r.UnitOfWork).Returns(Mock.Of <IUnitOfWork>()); _eventPublisherMock = new Mock <IEventPublisher>(); _service = new ProductVideoService( () => _videoLinkRepositoryMock.Object, Mock.Of <IPlatformMemoryCache>(), _eventPublisherMock.Object); }
public InternalYoutubeService(IOptions <ProductVideoModuleOptions> moduleOptions, IProductVideoService productVideoService) { if (moduleOptions.Value.YoutubeApiKey is null) { throw new PlatformException("Platform configuration file must contain the section named as 'ExternalYoutubeApi'. This section consist of YoutubeApiKey property."); } _youtubeService = new YouTubeService(new BaseClientService.Initializer { ApiKey = moduleOptions.Value.YoutubeApiKey }); _productVideoService = productVideoService; _httpClient = new HttpClient(); }
public VideoController(IProductVideoService productVideoService, IProductService productService, ISubCategoryService subCategoryService) : base(productService) { _productVideoService = productVideoService; _productService = productService; _subCategoryService = subCategoryService; }
public VideoLinkDocumentBuilder(IProductVideoService productVideoService) { _productVideoService = productVideoService; }