public void Can_Create_AuditLogDetail_ForAddedEntity_WithoutQueryingDatabase()
        {
            NormalModel model = ObjectFactory.Create <NormalModel>();

            Db.NormalModels.Add(model);
            Db.ChangeTracker.DetectChanges();
            var entry   = Db.ChangeTracker.Entries().First();
            var auditor = new AdditionLogDetailsAuditor(entry, null);

            optionsBuilder.LogTo(sql => Assert.Fail("Expected no database queries but the following query was executed: {0}", sql));
            var auditLogDetails = auditor.CreateLogDetails().ToList();
        }
        public void Can_Create_AuditLogDetail_ForAddedEntity_WithoutQueryingDatabase()
        {
            var options = new DbContextOptionsBuilder <TestTrackerContext>()
                          .UseSqlServer(TestConnectionString)
                          .Options;

            NormalModel model = new NormalModel();

            using (TestTrackerContext ttc = new TestTrackerContext(options))
            {
                ttc.NormalModels.Add(model);
                ttc.ChangeTracker.DetectChanges();
                var entry   = ttc.ChangeTracker.Entries().First();
                var auditor = new AdditionLogDetailsAuditor(entry, null);

                var auditLogDetails = auditor.CreateLogDetails().ToList();
            }
        }