public void CreateOneLogEntryResultsInCountOf5() { // Arrange using (var context = new AuditLogContext(_options)) { var repository = new AuditLogRepository(context); var logEntry = new LogEntry { Timestamp = new DateTime(2019, 7, 2).Ticks, EventJson = "{'title': 'Something'}", EventType = "DomainEvent", RoutingKey = "Test.TestQueue.TestCreated" }; // Act repository.Create(logEntry); } // Assert using (var context = new AuditLogContext(_options)) { var result = context.LogEntries.Count(); Assert.AreEqual(5, result); } }