public TransportRequest(Customer customer, TransportUnit transportUnit) { List<TransportUnit> units = new List<TransportUnit>(); units.Add(transportUnit); this.Init(customer, units); }
public TransportRequest(Customer customer, IList<TransportUnit> transportUnits) { this.Init(customer, transportUnits); }
private void Init(Customer customer, IList<TransportUnit> transportUnits) { this.customer = customer; this.createdTime = DateTime.Now; //Steria.Utilities.TimeHelper.Now; this.status = TransportRequestStatus.New; this.transportUnits = transportUnits; }