Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Skedar sk = new Skedar();
     DataTable dt = sk.Lexo("C:\\Users\\GRKN\\Documents\\Ushtrime_4\\Ushtrime_4\\Emails.csv");
     Ruaj r = new Ruaj();
     foreach (DataRow row in dt.Rows)
     {
         string ad = row.Field<string>(0);
         string su = row.Field<string>(1);
         string tr = row.Field<string>(2);
         r.ShtoNeTabele(ad, su, tr);
     }
 }
Example #2
0
 public void ShtoNeTabeleTest()
 {
     Ruaj r = new Ruaj();
     int result = r.ShtoNeTabele("*****@*****.**", "subjekt test", "trup test");
     Assert.AreEqual(1, result);
 }