public async Task Get_Returns_GetConfirmationResponse() { var actionResult = await _controller.Confirmation(_accountId, _opportunityId); var createdResult = actionResult as OkObjectResult; Assert.IsNotNull(createdResult); var response = createdResult.Value as GetConfirmationResponse; Assert.IsNotNull(response); Assert.AreEqual(_result.AccountName, response.AccountName); Assert.AreEqual(_result.IsNamePublic, response.IsNamePublic); }