Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Last active April 30, 2023 21:27
Show Gist options
  • Save christopherbauer/f182d079c11c6466e52ec29eb4a0cfc1 to your computer and use it in GitHub Desktop.
Save christopherbauer/f182d079c11c6466e52ec29eb4a0cfc1 to your computer and use it in GitHub Desktop.
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