private void When(IssueCreated e) { _id = new IssueId(e.issueId); ProductId = new ProductId(e.productId); _state = State.Pending; _type = (IssueType)Enum.Parse(typeof(IssueType), e.issueType); _description = e.description; _summary = e.summary; }