Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Last active November 29, 2019 16:44
Show Gist options
  • Select an option

  • Save MarcoNicolodi/09e73d1430d8fd8ca12c25e254fb94db to your computer and use it in GitHub Desktop.

Select an option

Save MarcoNicolodi/09e73d1430d8fd8ca12c25e254fb94db to your computer and use it in GitHub Desktop.
Proposal with access to other aggregates lacks boundaries
var proposal = _proposalRepository.Find(id);
proposal.Candidate.Ban();
proposal.JobListing.AddPreRequisite(PreRequisite.Clojure);
proposalRepository.Save(proposal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment