示例#1
0
 public DetailsModel(IMarkdownService markdownService, GetOEmbedVideoService getOEmbedVideoService, GetVideoService getVideoService, IRepository <ArchiveVideo> repository)
 {
     _markdownService       = markdownService;
     _getVideoService       = getVideoService;
     _repository            = repository;
     _getOEmbedVideoService = getOEmbedVideoService;
 }
 public VideosController(IMapper mapper,
                         IRepository <ArchiveVideo> repository,
                         IOptions <ApiSettings> apiSettings,
                         GetOEmbedVideoService getOEmbedVideoService,
                         GetVideoService getVideoService,
                         DeleteVideoService deleteVideoService,
                         UploadSubtitleToVideoService uploadSubtitleToVideoService,
                         IMarkdownService markdownService,
                         CreateAnimatedThumbnailsService createAnimatedThumbnailsService,
                         GetAllAnimatedThumbnailService getAllAnimatedThumbnailService,
                         IVideosService videosService,
                         UserManager <ApplicationUser> userManager,
                         IRepository <Member> memberRepository)
 {
     _mapper = mapper;
     _getOEmbedVideoService        = getOEmbedVideoService;
     _getVideoService              = getVideoService;
     _deleteVideoService           = deleteVideoService;
     _uploadSubtitleToVideoService = uploadSubtitleToVideoService;
     _repository      = repository;
     _expectedApiKey  = apiSettings.Value.ApiKey;
     _markdownService = markdownService;
     _createAnimatedThumbnailsService = createAnimatedThumbnailsService;
     _getAllAnimatedThumbnailService  = getAllAnimatedThumbnailService;
     _videosService    = videosService;
     _userManager      = userManager;
     _memberRepository = memberRepository;
 }
示例#3
0
    public GetOEmbedVideoTest()
    {
        var httpService = HttpServiceBuilder.Build();

        _getOEmbedVideoService = GetOEmbedVideoServiceBuilder.Build(httpService);
        _testFileHelper        = new TestFileHelper();
    }
示例#4
0
 public DetailsModel(IMarkdownService markdownService, GetOEmbedVideoService getOEmbedVideoService, GetVideoService getVideoService, IRepository <ArchiveVideo> repository, UserManager <ApplicationUser> userManager, IRepository <Member> memberRepository)
 {
     _markdownService       = markdownService;
     _getVideoService       = getVideoService;
     _repository            = repository;
     _getOEmbedVideoService = getOEmbedVideoService;
     _userManager           = userManager;
     _memberRepository      = memberRepository;
 }