Exemple #1
0
 public void ErrorLog_ReturnsLogById_Invalid()
 {
     // Arrange
     var service = new ErrorLogsController(_errorLogRepository);
     // Act
     var result = service.GetErrorLogByID("edbc12f-4fd8-4fed-a848-b8bff");
 }
Exemple #2
0
        public void ErrorLog_ReturnsLogById()
        {
            // Arrange
            var service = new ErrorLogsController(_errorLogRepository);

            // Act
            var result = service.GetErrorLogByID("2edbc12f-4fd8-4fed-a848-b8bfff4d4e03") as OkNegotiatedContentResult <APIErrorLogs>;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("12-2234567", result.Content.EIN);
        }