public TyreSupplierLookupDataEntity 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.GetTyreSupplierNameId(result.Id); result.Description = _dataEndpoint.EnglishLanguageCatalogue.Read(dataLocator.Description).Value; return(result); }
public void Initialise() { Description = DescriptionOffset + _calculator.GetTyreSupplierNameId(Id) - 8; }