Beispiel #1
0
 public AudioServiceBuilder()
 {
     _audioEntriesRepository     = Substitute.For <IAudioEntriesRepository>();
     _dateTimeWrapper            = Substitute.For <IDateTimeWrapper>();
     _localAudioRepository       = Substitute.For <IAudioLocalRepository>();
     _pathProvider               = Substitute.For <IPathProvider>();
     _tagsProvider               = Substitute.For <ITagsProvider>();
     _audioMetaEntriesRepository = Substitute.For <IAudioMetaEntriesRepository>();
 }
Beispiel #2
0
 public AudioServiceImpl(
     IPathProvider pathProvider,
     IAudioLocalRepository localAudioRepository,
     IAudioEntriesRepository audioEntriesRepository,
     ITagsProvider tagsProvider,
     IDateTimeWrapper dateTimeWrapper,
     IAudioMetaEntriesRepository audioMetaEntriesRepository)
 {
     _pathProvider               = pathProvider;
     _localAudioRepository       = localAudioRepository;
     _audioEntriesRepository     = audioEntriesRepository;
     _tagsProvider               = tagsProvider;
     _dateTimeWrapper            = dateTimeWrapper;
     _audioMetaEntriesRepository = audioMetaEntriesRepository;
 }
Beispiel #3
0
 public AudioServiceBuilder WithLocalRepo(IAudioLocalRepository audioLocalRepo)
 {
     _localAudioRepository = audioLocalRepo;
     return(this);
 }