public void FunctionTest() { int value = 5; ParamBL paramBL = new ParamBL(); Assert.AreEqual(value * value, paramBL.Function(value)); }
public void GetParamValuebyIdTest() { List <ParamValue> values = new List <ParamValue>(); ParamBL paramBL = new ParamBL(); values = paramBL.GetParamValuesHistoryById(1); Assert.AreEqual(2, values.Count); ParamValue value = values.Find(x => x.IsActive == true); Assert.AreEqual(10, value.Value); }
public void GetAllParamNames() { ParamBL paramBL = new ParamBL(); string paramName = "testParamName"; int paramId = paramBL.StoreParamName(paramName); List <ParamValue> values = new List <ParamValue>(); values = paramBL.GetAllParamNames(); ParamValue value = values.Find(x => x.Id == paramId); Assert.AreEqual(paramName, value.Name); }
public void FunctionDataTest(int value, int result) { ParamBL paramBL = new ParamBL(); Assert.AreEqual(result, paramBL.Function(value)); }
public UC_MenuItem2() { InitializeComponent(); paramBL = new ParamBL(); LoadListView(); }
public UC_MenuItem1() { InitializeComponent(); paramBL = new ParamBL(); }