private void Apply(ShareClassCreated @event) { this.ticker = new Ticker(@event.Ticker); this.type = ShareClassType.CreateFromString(@event.Type); }
public ShareClass(Guid id, Ticker ticker, ShareClassType type) : this(id) { RaiseEvent(new ShareClassCreated(id, ticker.Symbol, type.Name.ToString())); }
public DocumentShareClassAssociation(Guid documentId, Guid shareClassId, ShareClassType shareClassType) { this.DocumentId = documentId; this.ShareClassId = shareClassId; this.ShareType = shareClassType; }
private void Apply(DocumentAssociatedWithShareclass @event) { this.shareClassAssociations.Add( new DocumentShareClassAssociation(@event.DocumentId, @event.ShareClassId, ShareClassType.CreateFromString(@event.ShareClassType))); }