public void setupDatabase() { DatabaseController ds = new DatabaseController(new HotelDb()); ds.resetDb(); User root = new User { username = "******", password = "******", isAdmin = true, isActive = true }; ds.addEntry(root); Room r = new Room() { capacity = 3, isFree = true, type = "mezonet", number = 111 }; ds.addEntry(r); }
public void setupDatabase() { DatabaseController ds = new DatabaseController(new HotelDb()); ds.resetDb(); User root = new User { username = "******", password = "******", isAdmin = true, isActive = true }; ds.addUser(root); Room r = new Room() { capacity = 2, isFree = true, type = "SingleRoom", number = 202 }; ds.addRoom(r); }