DomainDrivenDelivery.Domain.Model.Handling.HandlingEventFactory.findLocation C# (CSharp) 메소드

findLocation() 개인적인 메소드

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

            return location;
        }
    }