PR2-Testate/LibrarySystem/UI/BibliothekTest.java

22 lines
585 B
Java

package LibrarySystem.UI;
import LibrarySystem.domain.benutzern.*;
import LibrarySystem.facade.BibliothekSystem;
public class BibliothekTest {
public static void main(String[] args) {
BibliothekSystem system = new BibliothekSystem();
// Beispiel: Benutzer und Admin hinzufügen
Benutzer student = new Student("Ana Misk", 21);
Admin admin = new Admin("Alisa Admin", 40);
system.benutzerRegistrieren(student);
system.benutzerRegistrieren(admin);
// UI starten
UI ui = new UI(system);
ui.starten();
}
}