SoftwareSandbox / effit-challenge

Web application for the PHUCIT Challenge. A week filled with challenges to make your Snowcase holiday even more memorable
MIT License
6 stars 2 forks source link

Moving from monolith/anemic to hexagonal/cqrs #58

Closed Sch3lp closed 2 years ago

Sch3lp commented 5 years ago

Check out the module dependency diagram:

Sch3lp commented 5 years ago

This is probably going to end up in all CompetitionCommandHandlers:

    private fun findCompetitionOrThrow(competitionId: CompetitionId): Competition {
        return queryExecutor.execute(FindCompetition(competitionId))
                ?: throw EntityNotFoundDomainRuntimeException("Competition with id ${competitionId.id} not found")
    }

So find a way to remove that duplication when it happens!