Beispiel #1
0
 public Operation(string description, TimeSpan duration, string tool, TimeSpan setupTime)
 {
     Tool        = new OperationTool(tool);
     Description = new OperationDescription(description);
     Duration    = new OperationDuration(duration);
     SetupTime   = new OperationToolSetupTime(setupTime);
 }
Beispiel #2
0
 public Operation(OperationDTO operationDto)
 {
     Duration    = new OperationDuration(operationDto.Duration);
     Description = new OperationDescription(operationDto.Description);
     Tool        = new OperationTool(operationDto.Tool);
     SetupTime   = new OperationToolSetupTime(operationDto.SetupTime);
 }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != this.GetType())
            {
                return(false);
            }
            OperationDuration operationDuration = (OperationDuration)obj;

            return(Value.Equals(operationDuration.Value));
        }