public void UpdateLeaseOrderLine(StartDate startDate, EndDate endDate, IsReturned isReturned, ResourceName ResourceName, ResourcePrice ResourcePrice, Quantity quantity) { Apply(new LeaseOrderLineEvents.LeaseOrderLineUpdated { LeaseOrderLineId = LeaseOrderLineId, StartDate = startDate, EndDate = endDate, IsReturned = isReturned, ResourceName = ResourceName, ResourcePrice = ResourcePrice, Quantity = quantity, }); }
public LeaseOrderLine(LeaseOrderLineId leaseOrderLineId, LeaseOrderId leaseOrderId, ResourceId ResourceId, StartDate startDate, EndDate endDate, IsReturned isReturned, ResourceName ResourceName, ResourcePrice ResourcePrice, Quantity quantity) { Apply(new LeaseOrderLineEvents.LeaseOrderLineAddedToLeaseOrder { LeaseOrderLineId = leaseOrderLineId, LeaseOrderId = leaseOrderId, ResourceId = ResourceId, StartDate = startDate, EndDate = endDate, IsReturned = isReturned, ResourceName = ResourceName, ResourcePrice = ResourcePrice, Quantity = quantity }); }