예제 #1
0
        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);

        }