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

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

            var path = Path.Combine(Environment.CurrentDirectory, PathString);
            A.CallTo(() => fake.GetXmlListPath()).Returns(path);

            var aleph = new AlephRepository(fake);
            _listRepository = new LibraryListXmlRepository(aleph, new ImageRepository(aleph, fake), fake);

        }
Beispiel #2
0
 public ListController(IListRepositoryStatic staticRepository, IListRepository dynamicRepository)
 {
     _staticRepository = staticRepository;
     _dynamicRepository = dynamicRepository;
 }
 public void Init()
 {
     var path = Path.Combine(Environment.CurrentDirectory, PathString);
     var aleph = new AlephRepository(_imageCache);
     _listRepository = new LibraryListXmlRepository(aleph, new ImageRepository(aleph, _imageCache), path);
 }