repository

How To Properly Unit-Test CRUD Operations on a Repository?

Hi Guys, Realize this may sound like a broad question - so let me clarify. I have a Repository exposed via an interface, with two concrete implementations - a MockRepository and a EntityFrameworkRepository. Now, i have a Unit-Test project for which all tests can be run against either repository, via flicking over a line in [TestInitial...

Checking a maven project's repository portability.

Is there any way to check all dependencies are downloadable from at least one listed repository? I was once omitted a required repository from my pom.xml. But maven didn't complain because those dependencies already had been installed in my local repository (~/.m2/repository). That could be a problem for CI or on another fresh machine....

Unit Testing - Challenges with Dynamic / Interrelated Repositories

I have a handful of controllers and each controller has a test class with unit tests. Each unit test calls a single action and verifies that the action handles a given scenario. The test class has a setup routine that instantiates a number of fake repositories and other fake objects. The fake repositories have static collections that ...

IRepository, IService, Unity in an ASP.NET MVC Application, reference question

I'm new to Unity, but this question is more generic to IoC, and I’m pretty new to implementing IoC as a whole. I have VS2010 solution with this project structure (simplified slightly): Business Objects – Folder DomainModel (Class Lib prj.) – Entity Framework 2 POCO entities Data Layer – Folder DataAccess (Class Lib prj.) – EF2 EDMX...

Is it possible to share public code through heroku like I can with Github?

On Github, I can send a page link with a file of code. Does Heroku have the same functionality, or do I have to have them clone the project and added as a collaborator to do that? ...

Moving my SVN local file repo to GitHub

I have a local file SVN repo of a project that needs to move to GitHub. I know from what I've read on the GitHub site and a related question here on stack-overflow that it's a simple matter to move the repo from an SVN server into the GitHub repo. But my problem is that I have a local file repository. What is the recommended way of ...

RTP traces repository

Is there any public RTP repo where can I download a lot of RTP traces (in addition to the ones in example wireshark traces)? Any suggestions are welcome. ...

How to connect Controller to Service layer to Repository layer

Lets say I have the following entities that map to database tables (every matching property name can be considered a PK/FK relationship): public class Person { public int PersonID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } public class Employee { public int EmployeeID { get; set; ...

SVN : 500 internal server error on my repository access

Hi, (OS is Ubuntu Server) I create a new repository with SVN like that : $ svnadmin create myrepo --pre-1.6-compatible The first time, when I want to access in my new repository myrepo (with TortoiseSVN tool), I could reach in reading, but in writing, I couldn't (lock SVN message appears). So I found on forum post, a guy who recomma...

Getting SVN to shadow commits to a CVS repository.

Hi, Is there a way to monitor commits to a CVS repository on a daily basis say, and for those changes to be replicated in a local SVN repository. Ideally maintaining commit comments. A little perl ditty maybe? Thanks, Steve. ...

What are the most common ways of losing or having code overwritten when sharing a repository with another developer

What are the most common ways of losing or having overwritten code when sharing a repository with another developer? I say this after working with several share repos where magically a lot of my information disappears. What are some safe workarounds? I use Github. ...

Code repository hosts that support both svn and git?

Can anyone recommend hosts other than github ( 100% git ), codesion and beanstalk which support both svn and git? ...

Is SVN's relocate a safe option to synchronize code with two subversion repositories?

Variants of this question have been asked many times, but none of the answers clarified what I am interested in: I would like (obviously... :) to synchronize my local working copy with two repositories on two different servers. If I use svn switch with the --relocate option, is it possible (and reasonably safe) to keep in synch with bo...

StructureMap - How to register and resolve an open generic type

public interface IRepository<T> where T : Entity { void Delete(T entity); T[] GetAll(); T GetById(int id); void SaveOrUpdate(T enity); void Merge(T entity); } public interface ITeamEmployeeRepository : IRepository<TeamEmployee> { PagedList<TeamEmployee> GetPagedTeamEmployees(int pageIndex, int pageSize); } publ...