Exemplo n.º 1
0
 public void GivenTestCase_WhengetSpecificRecord_ReturnsResult()
 {
     try
     {
         var badResult = quantityMeasurementController.GetComparisonById(265);
         Assert.IsType <BadRequestObjectResult>(badResult);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public void GivenId_WhenGetByIdMethodUsed_ReturnsResult()
 {
     try
     {
         int id     = 13;
         var result = quantityMeasurementController.GetComparisonById(id);
         Assert.IsType <OkObjectResult>(result);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }