Table of Contents

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 string

Identifier for the order.

Exceptions

ArgumentNullException

Thrown when identifier is null, empty or whitespace.

Properties

Identifier

Gets the identifier.

public string Identifier { get; }

Property Value

string

Parameters

Gets the additional parameters.

public virtual EntityCollection<OrderParameter> Parameters { get; }

Property Value

EntityCollection<OrderParameter>

WorkPieces

Gets the work pieces to which the order belongs.

public virtual ObservableCollection<WorkPiece> WorkPieces { get; }

Property Value

ObservableCollection<WorkPiece>

Methods

ApplyID(Order)

Copies the ID and the IDs of the Parameters from source to this.

public void ApplyID(Order source)

Parameters

source Order

Source 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 Order

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.