Class Order
- Namespace
- Loehnert.TypeAndResult
- Assembly
- Loehnert.TypeAndResult.dll
Represents a order for a work piece (test item).
[SuppressMessage("Design", "RCS1170", Justification = "Private setters are needed for entity framework")]
public class Order : EntityBase, INotifyPropertyChanged, ITrackable, IEquatable<Order>, ICanApplyID<Order>
- Inheritance
-
Order
- Implements
- Inherited Members
- Extension Methods
Constructors
Order(string)
Initializes a new instance of the Order class.
public Order(string identifier)
Parameters
identifierstringIdentifier for the order.
Exceptions
- ArgumentNullException
Thrown when
identifieris null, empty or whitespace.
Properties
Identifier
Gets the identifier.
public string Identifier { get; }
Property Value
Parameters
Gets the additional parameters.
public virtual EntityCollection<OrderParameter> Parameters { get; }
Property Value
WorkPieces
Gets the work pieces to which the order belongs.
public virtual ObservableCollection<WorkPiece> WorkPieces { get; }
Property Value
Methods
ApplyID(Order)
Copies the ID and the IDs of the Parameters
from source to this.
public void ApplyID(Order source)
Parameters
sourceOrderSource object.
Exceptions
- InvalidOperationException
Thrown when this doesn't equals with
source.
Equals(Order)
Indicates whether the current object is equal to another object of the same type. Depends on the Identifier and the Parameters Equals(OrderParameter).
public bool Equals(Order other)
Parameters
otherOrderAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.