Class Batch
- Namespace
- Loehnert.TypeAndResult
- Assembly
- Loehnert.TypeAndResult.dll
Represents a batch for a work piece (test item).
public class Batch : EntityBase, INotifyPropertyChanged, ITrackable, IEquatable<Batch>, ICanApplyID<Batch>
- Inheritance
-
Batch
- Implements
- Inherited Members
- Extension Methods
Constructors
Batch(string)
Initializes a new instance of the Batch class.
public Batch(string identifier)
Parameters
identifier
stringIdentifier for the batch.
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<BatchParameter> Parameters { get; }
Property Value
WorkPieces
Gets the work pieces to which the batch belongs.
public virtual ObservableCollection<WorkPiece> WorkPieces { get; }
Property Value
Methods
ApplyID(Batch)
Copies the ID and the IDs of the Parameters
from source
to this.
public void ApplyID(Batch source)
Parameters
source
BatchSource object.
Exceptions
- InvalidOperationException
Thrown when this doesn't equals with
source
.
Equals(Batch)
Indicates whether the current object is equal to another object of the same type. Depends on the Identifier and the ParametersEquals(BatchParameter).
public bool Equals(Batch other)
Parameters
other
BatchAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.