public void SignUpTesting()
 {
     Assert.AreEqual(true, new RegistrServiceReference.SignUpServiceClient().SignUp("testQWERTY", "test", "testQWERTY", 1));
     Thread.Sleep(5000);
     DataBase.MarketModel tmp_db = new DataBase.MarketModel();
     tmp_db.Users.Remove(tmp_db.Users.Where(x => x.phone == "testQWERTY").SingleOrDefault());
     tmp_db.SaveChanges();
 }
Beispiel #2
0
 public void MakeOrderTest()
 {
     Assert.AreEqual(true, new NewGlobalServiceReference.NewGlobalServiceClient().MakeOrder(6, "a", DateTime.Now, "100500", "100500"));
     Thread.Sleep(5000);
     DataBase.MarketModel tmp_db = new DataBase.MarketModel();
     tmp_db.Orders.Remove(tmp_db.Orders.Where(x => x.count == 100500 && x.full_cost == 100500).SingleOrDefault());
     tmp_db.SaveChanges();
 }