예제 #1
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);
 }
예제 #2
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);
 }
예제 #3
0
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != this.GetType())
            {
                return(false);
            }
            OperationToolSetupTime operationToolSetupTime = (OperationToolSetupTime)obj;

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