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); }