示例#1
0
文件: World.cs 项目: pshomov/frog
 private static void RemoveAllProjects()
 {
     Console.WriteLine("Wiping out the data store ....");
     var riak = new RiakProjectRepository(
         OSHelpers.RiakHost(),
         OSHelpers.RiakPort(),
         "projects");
     riak.AllProjects.ToList().ForEach(document => riak.RemoveProject(document.projecturl));
 }
 protected override Tuple<ProjectsRepository, ProjectsRepositoryTestSupport> GetProjectsRepository()
 {
     var riakProjectRepository = new RiakProjectRepository(OSHelpers.RiakHost(), OSHelpers.RiakPort(), Bucket);
     return new Tuple<ProjectsRepository, ProjectsRepositoryTestSupport>(riakProjectRepository, riakProjectRepository);
 }