public void Initialize() { using (var kernel = new StandardKernel(new DataAccessModule())) { uni = kernel.Get <IArticlesUnitofWork>(); rep = kernel.Get <ITagRepository>(); } }
private readonly IArticlesUnitofWork unit; //No Variable Should Refrence To a Concrete class public PostRepository(IArticlesUnitofWork _unit) { this.unit = _unit; }
public CategoryRepository(IArticlesUnitofWork _unit) { this.unit = _unit; }