public Operation(OperationDTO operationDto) { Duration = new OperationDuration(operationDto.Duration); Description = new OperationDescription(operationDto.Description); Tool = new OperationTool(operationDto.Tool); SetupTime = new OperationToolSetupTime(operationDto.SetupTime); }
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); }
public override bool Equals(object obj) { if (obj == null || obj.GetType() != this.GetType()) { return(false); } OperationToolSetupTime operationToolSetupTime = (OperationToolSetupTime)obj; return(Value.Equals(operationToolSetupTime.Value)); }