コード例 #1
0
        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);
        }
コード例 #2
0
 protected override IUserRepository GetRepository()
 {
     FileRepositoryHelper helper = new FileRepositoryHelper(TestContext);
     return new FileUserRepository(helper.UsersFilePath());
 }
        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());
 }