DomainDrivenDelivery.Infrastructure.Persistence.InMemory.LocationRepositoryInMem.find C# (CSharp) Method

find() public method

public find ( UnLocode unLocode ) : Location
unLocode UnLocode
return Location
        public Location find(UnLocode unLocode)
        {
            foreach(Location location in SampleLocations.getAll())
            {
                if(location.UnLocode.Equals(unLocode))
                {
                    return location;
                }
            }
            return null;
        }
LocationRepositoryInMem