/// <summary>
 /// Test Deleting a Record from the Data Base
 /// </summary>
 public void TestDelete()
 {
     using (var controller = new PaperApiController(_dbContext, _logger))
     {
         if (saveItem == null || saveItem.Id == null)
         {
             TestAdd();
         }
         var response = controller.DeletePaper(loginToken, saveItem.Id) as OkResult;
         // Test to make sure the item is not found
         var notFound = controller.GetPaper(loginToken, saveItem.Id) as NotFoundResult;
         Assert.IsNotNull(notFound);
         Assert.AreEqual(404, notFound.StatusCode);
     }
 }
 /// <summary>
 /// Test Retrieving a Record from the Data Base
 /// </summary>
 public void TestGet()
 {
     using (var controller = new PaperApiController(_dbContext, _logger))
     {
         if (saveItem == null || saveItem.Id == null)
         {
             TestAdd();
         }
         var response = controller.GetPaper(loginToken, saveItem.Id) as OkObjectResult;
         Assert.IsNotNull(response);
         Assert.AreEqual(200, response.StatusCode);
         testItem = response.Value as Paper;
         Assert.AreEqual(testItem.Id, saveItem.Id);
         Assert.AreEqual(testItem.Name, saveItem.Name);
         Assert.AreEqual(testItem.Description, saveItem.Description);
         Assert.AreEqual(testItem.ContributorId, saveItem.ContributorId);
         Assert.AreEqual(testItem.Comments, saveItem.Comments);
         Assert.AreEqual(testItem.AuditEntered, saveItem.AuditEntered);
         Assert.AreEqual(testItem.AuditEnteredBy, saveItem.AuditEnteredBy);
         Assert.AreEqual(testItem.AuditUpdated, saveItem.AuditUpdated);
         Assert.AreEqual(testItem.AuditUpdatedBy, saveItem.AuditUpdatedBy);
     }
 }