Beispiel #1
0
        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();
        }
Beispiel #2
0
        public async Task <ActionResult> Delete(string id)
        {
            await _answerManager.Delete(id);

            return(Ok());
        }