Ejemplo n.º 1
0
 public UserRepository(INewsPortalContext context)
 {
     _context = context;
 }
Ejemplo n.º 2
0
 public ArticleRepository(INewsPortalContext context)
 {
     _context = context;
 }
Ejemplo n.º 3
0
 public ArticleRepository(INewsPortalContext context)
 {
     _context = context;
 }
Ejemplo n.º 4
0
 public UserRepository(INewsPortalContext context)
 {
     _context = context;
 }
 public void Initilise()
 {
     _context           = new NewsPortalContext();
     _articleRepository = new ArticleRepository(_context);
     publisher          = _context.Users.First(u => u.Role == Role.Publisher);
 }
 public void Initilise()
 {
     _context = new NewsPortalContext();
     _articleRepository = new ArticleRepository(_context);
     publisher = _context.Users.First(u => u.Role == Role.Publisher);
 }