public async void DeleteRemark_Should_Call_IRemarksRepository_DeleteRemark() { var remarkId = "remarkId"; await _service.DeleteRemark(remarkId); await _repository.Received(1).DeleteRemark(remarkId); }
public async Task <ActionResult <ApiResponse> > DeleteRemark(string remarkId, [FromServices] IRemarksService remarksService) { await remarksService.DeleteRemark(remarkId); return(ApiResponseHelper.Ok("Remark deleted.", remarkId)); }