public void GetByIdTest() { InsertSinglePriceEuro(); var singlePriceEuro = new SinglePriceEuro(); singlePriceEuro.GetById(_singlePriceEuro.Id); Assert.IsTrue(singlePriceEuro!=null && singlePriceEuro.Id!=new Guid()); DeleteSinglePriceEuro(); }
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(); }
public void GetBindingNameTest() { var singlePriceEuro = new SinglePriceEuro(); Assert.IsTrue(singlePriceEuro.GetBindingName("Price")!=string.Empty); }