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>)); }