示例#1
0
 public UnitOfWork()
 {
     _context            = new DatabaseContext();
     AnasayfaSlider      = new AnasayfaSliderRepository(_context);
     BiziTakipEdin       = new BiziTakipEdinRepository(_context);
     Iletisim            = new IletisimRepository(_context);
     LoginUsers          = new LoginUsersRepository(_context);
     OdaOzellikleri      = new OdaOzellikleriRepository(_context);
     OdaOzellikListesi   = new OdaOzellikListesiRepository(_context);
     Oteller             = new OtellerRepository(_context);
     OtelOzellikleri     = new OtelOzellikleriRepository(_context);
     OtelOzellikListesi  = new OtelOzellikListesiRepository(_context);
     OtelTeklifleri      = new OtelTeklifleriRepository(_context);
     SiziArayalim        = new SiziArayalimRepository(_context);
     Yorumlar            = new YorumlarRepository(_context);
     OtelTemalari        = new OtelTemalariRepository(_context);
     OtelTemalariListesi = new OtelTemalariListesiRepository(_context);
     SayfalarMenusu      = new SayfalarMenusuRepository(_context);
     Abone = new AboneRepository(_context);
 }
 public void unregisterObserver(IAbone abone)
 {
     aboneListesi.Remove(abone);
 }
 public void registerObserver(IAbone abone)
 {
     aboneListesi.Add(abone);
 }