Пример #1
0
        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());
        }
Пример #2
0
        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>));
        }