Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter Name:");
            var name = Console.ReadLine();
            var vendorRepo = new VendorRepository();
            var searcher = new LocationSearcher(vendorRepo);
            var vendor = searcher.LocateVendor(name);

            Console.ReadLine();
        }
 public LocationSearcher(VendorRepository repository)
 {
     _repo = repository;
 }