public void TestMethod2() { Tinder.ba.Korisnik k = new Tinder.ba.Korisnik(); Tinder.ba.Korisnik k2 = new Tinder.ba.Korisnik(); Tinder.ba.Chat chat = new Tinder.ba.Chat(k, k2); chat.Poruke.Add(new Tinder.ba.Poruka(k, k2, "Poruka1")); chat.Poruke.Add(new Tinder.ba.Poruka(k2, k, "Poruka2")); chat.Poruke.Add(new Tinder.ba.Poruka(k, k2, "Poruka3")); List <Tinder.ba.Poruka> Poruke = chat.DajSvePorukeOdKorisnika(k); Assert.AreEqual(Poruke[0].Sadrzaj, "Poruka1"); Assert.AreEqual(Poruke[1].Sadrzaj, "Poruka3"); }
public void TestMethod1() { Tinder.ba.Tinder t = new Tinder.ba.Tinder(); Tinder.ba.Korisnik korisnik = new Tinder.ba.Korisnik("name", "*+Sifra123", Tinder.ba.Lokacija.Sarajevo, Tinder.ba.Lokacija.Mostar, 30, true); for (int i = 0; i < 100000; i++) { korisnik.Ime = i.ToString(); t.RadSaKorisnikom(korisnik, 0); } t.DajSveKompatibilneKorisnike(); }
public void TestMethod1() { Tinder.ba.Korisnik k = new Tinder.ba.Korisnik(); Tinder.ba.Chat chat = new Tinder.ba.Chat(); chat.DajSvePorukeOdKorisnika(k); }