public ImageRepositoryTest()
        {
            var fake = A.Fake<IEnvironmentPathProvider>();

            A.CallTo(() => fake.GetImageCachePath()).Returns(_imageCache);

            _imageRepository = new ImageRepository(new AlephRepository(fake), fake);  
        }
示例#2
0
        public AlephRepository(IEnvironmentPathProvider environment)
        {
            var pathToImageCache = environment.GetImageCachePath();
            var pathToRulesFolder = environment.GetRulesPath();

            _storageHelper = new StorageHelper(pathToImageCache);
            _imageRepository = new ImageRepository(null, environment);
            if (pathToRulesFolder != null)
                _rulesRepository = new RulesRepository(pathToRulesFolder);

        }