public void SchemaDefinition() { loggingService.AddSchemaToLogger("conn1"); loggingService.LogAll().Wait(); using (var db = new LogDbContext(LogDbOptions)) { Assert.AreEqual(1, db.RequestLogs.Count()); Assert.AreEqual(1, db.ResponseLogs.Count()); //Check details Assert.AreEqual("conn1", db.RequestLogs.First().Connector); Assert.AreEqual("GET", db.RequestLogs.First().RequestType); Assert.AreEqual(new DateTime(2020, 1, 1), db.RequestLogs.First().DateTimeUtc); Assert.AreEqual(db.RequestLogs.First().RequestGuid, db.ResponseLogs.First().RequestGuid); Assert.AreEqual(db.RequestLogs.First().RequestId, db.ResponseLogs.First().ResponseId); } }