public DriverRoleLookupDataEntity Import(int id) { if (id < 0) { throw new ArgumentOutOfRangeException(nameof(id)); } var dataLocator = _dataLocatorFactory.Create(id); dataLocator.Initialise(); var result = _dataEntityFactory.Create(id); result.Value = _identityCalculator.GetDriverRoleNameId(result.Id); result.Description = _dataEndpoint.EnglishLanguageCatalogue.Read(dataLocator.Description).Value; return(result); }
public void Initialise() { Description = DescriptionOffset + _calculator.GetDriverRoleNameId(Id); }