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); }
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]); } }