public void MockcreateTransactionTest()
	    {
		    //define all mocked objects as final
            var mockController = GetMockController<createTransactionRequest, createTransactionResponse>();
            var mockRequest = new createTransactionRequest
                {
                    merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
                };
            var transactionResponse = new transactionResponse()
                {
                    accountNumber = "1234",
                };
            var mockResponse = new createTransactionResponse
                {
                    refId = "1234",
                    sessionToken = "sessiontoken",
                    transactionResponse = transactionResponse,
                };

		    var errorResponse = new ANetApiResponse();
		    var results = new List<String>();
            const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;

            SetMockControllerExpectations<createTransactionRequest, createTransactionResponse, createTransactionController>(
                mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
            mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
            //mockController.MockObject.Execute();
            // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
            var controllerResponse = mockController.MockObject.GetApiResponse();
            Assert.IsNotNull(controllerResponse);

            Assert.IsNotNull(controllerResponse.transactionResponse);
            LogHelper.info(Logger, "createTransaction: Details:{0}", controllerResponse.transactionResponse);
	    }
 public static void transactionResponse(transactionResponse argument)
 {
     if (null != argument)
     {
         transactionResponsePrePaidCard(argument.prePaidCard);
         if (null != argument.messages) { foreach (var value in argument.messages) { transactionResponseMessage(value); } }
         if (null != argument.errors) { foreach (var value in argument.errors) { transactionResponseError(value); } }
         if (null != argument.splitTenderPayments) { foreach (var value in argument.splitTenderPayments) { transactionResponseSplitTenderPayment(value); } }
         if (null != argument.userFields) { foreach (var value in argument.userFields) { userField(value); } }
         nameAndAddressType(argument.shipTo);
         transactionResponseSecureAcceptance(argument.secureAcceptance);
     }
 }