public MusteriIslemleri()

        {
            List <Otel> oteller = new List <Otel>();

            oteller = otelRepository.OtelleriAl();
            yorumcuRepository.YorumculariAl(oteller);

            OtelAgaciOlustur(oteller);

            ilAgaci = new IlAgaci(oteller);


            hashMap = new HashMapChain(ilAgaci, oteller);
        }
Beispiel #2
0
        public HashMapChain(IlAgaci ilAgaci, List <Otel> oteller)
        {
            this.ilAgaci = ilAgaci;
            BoyutAyarla();

            tablo = new LinkedHashEntry[boyut];
            for (int i = 0; i < boyut; i++)
            {
                tablo[i] = null;
            }

            for (int i = 0; i < oteller.Count; i++)
            {
                VeriEkle(oteller[i]);
            }
        }