Example #1
0
 public MovieMetadataServiceTests()
 {
     _fileSystemService      = Substitute.For <IFileSystemService>();
     _metadataRepository     = Substitute.For <IMovieMetadataRepository>();
     _metadataUpdater        = Substitute.For <IMovieMetadataUpdater>();
     _synopsisService        = Substitute.For <IMovieSynopsisService>();
     _imagesService          = Substitute.For <IMovieImagesService>();
     _fileInformationService = Substitute.For <IFileInformationService>();
     _service = new MovieMetadataService(_fileSystemService, _metadataRepository, _metadataUpdater, _synopsisService, _imagesService, _fileInformationService);
 }
 public MovieMetadataServiceTests()
 {
     _fileSystemService = Substitute.For<IFileSystemService>();
     _metadataRepository = Substitute.For<IMovieMetadataRepository>();
     _metadataUpdater = Substitute.For<IMovieMetadataUpdater>();
     _synopsisService = Substitute.For<IMovieSynopsisService>();
     _imagesService = Substitute.For<IMovieImagesService>();
     _fileInformationService = Substitute.For<IFileInformationService>();
     _service = new MovieMetadataService(_fileSystemService, _metadataRepository, _metadataUpdater, _synopsisService, _imagesService, _fileInformationService);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MovieMetadataService"/> class.
 /// </summary>
 /// <param name="fileSystemService">The file system service.</param>
 /// <param name="metadataRepository">The metadata repository.</param>
 /// <param name="metadataUpdater">The metadata updater.</param>
 /// <param name="synopsisService">The synopsis service.</param>
 /// <param name="imagesService">The images service.</param>
 /// <param name="fileInformationService">The file information service.</param>
 public MovieMetadataService(IFileSystemService fileSystemService,
                             IMovieMetadataRepository metadataRepository,
                             IMovieMetadataUpdater metadataUpdater,
                             IMovieSynopsisService synopsisService,
                             IMovieImagesService imagesService,
                             IFileInformationService fileInformationService)
 {
     _fileSystemService      = fileSystemService;
     _metadataRepository     = metadataRepository;
     _metadataUpdater        = metadataUpdater;
     _synopsisService        = synopsisService;
     _imagesService          = imagesService;
     _fileInformationService = fileInformationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MovieMetadataService"/> class.
 /// </summary>
 /// <param name="fileSystemService">The file system service.</param>
 /// <param name="metadataRepository">The metadata repository.</param>
 /// <param name="metadataUpdater">The metadata updater.</param>
 /// <param name="synopsisService">The synopsis service.</param>
 /// <param name="imagesService">The images service.</param>
 /// <param name="fileInformationService">The file information service.</param>
 public MovieMetadataService(IFileSystemService fileSystemService,
     IMovieMetadataRepository metadataRepository,
     IMovieMetadataUpdater metadataUpdater,
     IMovieSynopsisService synopsisService,
     IMovieImagesService imagesService,
     IFileInformationService fileInformationService)
 {
     _fileSystemService = fileSystemService;
     _metadataRepository = metadataRepository;
     _metadataUpdater = metadataUpdater;
     _synopsisService = synopsisService;
     _imagesService = imagesService;
     _fileInformationService = fileInformationService;
 }