¡@

Home 

c# Programming Glossary: iuserrepository

Difference between Dependency Injection and Mocking framework (Ninject vs RhinoMock or Moq)

http://stackoverflow.com/questions/5433211/difference-between-dependency-injection-and-mocking-framework-ninject-vs-rhinom

injection framework. Lets say you have interface IUserRepository string GetUserName int id one method for simplicity Now you.. Now you have an actual implementation class MyUserRepo IUserRepository string GetUserName int id grab your username from your data.. your data base here. Now all over the place you'll have IUserRepository repo new MyUserRepo this is bad Why Ask yourself why you made..

Where to put global rules validation in DDD

http://stackoverflow.com/questions/5818898/where-to-put-global-rules-validation-in-ddd

and behavior And repository for users public interface IUserRepository IRepository User User FindByName string name Options are Inject.. to repository in entity is a bad smell. public User IUserRepository repository _repository repository public string Name get return.. Update We can use DI to hide dependency between User and IUserRepository via Specification object. 2. Inject repository to factory I..