public async Task RD_SingleRecord() { var basicReadResult = await cli.Read <TestClass>("SELECT TextColumn, IntegerColumn, DateColumn, FloatColumn from ScalarTester limit 1"); Assert.IsTrue( basicReadResult.Count() == 1 && basicReadResult.First().TextColumn == "testData" && basicReadResult.First().IntegerColumn == 123 && basicReadResult.First().DateColumn.Day == 1 && basicReadResult.First().DateColumn.Month == 1 && basicReadResult.First().DateColumn.Year == 2021 && basicReadResult.First().FloatColumn == 12.23); }
public async Task UP_Check_Impacted_Rows() { var testClass = await cli.Read <TestClass>("Select ScalarColumn, TextColumn, IntegerColumn, DateColumn, FloatColumn from TestClass Limit 1"); var updatedObject = testClass.First(); updatedClassIndex = updatedObject.ScalarColumn; updatedObject.FloatColumn = 9.99; var totalRecords = await cli.Update(updatedObject); Assert.AreEqual(totalRecords, 1); }