public void GetAllAuditLogEntries_Should_Return_Data_From_Database()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new AuditLogEntryRepository(context);

            // Act
            var result = repository.GetAllAuditLogEntries();

            // Assert
            Assert.IsTrue(result.Any(entry => entry.Omschrijving == "Henk creeerde dit"));
        }
        public void GetAllAuditLogEntries_Should_Return_Instance_Of_Type_IList_With_AuditLogEntry()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new AuditLogEntryRepository(context);

            // Act
            var result = repository.GetAllAuditLogEntries();

            // Assert
            Assert.IsInstanceOfType(result, typeof(IList <AuditLogEntry>));
        }
        public void Create_Should_Save_New_Entry_To_Database()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new AuditLogEntryRepository(context);

            // Act
            repository.Create(new AuditLogEntry
            {
                ModuleId     = 1,
                Omschrijving = "Dit is een nieuwe log entry",
                Timestamp    = new DateTime(2020, 6, 19)
            });

            // Assert
            Assert.IsTrue(context.AuditLogEntries.Any(entry => entry.Omschrijving == "Dit is een nieuwe log entry"));
        }