public void Initialize()
        {
            using (var kernel = new StandardKernel(new DataAccessModule()))
            {
                uni = kernel.Get <IArticlesUnitofWork>();

                rep = kernel.Get <ITagRepository>();
            }
        }
Example #2
0
        private readonly IArticlesUnitofWork unit;   //No Variable Should Refrence To a Concrete class

        public PostRepository(IArticlesUnitofWork _unit)
        {
            this.unit = _unit;
        }
Example #3
0
 public CategoryRepository(IArticlesUnitofWork _unit)
 {
     this.unit = _unit;
 }