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