Last active
April 30, 2023 21:27
-
-
Save christopherbauer/f182d079c11c6466e52ec29eb4a0cfc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DataAccessLayer } from "./DataAccessLayer"; | |
import { Service } from "./Service"; | |
const service = new Service(new DataAccessLayer()); | |
const id1 = service.register({ firstName: "Chris", lastName: "Bauer" }); | |
const id2 = service.register({ firstName: "John", lastName: "Tomson" }); | |
const id3 = service.register({ firstName: "Tom", lastName: "Johnson" }); | |
console.log(service.getUserInfo(id1)); | |
console.log(service.getUserInfo(id2)); | |
console.log(service.getUserInfo(id3)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment