コード例 #1
0
 private void Apply(ShareClassCreated @event)
 {
     this.ticker = new Ticker(@event.Ticker);
     this.type   = ShareClassType.CreateFromString(@event.Type);
 }
コード例 #2
0
 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;
 }
コード例 #5
0
 private void Apply(DocumentAssociatedWithShareclass @event)
 {
     this.shareClassAssociations.Add(
         new DocumentShareClassAssociation(@event.DocumentId, @event.ShareClassId,
             ShareClassType.CreateFromString(@event.ShareClassType)));
 }