DomainDrivenDelivery.Infrastructure.Persistence.InMemory.LocationRepositoryInMem.find C# (CSharp) Méthode

find() public méthode

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