public ImageCollectionManager(
     DiscogsClient client,
     IFileManager fileManager,
     IRepository repository,
     IImageDuplicateFinder imageDuplicateFinder,
     ILoggerManager manager) : base(manager)
 {
     _discogsClient        = client;
     _fileManager          = fileManager;
     _repository           = repository;
     _imageDuplicateFinder = imageDuplicateFinder;
     CreateTempImageDirectory();
 }
Esempio n. 2
0
        public void Init()
        {
            //root directory for all tests
            var testDllPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            _assembly        = Assembly.GetExecutingAssembly();
            _resourceNames   = _assembly.GetManifestResourceNames();
            _rootTestDirPath = Path.Combine(testDllPath, "RootTestDirectory");
            if (Directory.Exists(_rootTestDirPath))
            {
                Directory.Delete(_rootTestDirPath, true);
            }
            Directory.CreateDirectory(_rootTestDirPath);
            // test images paths
            _image1FilePath = Path.Combine(_rootTestDirPath, Image1FileName);
            _image2FilePath = Path.Combine(_rootTestDirPath, Image2FileName);
            _image3FilePath = Path.Combine(_rootTestDirPath, Image3FileName);
            _image4FilePath = Path.Combine(_rootTestDirPath, Image4FileName);


            // sut
            _sut = new ImageDuplicateFinder();
        }