예제 #1
0
 public Order(RepairType repairType, Machine machine, Client client)
 {
     _guid           = Guid.NewGuid();
     _client         = client;
     _clientGuid     = client.Guid;
     _machine        = machine;
     _machineGuid    = machine.Guid;
     _repairType     = repairType;
     _repairTypeGuid = repairType.Guid;
     _startDate      = DateTime.Now;
     _status         = OrderStatus.Requested;
 }
예제 #2
0
 public void DropAssociations()
 {
     _client     = null;
     _machine    = null;
     _repairType = null;
 }