Example #1
0
 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,
     });
 }
Example #2
0
 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
     });
 }