Example #1
0
 public NewsService(NewsBlogDatabase db)
 {
     if (db == null)
         throw new ArgumentException(ERROR_OPEN_DATABASE);
     _database = db;
 }
Example #2
0
 public UserRepository(NewsBlogDatabase db)
 {
     if (db == null)
         throw new ArgumentException(ERROR_OPEN_DATABASE);
     _database = db;
 }
Example #3
0
 public UnitOfWork()
 {
     _database = new NewsBlogDatabase();
 }