public DownloadService(ILoggerFactory log,
                        ITableDbContext tableDbContext,
                        ITranscriptionService transcriptionService,
                        IDataRepository dataRepository)
 {
     _log                  = log.CreateLogger <DownloadService>();
     _tableDbContext       = tableDbContext;
     _transcriptionService = transcriptionService ?? throw new ArgumentNullException(nameof(transcriptionService));
     _dataRepository       = dataRepository ?? throw new ArgumentNullException(nameof(dataRepository));
 }
 public BlobTrigger(ILoggerFactory log,
                    IOptions <AzStorageConfiguration> blobConfiguration,
                    ITranscriptionService transcriptionService,
                    ITableDbContext tableContext)
 {
     _log = log.CreateLogger <BlobTrigger>();
     _blobConfiguration    = blobConfiguration.Value;
     _tableDbContext       = tableContext ?? throw new ArgumentNullException(nameof(tableContext));
     _transcriptionService = transcriptionService ?? throw new ArgumentNullException(nameof(transcriptionService));
 }
 public DataRepository(
     IBlobContext blobContext,
     ITableDbContext tableDbContext,
     ITranscriptionService transcriptionService,
     ILoggerFactory log)
 {
     _blobContext          = blobContext;
     _tableDbContext       = tableDbContext;
     _transcriptionService = transcriptionService ?? throw new ArgumentNullException(nameof(transcriptionService));
     _log = log.CreateLogger <DataRepository>();
 }
        public ApplicationViewModel(ISyllablesService syllablesService, ITranscriptionService transcriptionService,
                                    IPlaybackService playbackService)
        {
            Guard.NotNull(syllablesService, "syllablesService");
            Guard.NotNull(transcriptionService, "transcriptionService");
            Guard.NotNull(playbackService, "playbackService");

            this._syllablesService = syllablesService;
            this._transcriptionService = transcriptionService;
            this._playbackService = playbackService;

            this._playbackService.PlaybackCompleted += this.PlaybackServiceOnPlaybackCompleted;

            this._inputText = "";
            this._isInputTextBoxEnabled = true;
            this._outputMode = OutputMode.Transcription;
            this.OutputText = "";
            this._words = new List<string>();

            this.Commands = new ApplicationViewModelCommands(this);
        }
        public ApplicationViewModel(ISyllablesService syllablesService, ITranscriptionService transcriptionService,
                                    IPlaybackService playbackService)
        {
            Guard.NotNull(syllablesService, "syllablesService");
            Guard.NotNull(transcriptionService, "transcriptionService");
            Guard.NotNull(playbackService, "playbackService");

            this._syllablesService     = syllablesService;
            this._transcriptionService = transcriptionService;
            this._playbackService      = playbackService;

            this._playbackService.PlaybackCompleted += this.PlaybackServiceOnPlaybackCompleted;

            this._inputText             = "";
            this._isInputTextBoxEnabled = true;
            this._outputMode            = OutputMode.Transcription;
            this.OutputText             = "";
            this._words = new List <string>();

            this.Commands = new ApplicationViewModelCommands(this);
        }
 public TranscriptionController(ITranscriptionService transcriptionService,
                                UserManager <CompanyIdentityUser> userManager,
                                IMapper mapper,
                                ILabelingAudioService labelingAudioService,
                                ILabelService labelService,
                                IImportRepository importsRepository,
                                ITranscriptionRepository transcriptionRepository,
                                ILabelingStatisticsService labelingStatisticsService,
                                ITranscriptionLabelsRepository labelsRepository,
                                ILabelGroupsRepository labelGroupsRepository)
 {
     this.mapper = mapper;
     this.labelGroupsRepository     = labelGroupsRepository;
     this.labelsRepository          = labelsRepository;
     this.importsRepository         = importsRepository;
     this.transcriptionRepository   = transcriptionRepository;
     this.labelingStatisticsService = labelingStatisticsService;
     this.labelingAudioService      = labelingAudioService;
     this.transcriptionService      = transcriptionService;
     this.labelService = labelService;
     this.userManager  = userManager;
 }