public void GetMethod__WhenCalledGetAllQuantities_ShouldReturnOkResult() { try { // Act var data = measurementController.GetAllQuantity(); // Assert Assert.IsType <OkObjectResult>(data); } catch (Exception e) { throw new Exception(e.Message); } }