public void ShouldReconstituteLevelFromCreatedEvent() { var organizationId = new OrganizationId(); var events = new EventStore(); DomainEvents.Register((IDomainEvent evt) => events.Add(organizationId, evt)); var levelId = new LevelId(); var level = new Level(levelId, new StructureId(), "Level Name"); var repo = new DomainRepository(organizationId, events); var clonedLevel = repo.GetLevel(levelId); clonedLevel.ShouldBeEquivalentTo(level); }