public virtual InventoryItemRequirementEntryStateCreatedDto NewInventoryItemRequirementEntryStateCreated(long entrySeqId) { var e = new InventoryItemRequirementEntryStateCreatedDto(); var eId = NewInventoryItemRequirementEntryEventId(entrySeqId); e.InventoryItemRequirementEntryEventId = eId; return(e); }
public virtual InventoryItemRequirementEntryStateCreatedDto ToInventoryItemRequirementEntryStateCreatedDto(IInventoryItemRequirementEntryStateCreated e) { var dto = new InventoryItemRequirementEntryStateCreatedDto(); dto.InventoryItemRequirementEntryEventId = e.InventoryItemRequirementEntryEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; dto.Quantity = e.Quantity; dto.SourceEventId = e.SourceEventId; return(dto); }
public virtual InventoryItemRequirementStateCreatedDto ToInventoryItemRequirementStateCreatedDto(IInventoryItemRequirementStateCreated e) { var dto = new InventoryItemRequirementStateCreatedDto(); dto.InventoryItemRequirementEventId = e.InventoryItemRequirementEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; dto.Quantity = e.Quantity; var inventoryItemRequirementEntryEvents = new List <InventoryItemRequirementEntryStateCreatedDto>(); foreach (var ee in e.InventoryItemRequirementEntryEvents) { InventoryItemRequirementEntryStateCreatedDto eeDto = InventoryItemRequirementEntryStateEventDtoConverter.ToInventoryItemRequirementEntryStateCreatedDto(ee); inventoryItemRequirementEntryEvents.Add(eeDto); } dto.InventoryItemRequirementEntryEvents = inventoryItemRequirementEntryEvents.ToArray(); return(dto); }