Beispiel #1
0
        public void ErrorLog_ReturnsAllLogs_Invalid()
        {
            // Arrange
            var service = new ErrorLogsController(_errorLogRepository);

            ((ErrorLogRepositoryMock)_errorLogRepository).AddShouldFail = true;

            // Act
            var result = service.GetAllLogs();
        }
Beispiel #2
0
        public void ErrorLog_ReturnsAllLogs()
        {
            // Arrange
            var service = new ErrorLogsController(_errorLogRepository);

            // Act
            var result = service.GetAllLogs();

            // Assert
            Assert.AreEqual(6, result.Count());
        }