public void UpdateAthleteStopStatus() { // Arrange _iAthleteBAL = new AthleteBAL(_iAthleteDAL.Object, _iFitnessTestBAL.Object, _iMapper.Object, _ilogger.Object); // Act var mockId = 1; var result = _iAthleteBAL.UpdateAthleteStopStatus(mockId, "0-0"); // Assert Assert.True(result); }
public ActionResult UpdateAthleteStopStatus(int id, string testResult) { _ilogger.LogInformation($"Inside AthleteController, menthod name UpdateAthleteStopStatus, id = {id}, testResult = {testResult}"); bool status = false; if (id == 0) { return(Json(new { testResult, status })); } if (id > 0) { status = _iAthleteBAL.UpdateAthleteStopStatus(id, testResult); _ilogger.LogInformation($"UpdateAthleteStopStatus completed"); } return(Json(new { testResult, status })); }