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()));
 }
示例#3
0
 public DocumentShareClassAssociation(Guid documentId, Guid shareClassId, ShareClassType shareClassType)
 {
     this.DocumentId   = documentId;
     this.ShareClassId = shareClassId;
     this.ShareType    = shareClassType;
 }
 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)));
 }