Box.V2.Test.BoxCommentsManagerTest.DeleteComment_ValidResponse_CommentDeleted C# (CSharp) Метод

DeleteComment_ValidResponse_CommentDeleted() приватный Метод

private DeleteComment_ValidResponse_CommentDeleted ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
        public async Task DeleteComment_ValidResponse_CommentDeleted()
        {
            /*** Arrange ***/
            string responseString = "";
            IBoxRequest boxRequest = null;
            _handler.Setup(h => h.ExecuteAsync<BoxComment>(It.IsAny<IBoxRequest>()))
                .Returns(Task.FromResult<IBoxResponse<BoxComment>>(new BoxResponse<BoxComment>()
                {
                    Status = ResponseStatus.Success,
                    ContentString = responseString
                })).Callback<IBoxRequest>(r => boxRequest = r);

            /*** Act ***/
            bool result = await _commentsManager.DeleteAsync("191969");

            /*** Assert ***/
            /*** Request ***/
            Assert.AreEqual("191969", boxRequest.Path);
            /*** Response ***/
            Assert.AreEqual(true, result);
        }
    }