public ChiefDriverLoyaltyLookupDataEntity 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.GetChiefDriverLoyaltyNameId(result.Id);
            result.Description = _dataEndpoint.EnglishLanguageCatalogue.Read(dataLocator.Description).Value;

            return(result);
        }
Esempio n. 2
0
 public void Initialise()
 {
     Description = DescriptionOffset + _calculator.GetChiefDriverLoyaltyNameId(Id);
 }