public void ThrowExceptionOnSqLiteConnectionAverageAllAsyncWithHints() { using (var connection = new SQLiteConnection(Database.ConnectionString)) { // Setup var tables = Database.CreateCompleteTables(10, connection); // Act connection.AverageAllAsync <CompleteTable>(e => e.ColumnInt, hints: "WhatEver").Wait(); } }
public void ThrowExceptionOnSqLiteConnectionAverageAllAsyncViaTableNameWithHints() { using (var connection = new SQLiteConnection(Database.ConnectionString)) { // Setup var tables = Database.CreateCompleteTables(10, connection); // Act connection.AverageAllAsync(ClassMappedNameCache.Get <CompleteTable>(), Field.Parse <CompleteTable>(e => e.ColumnInt).First(), hints: "WhatEver").Wait(); } }
public void TestSqLiteConnectionAverageAllAsync() { using (var connection = new SQLiteConnection(Database.ConnectionString)) { // Setup var tables = Database.CreateCompleteTables(10, connection); // Act var result = connection.AverageAllAsync <CompleteTable>(e => e.ColumnInt).Result; // Assert Assert.AreEqual(tables.Average(e => e.ColumnInt), result); } }
public void TestSqLiteConnectionAverageAllAsyncViaTableName() { using (var connection = new SQLiteConnection(Database.ConnectionString)) { // Setup var tables = Database.CreateCompleteTables(10, connection); // Act var result = connection.AverageAllAsync(ClassMappedNameCache.Get <CompleteTable>(), Field.Parse <CompleteTable>(e => e.ColumnInt).First()).Result; // Assert Assert.AreEqual(tables.Average(e => e.ColumnInt), result); } }