public void MockgetTransactionDetailsTest()
	    {
		    //define all mocked objects as final
            var mockController = GetMockController<getTransactionDetailsRequest, getTransactionDetailsResponse>();
            var mockRequest = new getTransactionDetailsRequest
                {
                    merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
                };
            var transactionDetailsType = new transactionDetailsType
                {
                    AVSResponse = "avs",
                };
            var mockResponse = new getTransactionDetailsResponse
                {
                    refId = "1234",
                    sessionToken = "sessiontoken",
                    transaction = transactionDetailsType,
                };

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

            SetMockControllerExpectations<getTransactionDetailsRequest, getTransactionDetailsResponse, getTransactionDetailsController>(
                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.transaction);
            LogHelper.info(Logger, "getTransactionDetails: Details:{0}", controllerResponse.transaction);
	    }
 public static void transactionDetailsType(transactionDetailsType argument)
 {
     if (null != argument)
     {
         subscriptionPaymentType(argument.subscription);
         if (null != argument.FDSFilters) { foreach (var value in argument.FDSFilters) { FDSFilterType(value); } }
         batchDetailsType(argument.batch);
         orderExType(argument.order);
         if (0 <= argument.requestedAmount) { argument.requestedAmountSpecified = true; }
         extendedAmountType(argument.tax);
         extendedAmountType(argument.shipping);
         extendedAmountType(argument.duty);
         if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } }
         if (0 <= argument.prepaidBalanceRemaining) { argument.prepaidBalanceRemainingSpecified = true; }
         if (argument.taxExempt) { argument.taxExemptSpecified = true; }
         paymentMaskedType(argument.payment);
         customerDataType(argument.customer);
         customerAddressType(argument.billTo);
         nameAndAddressType(argument.shipTo);
         if (argument.recurringBilling) { argument.recurringBillingSpecified = true; }
         if (null != argument.returnedItems) { foreach (var value in argument.returnedItems) { returnedItemType(value); } }
         solutionType(argument.solution);
     }
 }
 public static void transactionDetailsType ( transactionDetailsType request) 
 {
     if (null != request)
     {
         if (0 <= request.requestedAmount) { request.requestedAmountSpecified = true; }
         if (0 <= request.prepaidBalanceRemaining) { request.prepaidBalanceRemainingSpecified = true; }
         if (request.taxExempt) { request.taxExemptSpecified = true; }
         if (request.recurringBilling) { request.recurringBillingSpecified = true; }
         lineItemType(request.lineItems);
     }
 }