public void Test_insert()
        {
            //Arrange
            bool result = false;

            //Act
            result = Repository_clienti.Insert(model_client);
            //Assert
            Assert.IsTrue(result);
        }
예제 #2
0
 [HttpPost]//De aici la view-ul administratorului
 public ActionResult Rezervare(Model_clienti m)
 {
     if (Repository_clienti.Insert(m))
     {
         c1.id_confirmare = m.ID;
         c1.m             = m;
         id = c1.id_confirmare;
         return(RedirectToAction("Confirmare"));
     }
     return(View(m));
 }
예제 #3
0
 [HttpPost]//De aici la view-ul administratorului
 public ActionResult Rezervare(Model_clienti m)
 {
     serviciu.Add_client(m);
     Receive.Program.Main();
     if (Repository_clienti.Insert(m))
     {
         c1.id_confirmare = m.ID;
         c1.m             = m;
         id = c1.id_confirmare;
         return(RedirectToAction("Confirmare"));
     }
     return(View(m));
 }
예제 #4
0
 [HttpPost]//De aici la view-ul administratorului
 public ActionResult Rezervare(Model_clienti m)
 {
     Repository_clienti.Insert(m);
     return(View(m));
 }