Ejemplo n.º 1
0
 public void AddShipService(ShipServiceId shipServiceId, ShipId shipId)
 {
     if (shipServiceId == null)
     {
         throw new ArgumentNullException(nameof(shipServiceId));
     }
     RaiseEvent(new InvoiceShipServiceAddedEvent(Id, shipServiceId, shipId));
 }
 private InvoiceShipServiceAddedEvent(InvoiceId aggregateId, long aggregateVersion, ShipServiceId shipServiceId, ShipId shipId) : base(aggregateId, aggregateVersion)
 {
     ShipServiceId = shipServiceId;
     ShipId        = shipId;
 }
 internal InvoiceShipServiceAddedEvent(InvoiceId aggregateId, ShipServiceId shipServiceId, ShipId shipId) : base(aggregateId)
 {
     ShipServiceId = shipServiceId;
     ShipId        = shipId;
 }