Example #1
0
 public void InsertPlataTest()
 {
     var target = new Plata
     {
         Data = DateTime.Now,
         Numar = "Testing",
         Serie = "Testing",
         Suma = 123.312m,
         TipPlata = "Testing"
     };
     var r = target.Save();
     if (r.Status == StatusEnum.Errors)
     {
         Assert.Fail();
     }
 }
Example #2
0
 public void UpdatePlataTest()
 {
     var target = new Plata
     {
         Data = DateTime.Now,
         Numar = "Modificat",
         Serie = "Testing",
         Suma = 123.3m,
         TipPlata = "Modificat",
         ID = 1
     };
     var r = target.Save();
     if (r.Status == StatusEnum.Errors)
     {
         Assert.Fail();
     }
 }