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

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

            SetMockControllerExpectations <mobileDeviceRegistrationRequest, mobileDeviceRegistrationResponse, mobileDeviceRegistrationController>(
                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);
        }
	    public void MockmobileDeviceRegistrationTest()
	    {
		    //define all mocked objects as final
            var mockController = GetMockController<mobileDeviceRegistrationRequest, mobileDeviceRegistrationResponse>();
            var mockRequest = new mobileDeviceRegistrationRequest
                {
                    merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
                };
            var mockResponse = new mobileDeviceRegistrationResponse
                {
                    refId = "1234",
                    sessionToken = "sessiontoken",
                };

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

            SetMockControllerExpectations<mobileDeviceRegistrationRequest, mobileDeviceRegistrationResponse, mobileDeviceRegistrationController>(
                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);

        }
 public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument)
 {
     if (null != argument)
     {
     }
 }