protected override IMediaRepository GetRepository() { FileRepositoryHelper helper = new FileRepositoryHelper(TestContext); helper.CheckAppService(); IAppServiceRepository appServiceRepository = new FileAppServiceRepository(helper.TestFilesPath()); AppService appService = appServiceRepository.GetService(); IAtomEntryRepository entryRepository = new FileAtomEntryRepository(helper.TestFilesPath(), appServiceRepository); return new FileMediaRepository(helper.MediaPath(), appServiceRepository, entryRepository); }
protected override IAtomEntryRepository GetEntryRepository() { IAppServiceRepository appServiceRepository = GetAppServiceRepository(); FileRepositoryHelper helper = new FileRepositoryHelper(TestContext); return new FileAtomEntryRepository(helper.TestFilesPath(), appServiceRepository); }
protected override IAppServiceRepository GetAppServiceRepository() { FileRepositoryHelper helper = new FileRepositoryHelper(TestContext); helper.CheckAppService(); return new FileAppServiceRepository(helper.TestFilesPath()); }