public void FindAllResultCountIs4() { // Arrange using var context = new AuditLogContext(_options); var repository = new AuditLogRepository(context); // Act var result = repository.FindAll(); // Assert Assert.AreEqual(4, result.Count()); }
public void FindAllIsInstanceOfIEnumerableOfLogEntry() { // Arrange using var context = new AuditLogContext(_options); var repository = new AuditLogRepository(context); // Act var result = repository.FindAll(); // Assert Assert.IsInstanceOfType(result, typeof(IEnumerable <LogEntry>)); }