You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
429 B
TypeScript

import EventStore from "../domain/EventStore";
import { ApplicationUpdateFinished } from "../domain/events/ApplicationUpdateFinished";
/**
* Actions done by a Human in the application
*/
class Human {
constructor(private eventStore: EventStore) {}
markApplicationAsUpdated(appName: string) {
this.eventStore.append(
new ApplicationUpdateFinished({ id: appName }, new Date())
);
}
}
export default Human;