Skip to content

Instantly share code, notes, and snippets.

@Restuta
Last active December 12, 2015 06:08
Show Gist options
  • Select an option

  • Save Restuta/4726805 to your computer and use it in GitHub Desktop.

Select an option

Save Restuta/4726805 to your computer and use it in GitHub Desktop.
prototype for easy and declarative definition of Events that should be present in the EventStore during testing of something
InsertEventsTo(EventStore)
.AggregateId(contactId, new
{
FakeEvent.ContactCreated(),
FakeEvent.TaskCreatedForContact(),
FakeEvent.EventLinkedToContact()
})
.AggregateId(TaskId, new
{
FakeEvent.TaskCreated()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment