public void Delete_ShouldDeleteuserGeneralDataPoint()
        {
            // Arrange
            int id        = _generalDataPoints[0].Id;
            int userId    = _generalDataPoints[0].User.Id;
            int sectionId = _generalDataPoints[0].Section.Id;

            // Act
            _service.Delete(id, userId, sectionId);

            // Assert
            _repository.Verify(mock => mock.Delete(It.IsAny <GeneralDataPoint>()), Times.Once);
        }
 public ActionResult Delete(int userId, int sectionId, int id)
 {
     try
     {
         _service.Delete(id, userId, sectionId);
         return(NoContent());
     }
     catch (ArgumentNullException)
     {
         return(NotFound());
     }
 }