public async Task GivenId_WhenDelete_ThenDeleteSuccessful() { //?Given var id = "1234"; _mockAnswerReposotory.Setup(x => x.Delete(id)) .Verifiable(); //?When await _answerManager.Delete(id); //?Then _mockAnswerReposotory.Verify(); }
public async Task <ActionResult> Delete(string id) { await _answerManager.Delete(id); return(Ok()); }