Esempio n. 1
0
 public void GetByIdTest()
 {
     InsertSinglePriceEuro();
     var singlePriceEuro = new SinglePriceEuro();
     singlePriceEuro.GetById(_singlePriceEuro.Id);
     Assert.IsTrue(singlePriceEuro!=null && singlePriceEuro.Id!=new Guid());
     DeleteSinglePriceEuro();
 }
Esempio n. 2
0
 public void GetByDataRowTest()
 {
     InsertSinglePriceEuro();
     var singlePriceEuro = new SinglePriceEuro();
     using (var dbService = new DbService())
     {
         _tbl = dbService.ExecSqlReturnDataTable("SELECT * FROM " + TableName + "WHERE PRICE_ID=" + PriceId);
         singlePriceEuro.GetByDataRow(_tbl.Rows[0]);
     }
     Assert.IsTrue(singlePriceEuro!=null && singlePriceEuro.Id!=new Guid());
     DeleteSinglePriceEuro();
 }
Esempio n. 3
0
 public void GetBindingNameTest()
 {
     var singlePriceEuro = new SinglePriceEuro();
     Assert.IsTrue(singlePriceEuro.GetBindingName("Price")!=string.Empty);
 }