static public WorkTimeViolation GetViolation(WorkTimeViolationType type, List <AccessEvent> accessEvents = null) { return(new WorkTimeViolation(type, accessEvents) { Description = _violations[type].Item1, Level = _violations[type].Item2 }); }
public WorkTimeViolation(WorkTimeViolationType type, List <AccessEvent> accessEvents = null) { ViolationType = type; AccessEvents = accessEvents; }