DomainDrivenDelivery.Domain.Model.Handling.HandlingEventFactory.findLocation C# (CSharp) Method

findLocation() private method

private findLocation ( UnLocode unlocode ) : Location
unlocode UnLocode
return Location
        private Location findLocation(UnLocode unlocode)
        {
            var location = locationRepository.find(unlocode);
            if(location == null)
            {
                throw new UnknownLocationException(unlocode);
            }

            return location;
        }
    }