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
identifierstringIdentifier for the batch.
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<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
sourceBatchSource 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 Parameters Equals(BatchParameter).
public bool Equals(Batch other)
Parameters
otherBatchAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.