public void AuditQueryable_QueryTriggerData() { var auditQueryable = new AuditQueryableSqlite(connstring); var query = new Dictionary <string, StringBuilder>(); var results = auditQueryable.QueryTriggerData(query).ToList(); Assert.IsNotNull(results); Assert.AreEqual(null, auditQueryable.Query); }
public void AuditQueryableSqlite_QueryTriggerData() { var auditQueryable = new AuditQueryableSqlite(connstring); var query = new Dictionary <string, StringBuilder>(); var result = auditQueryable.QueryTriggerData(query); _ = result.ToArray(); Assert.AreEqual(null, auditQueryable.Query); }
private static void QueryTriggerLog(Dictionary <string, StringBuilder> query, IWebSocketConnection socket, IWriter writer) { var serializer = new Dev2JsonSerializer(); var seriLoggerSource = new SeriLoggerSource(); var auditQueryable = new AuditQueryableSqlite(seriLoggerSource.ConnectionString, seriLoggerSource.TableName); var results = auditQueryable.QueryTriggerData(query); writer.WriteLine("sending QueryTriggerLog to server: " + results + "..."); socket.Send(serializer.Serialize(results)); }