Class Order
- Namespace
- Loehnert.TypeAndResult
- Assembly
- Loehnert.TypeAndResult.dll
Represents a order for a work piece (test item).
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
identifier
stringIdentifier for the order.
Exceptions
- ArgumentNullException
Thrown when
identifier
is 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
source
OrderSource 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 ParametersEquals(OrderParameter).
public bool Equals(Order other)
Parameters
other
OrderAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.