Example #1
0
 public RegionController(HotelContext hotelContext, AppConfiguration appConfiguration)
 {
     _parser          = new Parser(appConfiguration);
     _regionDbManager = new RegionDbManager(hotelContext);
     _validation      = new Validation(_regionDbManager);
     _regionDbManager.EnsureDatabaseCreated();
     _hotelAdder = new HotelAdder();
 }
Example #2
0
 public Validation(RegionDbManager regionDbManager)
 {
     _regionDbManager = regionDbManager;
 }