diff --git a/.vs/AuthorizeNET/DesignTimeBuild/.dtbcache.v2 b/.vs/AuthorizeNET/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 00000000..bd668894 Binary files /dev/null and b/.vs/AuthorizeNET/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/AuthorizeNET/config/applicationhost.config b/.vs/AuthorizeNET/config/applicationhost.config new file mode 100644 index 00000000..0d88f0db --- /dev/null +++ b/.vs/AuthorizeNET/config/applicationhost.config @@ -0,0 +1,1016 @@ + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.vs/AuthorizeNET/project-colors.json b/.vs/AuthorizeNET/project-colors.json new file mode 100644 index 00000000..92b32b4d --- /dev/null +++ b/.vs/AuthorizeNET/project-colors.json @@ -0,0 +1,21 @@ +{ + "Version": 1, + "ProjectMap": { + "5d52eaec-42fb-4313-83b8-69e2f55ebf14": { + "ProjectGuid": "5d52eaec-42fb-4313-83b8-69e2f55ebf14", + "DisplayName": "AuthorizeNET", + "ColorIndex": 0 + }, + "cda0d4d8-e4aa-4bea-8839-04d69607d914": { + "ProjectGuid": "cda0d4d8-e4aa-4bea-8839-04d69607d914", + "DisplayName": "AuthorizeNETtest", + "ColorIndex": 1 + }, + "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": { + "ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3", + "DisplayName": "Miscellaneous Files", + "ColorIndex": -1 + } + }, + "NextColorIndex": 2 +} \ No newline at end of file diff --git a/.vs/AuthorizeNET/v17/.futdcache.v1 b/.vs/AuthorizeNET/v17/.futdcache.v1 new file mode 100644 index 00000000..e04e6335 Binary files /dev/null and b/.vs/AuthorizeNET/v17/.futdcache.v1 differ diff --git a/.vs/AuthorizeNET/v17/TestStore/0/044.testlog b/.vs/AuthorizeNET/v17/TestStore/0/044.testlog new file mode 100644 index 00000000..90a3073f Binary files /dev/null and b/.vs/AuthorizeNET/v17/TestStore/0/044.testlog differ diff --git a/.vs/AuthorizeNET/v17/TestStore/0/testlog.manifest b/.vs/AuthorizeNET/v17/TestStore/0/testlog.manifest new file mode 100644 index 00000000..e46a80d7 Binary files /dev/null and b/.vs/AuthorizeNET/v17/TestStore/0/testlog.manifest differ diff --git a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs index e4376c52..d346c999 100644 --- a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs +++ b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs @@ -8,6598 +8,7048 @@ // //------------------------------------------------------------------------------ -// +// // This source code was auto-generated by xsd, Version=4.6.1055.0. -// -namespace AuthorizeNet.Api.Contracts.V1 { - using System.Xml.Serialization; - - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class decryptPaymentDataRequest : ANetApiRequest { - - /// - public opaqueDataType opaqueData; - - /// - public string callId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class opaqueDataType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string dataDescriptor; - - /// - public string dataValue; - - /// - public string dataKey; - - /// - public System.DateTime expirationTimeStamp; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool expirationTimeStampSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class processorType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public int id; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("cardType")] - public string[] cardTypes; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auDetailsType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public long customerProfileID; - - /// - public long customerPaymentProfileID; - - /// - public string firstName; - - /// - public string lastName; - - /// - public string updateTimeUTC; - - /// - public string auReasonCode; - - /// - public string reasonDescription; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auDeleteType : auDetailsType { - - /// - public creditCardMaskedType creditCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string cardNumber; - - /// - public string expirationDate; - - /// - public string cardType; - - /// - public cardArt cardArt; - - /// - public string issuerNumber; - - /// - public bool isPaymentToken; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isPaymentTokenSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class cardArt : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string cardBrand; - - /// - public string cardImageHeight; - - /// - public string cardImageUrl; - - /// - public string cardImageWidth; - - /// - public string cardType; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auUpdateType : auDetailsType { - - /// - public creditCardMaskedType newCreditCard; - - /// - public creditCardMaskedType oldCreditCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auResponseType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string auReasonCode; - - /// - public long profileCount; - - /// - public string reasonDescription; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileListItemType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public int customerPaymentProfileId; - - /// - public int customerProfileId; - - /// - public customerAddressType billTo; - - /// - public paymentMaskedType payment; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerAddressType : nameAndAddressType { - - /// - public string phoneNumber; - - /// - public string faxNumber; - - /// - public string email; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class nameAndAddressType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string firstName; - - /// - public string lastName; - - /// - public string company; - - /// - public string address; - - /// - public string city; - - /// - public string state; - - /// - public string zip; - - /// - public string country; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerAddressExType : customerAddressType { - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))] - [System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))] - public object Item; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class bankAccountMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public bankAccountTypeEnum accountType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool accountTypeSpecified; - - /// - public string routingNumber; - - /// - public string accountNumber; - - /// - public string nameOnAccount; - - /// - public echeckTypeEnum echeckType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool echeckTypeSpecified; - - /// - public string bankName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum bankAccountTypeEnum { - - /// - checking, - - /// - savings, - - /// - businessChecking, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum echeckTypeEnum { - - /// - PPD, - - /// - WEB, - - /// - CCD, - - /// - TEL, - - /// - ARC, - - /// - BOC, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class tokenMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string tokenSource; - - /// - public string tokenNumber; - - /// - public string expirationDate; - - /// - public string tokenRequestorId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class CustomerPaymentProfileSorting : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public CustomerPaymentProfileOrderFieldEnum orderBy; - - /// - public bool orderDescending; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum CustomerPaymentProfileOrderFieldEnum { - - /// - id, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileSummaryType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string customerProfileId; - - /// - public string description; - - /// - public string merchantCustomerId; - - /// - public string email; - - /// - public System.DateTime createdDate; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class SubscriptionDetail : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public int id; - - /// - public string name; - - /// - public ARBSubscriptionStatusEnum status; - - /// - public System.DateTime createTimeStampUTC; - - /// - public string firstName; - - /// - public string lastName; - - /// - public int totalOccurrences; - - /// - public int pastOccurrences; - - /// - public paymentMethodEnum paymentMethod; - - /// - public string accountNumber; - - /// - public string invoice; - - /// - public decimal amount; - - /// - public string currencyCode; - - /// - public int customerProfileId; - - /// - public int customerPaymentProfileId; - - /// - public int customerShippingProfileId; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool customerShippingProfileIdSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBSubscriptionStatusEnum { - - /// - active, - - /// - expired, - - /// - suspended, - - /// - canceled, - - /// - terminated, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum paymentMethodEnum { - - /// - creditCard, - - /// - eCheck, - - /// - payPal, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBGetSubscriptionListSorting : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public ARBGetSubscriptionListOrderFieldEnum orderBy; - - /// - public bool orderDescending; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBGetSubscriptionListOrderFieldEnum { - - /// - id, - - /// - name, - - /// - status, - - /// - createTimeStampUTC, - - /// - lastName, - - /// - firstName, - - /// - accountNumber, - - /// - amount, - - /// - pastOccurrences, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class Paging : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public int limit; - - /// - public int offset; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class TransactionListSorting : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public TransactionListOrderFieldEnum orderBy; - - /// - public bool orderDescending; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum TransactionListOrderFieldEnum { - - /// - id, - - /// - submitTimeUTC, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class heldTransactionRequestType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public afdsTransactionEnum action; - - /// - public string refTransId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum afdsTransactionEnum { - - /// - approve, - - /// - decline, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class createProfileResponse : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public messagesType messages; - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerPaymentProfileIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerShippingAddressIdList; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class messagesType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public messageTypeEnum resultCode; - - /// - [System.Xml.Serialization.XmlElementAttribute("message")] - public messagesTypeMessage[] message; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum messageTypeEnum { - - /// - Ok, - - /// - Error, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class messagesTypeMessage : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string code; - - /// - public string text; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponse : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string responseCode; - - /// - public string rawResponseCode; - - /// - public string authCode; - - /// - public string avsResultCode; - - /// - public string cvvResultCode; - - /// - public string cavvResultCode; - - /// - public string transId; - - /// - public string refTransID; - - /// - public string transHash; - - /// - public string testRequest; - - /// - public string accountNumber; - - /// - public string entryMode; - - /// - public string accountType; - - /// - public string splitTenderId; - - /// - public transactionResponsePrePaidCard prePaidCard; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable=false)] - public transactionResponseMessage[] messages; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable=false)] - public transactionResponseError[] errors; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable=false)] - public transactionResponseSplitTenderPayment[] splitTenderPayments; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public userField[] userFields; - - /// - public nameAndAddressType shipTo; - - /// - public transactionResponseSecureAcceptance secureAcceptance; - - /// - public transactionResponseEmvResponse emvResponse; - - /// - public string transHashSha2; - - /// - public customerProfileIdType profile; - - /// - public string networkTransId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponsePrePaidCard : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string requestedAmount; - - /// - public string approvedAmount; - - /// - public string balanceOnCard; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseMessage : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string code; - - /// - public string description; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseError : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string errorCode; - - /// - public string errorText; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseSplitTenderPayment : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string transId; - - /// - public string responseCode; - - /// - public string responseToCustomer; - - /// - public string authCode; - - /// - public string accountNumber; - - /// - public string accountType; - - /// - public string requestedAmount; - - /// - public string approvedAmount; - - /// - public string balanceOnCard; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class userField : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public string value; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseSecureAcceptance : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string SecureAcceptanceUrl; - - /// - public string PayerID; - - /// - public string PayerEmail; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseEmvResponse : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string tlvData; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)] - public emvTag[] tags; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class emvTag : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public string value; - - /// - public string formatted; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileIdType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerAddressId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class returnedItemType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string id; - - /// - public System.DateTime dateUTC; - - /// - public System.DateTime dateLocal; - - /// - public string code; - - /// - public string description; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionDetailsType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string transId; - - /// - public string refTransId; - - /// - public string splitTenderId; - - /// - public System.DateTime submitTimeUTC; - - /// - public System.DateTime submitTimeLocal; - - /// - public string transactionType; - - /// - public string transactionStatus; - - /// - public int responseCode; - - /// - public int responseReasonCode; - - /// - public subscriptionPaymentType subscription; - - /// - public string responseReasonDescription; - - /// - public string authCode; - - /// - public string AVSResponse; - - /// - public string cardCodeResponse; - - /// - public string CAVVResponse; - - /// - public string FDSFilterAction; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable=false)] - public FDSFilterType[] FDSFilters; - - /// - public batchDetailsType batch; - - /// - public orderExType order; - - /// - public decimal requestedAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool requestedAmountSpecified; - - /// - public decimal authAmount; - - /// - public decimal settleAmount; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType shipping; - - /// - public extendedAmountType duty; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)] - public lineItemType[] lineItems; - - /// - public decimal prepaidBalanceRemaining; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool prepaidBalanceRemainingSpecified; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public paymentMaskedType payment; - - /// - public customerDataType customer; - - /// - public customerAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public bool recurringBilling; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool recurringBillingSpecified; - - /// - public string customerIP; - - /// - public string product; - - /// - public string entryMode; - - /// - public string marketType; - - /// - public string mobileDeviceId; - - /// - public string customerSignature; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable=false)] - public returnedItemType[] returnedItems; - - /// - public solutionType solution; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)] - public transactionDetailsTypeTag[] emvDetails; - - /// - public customerProfileIdType profile; - - /// - public extendedAmountType surcharge; - - /// - public string employeeId; - - /// - public extendedAmountType tip; - - /// - public otherTaxType otherTax; - - /// - public nameAndAddressType shipFrom; - - /// - public string networkTransId; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - - /// - public string authorizationIndicator; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subscriptionPaymentType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public int id; - - /// - public int payNum; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class FDSFilterType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public string action; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class batchDetailsType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string batchId; - - /// - public System.DateTime settlementTimeUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool settlementTimeUTCSpecified; - - /// - public System.DateTime settlementTimeLocal; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool settlementTimeLocalSpecified; - - /// - public string settlementState; - - /// - public string paymentMethod; - - /// - public string marketType; - - /// - public string product; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable=false)] - public batchStatisticType[] statistics; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class batchStatisticType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string accountType; - - /// - public decimal chargeAmount; - - /// - public int chargeCount; - - /// - public decimal refundAmount; - - /// - public int refundCount; - - /// - public int voidCount; - - /// - public int declineCount; - - /// - public int errorCount; - - /// - public decimal returnedItemAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool returnedItemAmountSpecified; - - /// - public int returnedItemCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool returnedItemCountSpecified; - - /// - public decimal chargebackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargebackAmountSpecified; - - /// - public int chargebackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargebackCountSpecified; - - /// - public int correctionNoticeCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool correctionNoticeCountSpecified; - - /// - public decimal chargeChargeBackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeChargeBackAmountSpecified; - - /// - public int chargeChargeBackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeChargeBackCountSpecified; - - /// - public decimal refundChargeBackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundChargeBackAmountSpecified; - - /// - public int refundChargeBackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundChargeBackCountSpecified; - - /// - public decimal chargeReturnedItemsAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeReturnedItemsAmountSpecified; - - /// - public int chargeReturnedItemsCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeReturnedItemsCountSpecified; - - /// - public decimal refundReturnedItemsAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundReturnedItemsAmountSpecified; - - /// - public int refundReturnedItemsCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundReturnedItemsCountSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class orderExType : orderType { - - /// - public string purchaseOrderNumber; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class orderType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string invoiceNumber; - - /// - public string description; - - /// - public decimal discountAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountAmountSpecified; - - /// - public bool taxIsAfterDiscount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIsAfterDiscountSpecified; - - /// - public string totalTaxTypeCode; - - /// - public string purchaserVATRegistrationNumber; - - /// - public string merchantVATRegistrationNumber; - - /// - public string vatInvoiceReferenceNumber; - - /// - public string purchaserCode; - - /// - public string summaryCommodityCode; - - /// - [System.Xml.Serialization.XmlElementAttribute(DataType="date")] - public System.DateTime purchaseOrderDateUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool purchaseOrderDateUTCSpecified; - - /// - public string supplierOrderReference; - - /// - public string authorizedContactName; - - /// - public string cardAcceptorRefNumber; - - /// - public string amexDataTAA1; - - /// - public string amexDataTAA2; - - /// - public string amexDataTAA3; - - /// - public string amexDataTAA4; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class extendedAmountType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public decimal amount; - - /// - public string name; - - /// - public string description; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class lineItemType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string itemId; - - /// - public string name; - - /// - public string description; - - /// - public decimal quantity; - - /// - public decimal unitPrice; - - /// - public bool taxable; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxableSpecified; - - /// - public string unitOfMeasure; - - /// - public string typeOfSupply; - - /// - public decimal taxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxRateSpecified; - - /// - public decimal taxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxAmountSpecified; - - /// - public decimal nationalTax; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool nationalTaxSpecified; - - /// - public decimal localTax; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool localTaxSpecified; - - /// - public decimal vatRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatRateSpecified; - - /// - public string alternateTaxId; - - /// - public string alternateTaxType; - - /// - public string alternateTaxTypeApplied; - - /// - public decimal alternateTaxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxRateSpecified; - - /// - public decimal alternateTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxAmountSpecified; - - /// - public decimal totalAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalAmountSpecified; - - /// - public string commodityCode; - - /// - public string productCode; - - /// - public string productSKU; - - /// - public decimal discountRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountRateSpecified; - - /// - public decimal discountAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountAmountSpecified; - - /// - public bool taxIncludedInTotal; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIncludedInTotalSpecified; - - /// - public bool taxIsAfterDiscount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIsAfterDiscountSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerDataType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public customerTypeEnum type; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool typeSpecified; - - /// - public string id; - - /// - public string email; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum customerTypeEnum { - - /// - individual, - - /// - business, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class driversLicenseType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string number; - - /// - public string state; - - /// - public string dateOfBirth; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class solutionType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string id; - - /// - public string name; - - /// - public string vendorName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionDetailsTypeTag : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string tagId; - - /// - public string data; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class otherTaxType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public decimal nationalTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool nationalTaxAmountSpecified; - - /// - public decimal localTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool localTaxAmountSpecified; - - /// - public decimal alternateTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxAmountSpecified; - - /// - public string alternateTaxId; - - /// - public decimal vatTaxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatTaxRateSpecified; - - /// - public decimal vatTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatTaxAmountSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransactionType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))] - public object Item; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAuthCaptureType : profileTransOrderType { - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransOrderType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public orderExType order; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public bool recurringBilling; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool recurringBillingSpecified; - - /// - public string cardCode; - - /// - public string splitTenderId; - - /// - public processingOptions processingOptions; - - /// - public subsequentAuthInformation subsequentAuthInformation; - - /// - public authorizationIndicatorType authorizationIndicatorType; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class processingOptions : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public bool isFirstRecurringPayment; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isFirstRecurringPaymentSpecified; - - /// - public bool isFirstSubsequentAuth; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isFirstSubsequentAuthSpecified; - - /// - public bool isSubsequentAuth; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isSubsequentAuthSpecified; - - /// - public bool isStoredCredentials; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isStoredCredentialsSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subsequentAuthInformation : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - - /// - public merchantInitTransReasonEnum reason; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool reasonSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum merchantInitTransReasonEnum { - - /// - resubmission, - - /// - delayedCharge, - - /// - reauthorization, - - /// - noShow, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class authorizationIndicatorType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public authIndicatorEnum authorizationIndicator; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool authorizationIndicatorSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum authIndicatorEnum { - - /// - pre, - - /// - final, - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAmountType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public decimal amount; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType shipping; - - /// - public extendedAmountType duty; - - /// - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public lineItemType[] lineItems; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransRefundType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string creditCardNumberMasked; - - /// - public string bankRoutingNumberMasked; - - /// - public string bankAccountNumberMasked; - - /// - public orderExType order; - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransPriorAuthCaptureType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransCaptureOnlyType : profileTransOrderType { - - /// - public string approvalCode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAuthOnlyType : profileTransOrderType { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransVoidType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string transId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentProfile : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string paymentProfileId; - - /// - public string cardCode; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfilePaymentType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public bool createProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool createProfileSpecified; - - /// - public string customerProfileId; - - /// - public paymentProfile paymentProfile; - - /// - public string shippingProfileId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionRequestType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string transactionType; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public string currencyCode; - - /// - public paymentType payment; - - /// - public customerProfilePaymentType profile; - - /// - public solutionType solution; - - /// - public string callId; - - /// - public string terminalNumber; - - /// - public string authCode; - - /// - public string refTransId; - - /// - public string splitTenderId; - - /// - public orderType order; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)] - public lineItemType[] lineItems; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType duty; - - /// - public extendedAmountType shipping; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public string poNumber; - - /// - public customerDataType customer; - - /// - public customerAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public string customerIP; - - /// - public ccAuthenticationType cardholderAuthentication; - - /// - public transRetailInfoType retail; - - /// - public string employeeId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] transactionSettings; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public userField[] userFields; - - /// - public extendedAmountType surcharge; - - /// - public string merchantDescriptor; - - /// - public subMerchantType subMerchant; - - /// - public extendedAmountType tip; - - /// - public processingOptions processingOptions; - - /// - public subsequentAuthInformation subsequentAuthInformation; - - /// - public otherTaxType otherTax; - - /// - public nameAndAddressType shipFrom; - - /// - public authorizationIndicatorType authorizationIndicatorType; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))] - [System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))] - [System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))] - [System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))] - [System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))] - [System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))] - public object Item; - - /// - public string dataSource; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class bankAccountType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public bankAccountTypeEnum accountType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool accountTypeSpecified; - - /// - public string routingNumber; - - /// - public string accountNumber; - - /// - public string nameOnAccount; - - /// - public echeckTypeEnum echeckType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool echeckTypeSpecified; - - /// - public string bankName; - - /// - public string checkNumber; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardType : creditCardSimpleType { - - /// - public string cardCode; - - /// - public bool isPaymentToken; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isPaymentTokenSpecified; - - /// - public string cryptogram; - - /// - public string tokenRequestorName; - - /// - public string tokenRequestorId; - - /// - public string tokenRequestorEci; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardSimpleType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string cardNumber; - - /// - public string expirationDate; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentEmvType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public object emvData; - - /// - public object emvDescriptor; - - /// - public object emvVersion; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class encryptedTrackDataType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public KeyBlock FormOfPayment; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyBlock : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public KeyValue Value; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyValue : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public EncodingType Encoding; - - /// - public EncryptionAlgorithmType EncryptionAlgorithm; - - /// - public KeyManagementScheme Scheme; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum EncodingType { - - /// - Base64, - - /// - Hex, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum EncryptionAlgorithmType { - - /// - TDES, - - /// - AES, - - /// - RSA, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementScheme : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public KeyManagementSchemeDUKPT DUKPT; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPT : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public OperationType Operation; - - /// - public KeyManagementSchemeDUKPTMode Mode; - - /// - public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo; - - /// - public KeyManagementSchemeDUKPTEncryptedData EncryptedData; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum OperationType { - - /// - DECRYPT, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTMode : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string PIN; - - /// - public string Data; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTDeviceInfo : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string Description; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTEncryptedData : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string Value; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class payPalType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string successUrl; - - /// - public string cancelUrl; - - /// - public string paypalLc; - - /// - public string paypalHdrImg; - - /// - public string paypalPayflowcolor; - - /// - public string payerID; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardTrackType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))] - [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] - public string Item; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public ItemChoiceType1 ItemElementName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)] - public enum ItemChoiceType1 { - - /// - track1, - - /// - track2, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ccAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string authenticationIndicator; - - /// - public string cardholderAuthenticationValue; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transRetailInfoType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.ComponentModel.DefaultValueAttribute("2")] - public string marketType; - - /// - public string deviceType; - - /// - public string customerSignature; - - /// - public string terminalNumber; - - public transRetailInfoType() { - this.marketType = "2"; - } - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class settingType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string settingName; - - /// - public string settingValue; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subMerchantType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string identifier; - - /// - public string doingBusinessAs; - - /// - public string paymentServiceProviderName; - - /// - public string paymentServiceFacilitator; - - /// - public string streetAddress; - - /// - public string phone; - - /// - public string email; - - /// - public string postalCode; - - /// - public string city; - - /// - public string regionCode; - - /// - public string countryCode; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class mobileDeviceType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string mobileDeviceId; - - /// - public string description; - - /// - public string phoneNumber; - - /// - public string devicePlatform; - - /// - public deviceActivationEnum deviceActivation; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool deviceActivationSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum deviceActivationEnum { - - /// - Activate, - - /// - Disable, - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public customerTypeEnum customerType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool customerTypeSpecified; - - /// - public customerAddressType billTo; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public paymentMaskedType payment; - - /// - public driversLicenseMaskedType driversLicense; - - /// - public string taxId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class driversLicenseMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string number; - - /// - public string state; - - /// - public string dateOfBirth; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileType : customerPaymentProfileBaseType { - - /// - public paymentType payment; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public subsequentAuthInformation subsequentAuthInformation; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileExType : customerPaymentProfileType { - - /// - public string customerPaymentProfileId; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string merchantCustomerId; - - /// - public string description; - - /// - public string email; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileExType : customerProfileBaseType { - - /// - public string customerProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileMaskedType : customerProfileExType { - - /// - [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] - public customerPaymentProfileMaskedType[] paymentProfiles; - - /// - [System.Xml.Serialization.XmlElementAttribute("shipToList")] - public customerAddressExType[] shipToList; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum customerProfileTypeEnum { - - /// - regular, - - /// - guest, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileInfoExType : customerProfileExType { - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subscriptionCustomerProfileType : customerProfileExType { - - /// - public customerPaymentProfileMaskedType paymentProfile; - - /// - public customerAddressExType shippingProfile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileType : customerProfileBaseType { - - /// - [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] - public customerPaymentProfileType[] paymentProfiles; - - /// - [System.Xml.Serialization.XmlElementAttribute("shipToList")] - public customerAddressType[] shipToList; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBSubscriptionMaskedType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public paymentScheduleType paymentSchedule; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public decimal trialAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialAmountSpecified; - - /// - public ARBSubscriptionStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - - /// - public subscriptionCustomerProfileType profile; - - /// - public orderType order; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public arbTransaction[] arbTransactions; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentScheduleType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public paymentScheduleTypeInterval interval; - - /// - [System.Xml.Serialization.XmlElementAttribute(DataType="date")] - public System.DateTime startDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool startDateSpecified; - - /// - public short totalOccurrences; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalOccurrencesSpecified; - - /// - public short trialOccurrences; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialOccurrencesSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentScheduleTypeInterval : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public short length; - - /// - public ARBSubscriptionUnitEnum unit; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBSubscriptionUnitEnum { - - /// - days, - - /// - months, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class arbTransaction : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string transId; - - /// - public string response; - - /// - public System.DateTime submitTimeUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool submitTimeUTCSpecified; - - /// - public int payNum; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool payNumSpecified; - - /// - public int attemptNum; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool attemptNumSpecified; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class securePaymentContainerErrorType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string code; - - /// - public string description; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public customerTypeEnum type; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool typeSpecified; - - /// - public string id; - - /// - public string email; - - /// - public string phoneNumber; - - /// - public string faxNumber; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentSimpleType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))] - public object Item; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class merchantContactType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string merchantName; - - /// - public string merchantAddress; - - /// - public string merchantCity; - - /// - public string merchantState; - - /// - public string merchantZip; - - /// - public string merchantPhone; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ContactDetailType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string email; - - /// - public string firstName; - - /// - public string lastName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class permissionType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string permissionName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ArrayOfSetting : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlElementAttribute("setting")] - public settingType[] setting; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class emailSettingsType : ArrayOfSetting { - - /// - [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")] - public string version; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class fraudInformationType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable=false)] - public string[] fraudFilterList; - - /// - public string fraudAction; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionSummaryType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string transId; - - /// - public System.DateTime submitTimeUTC; - - /// - public System.DateTime submitTimeLocal; - - /// - public string transactionStatus; - - /// - public string invoiceNumber; - - /// - public string firstName; - - /// - public string lastName; - - /// - public string accountType; - - /// - public string accountNumber; - - /// - public decimal settleAmount; - - /// - public string marketType; - - /// - public string product; - - /// - public string mobileDeviceId; - - /// - public subscriptionPaymentType subscription; - - /// - public bool hasReturnedItems; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool hasReturnedItemsSpecified; - - /// - public fraudInformationType fraudInformation; - - /// - public customerProfileIdType profile; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBSubscriptionType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - public paymentScheduleType paymentSchedule; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public decimal trialAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialAmountSpecified; - - /// - public paymentType payment; - - /// - public orderType order; - - /// - public customerType customer; - - /// - public nameAndAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public customerProfileIdType profile; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class webCheckOutDataTypeToken : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string cardNumber; - - /// - public string expirationDate; - - /// - public string cardCode; - - /// - public string zip; - - /// - public string fullName; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class webCheckOutDataType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public webCheckOutTypeEnum type; - - /// - public string id; - - /// - public webCheckOutDataTypeToken token; - - /// - public bankAccountType bankToken; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum webCheckOutTypeEnum { - - /// - PAN, - - /// - TOKEN, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentDetails : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string currency; - - /// - public string promoCode; - - /// - public string misc; - - /// - public string giftWrap; - - /// - public string discount; - - /// - public string tax; - - /// - public string shippingHandling; - - /// - public string subTotal; - - /// - public string orderID; - - /// - public string amount; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class fingerPrintType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string hashValue; - - /// - public string sequence; - - /// - public string timestamp; - - /// - public string currencyCode; - - /// - public string amount; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class impersonationAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string partnerLoginId; - - /// - public string partnerTransactionKey; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class merchantAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string name; - - /// - [System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))] - [System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))] - [System.Xml.Serialization.XmlElementAttribute("password", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))] - [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] - public object Item; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public ItemChoiceType ItemElementName; - - /// - public string mobileDeviceId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)] - public enum ItemChoiceType { - - /// - accessToken, - - /// - clientKey, - - /// - fingerPrint, - - /// - impersonationAuthentication, - - /// - password, - - /// - sessionToken, - - /// - transactionKey, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ANetApiRequest : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public merchantAuthenticationType merchantAuthentication; - - /// - public string clientId; - - /// - public string refId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class decryptPaymentDataResponse : ANetApiResponse { - - /// - public customerAddressType shippingInfo; - - /// - public customerAddressType billingInfo; - - /// - public creditCardMaskedType cardInfo; - - /// - public paymentDetails paymentDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ANetApiResponse : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string refId; - - /// - public messagesType messages; - - /// - public string sessionToken; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class securePaymentContainerRequest : ANetApiRequest { - - /// - public webCheckOutDataType data; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class securePaymentContainerResponse : ANetApiResponse { - - /// - public opaqueDataType opaqueData; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class isAliveRequest : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public string refId; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class isAliveResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class authenticateTestRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class authenticateTestResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCreateSubscriptionRequest : ANetApiRequest { - - /// - public ARBSubscriptionType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCreateSubscriptionResponse : ANetApiResponse { - - /// - public string subscriptionId; - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBUpdateSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - - /// - public ARBSubscriptionType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBUpdateSubscriptionResponse : ANetApiResponse { - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCancelSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCancelSubscriptionResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest { - - /// - public string subscriptionId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse { - - /// - public ARBSubscriptionStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileRequest : ANetApiRequest { - - /// - public customerProfileType profile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum validationModeEnum { - - /// - none, - - /// - testMode, - - /// - liveMode, - - /// - oldLiveMode, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerPaymentProfileIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerShippingAddressIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public string[] validationDirectResponseList; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerPaymentProfileType paymentProfile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string validationDirectResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerAddressType address; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerShippingAddressResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest { - - /// - public string transId; - - /// - public customerProfileBaseType customer; - - /// - public string customerProfileId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string merchantCustomerId; - - /// - public string email; - - /// - public bool unmaskExpirationDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool unmaskExpirationDateSpecified; - - /// - public bool includeIssuerInfo; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeIssuerInfoSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileResponse : ANetApiResponse { - - /// - public customerProfileMaskedType profile; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public bool unmaskExpirationDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool unmaskExpirationDateSpecified; - - /// - public bool includeIssuerInfo; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeIssuerInfoSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public customerPaymentProfileMaskedType paymentProfile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerShippingAddressResponse : ANetApiResponse { - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - - /// - public customerAddressExType address; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerProfileRequest : ANetApiRequest { - - /// - public customerProfileExType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerPaymentProfileExType paymentProfile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string validationDirectResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerAddressExType address; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerShippingAddressResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerShippingAddressResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileTransactionRequest : ANetApiRequest { - - /// - public profileTransactionType transaction; - - /// - public string extraOptions; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - - /// - public string directResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class validateCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string cardCode; - - /// - public validationModeEnum validationMode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class validateCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string directResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileIdsRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileIdsResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] ids; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateSplitTenderGroupRequest : ANetApiRequest { - - /// - public string splitTenderId; - - /// - public splitTenderStatusEnum splitTenderStatus; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum splitTenderStatusEnum { - - /// - completed, - - /// - held, - - /// - voided, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateSplitTenderGroupResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionDetailsRequest : ANetApiRequest { - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionDetailsResponse : ANetApiResponse { - - /// - public transactionDetailsType transaction; - - /// - public string clientId; - - /// - public string transrefId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createTransactionRequest : ANetApiRequest { - - /// - public transactionRequestType transactionRequest; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - - /// - public createProfileResponse profileResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateHeldTransactionRequest : ANetApiRequest { - - /// - public heldTransactionRequestType heldTransactionRequest; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateHeldTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getBatchStatisticsRequest : ANetApiRequest { - - /// - public string batchId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getBatchStatisticsResponse : ANetApiResponse { - - /// - public batchDetailsType batch; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getSettledBatchListRequest : ANetApiRequest { - - /// - public bool includeStatistics; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeStatisticsSpecified; - - /// - public System.DateTime firstSettlementDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool firstSettlementDateSpecified; - - /// - public System.DateTime lastSettlementDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool lastSettlementDateSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getSettledBatchListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable=false)] - public batchDetailsType[] batchList; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListRequest : ANetApiRequest { - - /// - public string batchId; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)] - public transactionSummaryType[] transactions; - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedProfilePageRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] hostedProfileSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedProfilePageResponse : ANetApiResponse { - - /// - public string token; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getUnsettledTransactionListRequest : ANetApiRequest { - - /// - public TransactionGroupStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum TransactionGroupStatusEnum { - - /// - any, - - /// - pendingApproval, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedPaymentPageRequest : ANetApiRequest { - - /// - public transactionRequestType transactionRequest; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] hostedPaymentSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedPaymentPageResponse : ANetApiResponse { - - /// - public string token; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getUnsettledTransactionListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)] - public transactionSummaryType[] transactions; - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceRegistrationRequest : ANetApiRequest { - - /// - public mobileDeviceType mobileDevice; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceRegistrationResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceLoginRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceLoginResponse : ANetApiResponse { - - /// - public merchantContactType merchantContact; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable=false)] - public permissionType[] userPermissions; - - /// - public transRetailInfoType merchantAccount; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class logoutRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class logoutResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest { - - /// - public string transId; - - /// - public string customerEmail; - - /// - public emailSettingsType emailSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionListRequest : ANetApiRequest { - - /// - public ARBGetSubscriptionListSearchTypeEnum searchType; - - /// - public ARBGetSubscriptionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBGetSubscriptionListSearchTypeEnum { - - /// - cardExpiringThisMonth, - - /// - subscriptionActive, - - /// - subscriptionExpiringThisMonth, - - /// - subscriptionInactive, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionListResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")] - public SubscriptionDetail[] subscriptionDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class EnumCollection : object, System.ComponentModel.INotifyPropertyChanged { - - /// - public customerProfileSummaryType customerProfileSummaryType; - - /// - public paymentSimpleType paymentSimpleType; - - /// - public accountTypeEnum accountTypeEnum; - - /// - public cardTypeEnum cardTypeEnum; - - /// - public FDSFilterActionEnum FDSFilterActionEnum; - - /// - public permissionsEnum permissionsEnum; - - /// - public settingNameEnum settingNameEnum; - - /// - public settlementStateEnum settlementStateEnum; - - /// - public transactionStatusEnum transactionStatusEnum; - - /// - public transactionTypeEnum transactionTypeEnum; - - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected void RaisePropertyChanged(string propertyName) { - System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; - if ((propertyChanged != null)) { - propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum accountTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - AmericanExpress, - - /// - Discover, - - /// - JCB, - - /// - DinersClub, - - /// - eCheck, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum cardTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - AmericanExpress, - - /// - Discover, - - /// - JCB, - - /// - DinersClub, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum FDSFilterActionEnum { - - /// - reject, - - /// - decline, - - /// - hold, - - /// - authAndHold, - - /// - report, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum permissionsEnum { - - /// - API_Merchant_BasicReporting, - - /// - Submit_Charge, - - /// - Submit_Refund, - - /// - Submit_Update, - - /// - Mobile_Admin, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum settingNameEnum { - - /// - emailCustomer, - - /// - merchantEmail, - - /// - allowPartialAuth, - - /// - headerEmailReceipt, - - /// - footerEmailReceipt, - - /// - recurringBilling, - - /// - duplicateWindow, - - /// - testRequest, - - /// - hostedProfileReturnUrl, - - /// - hostedProfileReturnUrlText, - - /// - hostedProfilePageBorderVisible, - - /// - hostedProfileIFrameCommunicatorUrl, - - /// - hostedProfileHeadingBgColor, - - /// - hostedProfileValidationMode, - - /// - hostedProfileBillingAddressRequired, - - /// - hostedProfileCardCodeRequired, - - /// - hostedProfileBillingAddressOptions, - - /// - hostedProfileManageOptions, - - /// - hostedPaymentIFrameCommunicatorUrl, - - /// - hostedPaymentButtonOptions, - - /// - hostedPaymentReturnOptions, - - /// - hostedPaymentOrderOptions, - - /// - hostedPaymentPaymentOptions, - - /// - hostedPaymentBillingAddressOptions, - - /// - hostedPaymentShippingAddressOptions, - - /// - hostedPaymentSecurityOptions, - - /// - hostedPaymentCustomerOptions, - - /// - hostedPaymentStyleOptions, - - /// - typeEmailReceipt, - - /// - hostedProfilePaymentOptions, - - /// - hostedProfileSaveButtonText, - - /// - hostedPaymentVisaCheckoutOptions, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum settlementStateEnum { - - /// - settledSuccessfully, - - /// - settlementError, - - /// - pendingSettlement, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum transactionStatusEnum { - - /// - authorizedPendingCapture, - - /// - capturedPendingSettlement, - - /// - communicationError, - - /// - refundSettledSuccessfully, - - /// - refundPendingSettlement, - - /// - approvedReview, - - /// - declined, - - /// - couldNotVoid, - - /// - expired, - - /// - generalError, - - /// - pendingFinalSettlement, - - /// - pendingSettlement, - - /// - failedReview, - - /// - settledSuccessfully, - - /// - settlementError, - - /// - underReview, - - /// - updatingSettlement, - - /// - voided, - - /// - FDSPendingReview, - - /// - FDSAuthorizedPendingReview, - - /// - returnedItem, - - /// - chargeback, - - /// - chargebackReversal, - - /// - authorizedPendingRelease, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum transactionTypeEnum { - - /// - authOnlyTransaction, - - /// - authCaptureTransaction, - - /// - captureOnlyTransaction, - - /// - refundTransaction, - - /// - priorAuthCaptureTransaction, - - /// - voidTransaction, - - /// - getDetailsTransaction, - - /// - authOnlyContinueTransaction, - - /// - authCaptureContinueTransaction, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileListRequest : ANetApiRequest { - - /// - public CustomerPaymentProfileSearchTypeEnum searchType; - - /// - public string month; - - /// - public CustomerPaymentProfileSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum CustomerPaymentProfileSearchTypeEnum { - - /// - cardsExpiringInMonth, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileListResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")] - public customerPaymentProfileListItemType[] paymentProfiles; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - - /// - public bool includeTransactions; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeTransactionsSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionResponse : ANetApiResponse { - - /// - public ARBSubscriptionMaskedType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListForCustomerRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobSummaryRequest : ANetApiRequest { - - /// - public string month; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobSummaryResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable=false)] - public auResponseType[] auSummary; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobDetailsRequest : ANetApiRequest { - - /// - public string month; - - /// - public AUJobTypeEnum modifiedTypeFilter; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool modifiedTypeFilterSpecified; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum AUJobTypeEnum { - - /// - all, - - /// - updates, - - /// - deletes, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobDetailsResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)] - [System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)] - public auDetailsType[] auDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getMerchantDetailsRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getMerchantDetailsResponse : ANetApiResponse { - - /// - public bool isTestMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isTestModeSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("processor")] - public processorType[] processors; - - /// - public string merchantName; - - /// - public string gatewayId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("marketType")] - public string[] marketTypes; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("productCode")] - public string[] productCodes; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")] - public System.Nullable[] paymentMethods; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("currency")] - public string[] currencies; - - /// - public string publicClientKey; - - /// - public customerAddressType businessInformation; - - /// - public string merchantTimeZone; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable=false)] - public ContactDetailType[] contactDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum paymentMethodsTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - Discover, - - /// - AmericanExpress, - - /// - DinersClub, - - /// - JCB, - - /// - EnRoute, - - /// - Echeck, - - /// - Paypal, - - /// - VisaCheckout, - - /// - ApplePay, - - /// - AndroidPay, - - /// - GooglePay, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateMerchantDetailsRequest : ANetApiRequest { - - /// - public bool isTestMode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateMerchantDetailsResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest { - - /// - public string connectedAccessToken; - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse { - - /// - public opaqueDataType opaqueData; - } +// +namespace AuthorizeNet.Api.Contracts.V1 +{ + using System.Xml.Serialization; + + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class decryptPaymentDataRequest : ANetApiRequest + { + + /// + public opaqueDataType opaqueData; + + /// + public string callId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class opaqueDataType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string dataDescriptor; + + /// + public string dataValue; + + /// + public string dataKey; + + /// + public System.DateTime expirationTimeStamp; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool expirationTimeStampSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class processorType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public int id; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("cardType")] + public string[] cardTypes; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auDetailsType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public long customerProfileID; + + /// + public long customerPaymentProfileID; + + /// + public string firstName; + + /// + public string lastName; + + /// + public string updateTimeUTC; + + /// + public string auReasonCode; + + /// + public string reasonDescription; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auDeleteType : auDetailsType + { + + /// + public creditCardMaskedType creditCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string cardNumber; + + /// + public string expirationDate; + + /// + public string cardType; + + /// + public cardArt cardArt; + + /// + public string issuerNumber; + + /// + public bool isPaymentToken; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isPaymentTokenSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class cardArt : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string cardBrand; + + /// + public string cardImageHeight; + + /// + public string cardImageUrl; + + /// + public string cardImageWidth; + + /// + public string cardType; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auUpdateType : auDetailsType + { + + /// + public creditCardMaskedType newCreditCard; + + /// + public creditCardMaskedType oldCreditCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auResponseType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string auReasonCode; + + /// + public long profileCount; + + /// + public string reasonDescription; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileListItemType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public int customerPaymentProfileId; + + /// + public int customerProfileId; + + /// + public customerAddressType billTo; + + /// + public paymentMaskedType payment; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerAddressType : nameAndAddressType + { + + /// + public string phoneNumber; + + /// + public string faxNumber; + + /// + public string email; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class nameAndAddressType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string firstName; + + /// + public string lastName; + + /// + public string company; + + /// + public string address; + + /// + public string city; + + /// + public string state; + + /// + public string zip; + + /// + public string country; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerAddressExType : customerAddressType + { + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))] + [System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))] + public object Item; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class bankAccountMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public bankAccountTypeEnum accountType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool accountTypeSpecified; + + /// + public string routingNumber; + + /// + public string accountNumber; + + /// + public string nameOnAccount; + + /// + public echeckTypeEnum echeckType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool echeckTypeSpecified; + + /// + public string bankName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum bankAccountTypeEnum + { + + /// + checking, + + /// + savings, + + /// + businessChecking, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum echeckTypeEnum + { + + /// + PPD, + + /// + WEB, + + /// + CCD, + + /// + TEL, + + /// + ARC, + + /// + BOC, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class tokenMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string tokenSource; + + /// + public string tokenNumber; + + /// + public string expirationDate; + + /// + public string tokenRequestorId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class CustomerPaymentProfileSorting : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public CustomerPaymentProfileOrderFieldEnum orderBy; + + /// + public bool orderDescending; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum CustomerPaymentProfileOrderFieldEnum + { + + /// + id, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileSummaryType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string customerProfileId; + + /// + public string description; + + /// + public string merchantCustomerId; + + /// + public string email; + + /// + public System.DateTime createdDate; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class SubscriptionDetail : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public int id; + + /// + public string name; + + /// + public ARBSubscriptionStatusEnum status; + + /// + public System.DateTime createTimeStampUTC; + + /// + public string firstName; + + /// + public string lastName; + + /// + public int totalOccurrences; + + /// + public int pastOccurrences; + + /// + public paymentMethodEnum paymentMethod; + + /// + public string accountNumber; + + /// + public string invoice; + + /// + public decimal amount; + + /// + public string currencyCode; + + /// + public int customerProfileId; + + /// + public int customerPaymentProfileId; + + /// + public int customerShippingProfileId; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool customerShippingProfileIdSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBSubscriptionStatusEnum + { + + /// + active, + + /// + expired, + + /// + suspended, + + /// + canceled, + + /// + terminated, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum paymentMethodEnum + { + + /// + creditCard, + + /// + eCheck, + + /// + payPal, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBGetSubscriptionListSorting : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public ARBGetSubscriptionListOrderFieldEnum orderBy; + + /// + public bool orderDescending; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBGetSubscriptionListOrderFieldEnum + { + + /// + id, + + /// + name, + + /// + status, + + /// + createTimeStampUTC, + + /// + lastName, + + /// + firstName, + + /// + accountNumber, + + /// + amount, + + /// + pastOccurrences, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class Paging : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public int limit; + + /// + public int offset; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class TransactionListSorting : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public TransactionListOrderFieldEnum orderBy; + + /// + public bool orderDescending; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum TransactionListOrderFieldEnum + { + + /// + id, + + /// + submitTimeUTC, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class heldTransactionRequestType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public afdsTransactionEnum action; + + /// + public string refTransId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum afdsTransactionEnum + { + + /// + approve, + + /// + decline, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class createProfileResponse : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public messagesType messages; + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerPaymentProfileIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerShippingAddressIdList; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class messagesType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public messageTypeEnum resultCode; + + /// + [System.Xml.Serialization.XmlElementAttribute("message")] + public messagesTypeMessage[] message; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum messageTypeEnum + { + + /// + Ok, + + /// + Error, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class messagesTypeMessage : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string code; + + /// + public string text; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponse : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string responseCode; + + /// + public string rawResponseCode; + + /// + public string authCode; + + /// + public string avsResultCode; + + /// + public string cvvResultCode; + + /// + public string cavvResultCode; + + /// + public string transId; + + /// + public string refTransID; + + /// + public string transHash; + + /// + public string testRequest; + + /// + public string accountNumber; + + /// + public string entryMode; + + /// + public string accountType; + + /// + public string splitTenderId; + + /// + public transactionResponsePrePaidCard prePaidCard; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable = false)] + public transactionResponseMessage[] messages; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable = false)] + public transactionResponseError[] errors; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable = false)] + public transactionResponseSplitTenderPayment[] splitTenderPayments; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public userField[] userFields; + + /// + public nameAndAddressType shipTo; + + /// + public transactionResponseSecureAcceptance secureAcceptance; + + /// + public transactionResponseEmvResponse emvResponse; + + /// + public string transHashSha2; + + /// + public customerProfileIdType profile; + + /// + public string networkTransId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponsePrePaidCard : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string requestedAmount; + + /// + public string approvedAmount; + + /// + public string balanceOnCard; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseMessage : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string code; + + /// + public string description; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseError : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string errorCode; + + /// + public string errorText; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseSplitTenderPayment : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string transId; + + /// + public string responseCode; + + /// + public string responseToCustomer; + + /// + public string authCode; + + /// + public string accountNumber; + + /// + public string accountType; + + /// + public string requestedAmount; + + /// + public string approvedAmount; + + /// + public string balanceOnCard; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class userField : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public string value; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseSecureAcceptance : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string SecureAcceptanceUrl; + + /// + public string PayerID; + + /// + public string PayerEmail; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseEmvResponse : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string tlvData; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable = false)] + public emvTag[] tags; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class emvTag : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public string value; + + /// + public string formatted; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileIdType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerAddressId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class returnedItemType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string id; + + /// + public System.DateTime dateUTC; + + /// + public System.DateTime dateLocal; + + /// + public string code; + + /// + public string description; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionDetailsType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string transId; + + /// + public string refTransId; + + /// + public string splitTenderId; + + /// + public System.DateTime submitTimeUTC; + + /// + public System.DateTime submitTimeLocal; + + /// + public string transactionType; + + /// + public string transactionStatus; + + /// + public int responseCode; + + /// + public int responseReasonCode; + + /// + public subscriptionPaymentType subscription; + + /// + public string responseReasonDescription; + + /// + public string authCode; + + /// + public string AVSResponse; + + /// + public string cardCodeResponse; + + /// + public string CAVVResponse; + + /// + public string FDSFilterAction; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable = false)] + public FDSFilterType[] FDSFilters; + + /// + public batchDetailsType batch; + + /// + public orderExType order; + + /// + public decimal requestedAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool requestedAmountSpecified; + + /// + public decimal authAmount; + + /// + public decimal settleAmount; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType shipping; + + /// + public extendedAmountType duty; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable = false)] + public lineItemType[] lineItems; + + /// + public decimal prepaidBalanceRemaining; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool prepaidBalanceRemainingSpecified; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public paymentMaskedType payment; + + /// + public customerDataType customer; + + /// + public customerAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public bool recurringBilling; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool recurringBillingSpecified; + + /// + public string customerIP; + + /// + public string product; + + /// + public string entryMode; + + /// + public string marketType; + + /// + public string mobileDeviceId; + + /// + public string customerSignature; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable = false)] + public returnedItemType[] returnedItems; + + /// + public solutionType solution; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable = false)] + public transactionDetailsTypeTag[] emvDetails; + + /// + public customerProfileIdType profile; + + /// + public extendedAmountType surcharge; + + /// + public string employeeId; + + /// + public extendedAmountType tip; + + /// + public otherTaxType otherTax; + + /// + public nameAndAddressType shipFrom; + + /// + public string networkTransId; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + + /// + public string authorizationIndicator; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subscriptionPaymentType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public int id; + + /// + public int payNum; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class FDSFilterType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public string action; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class batchDetailsType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string batchId; + + /// + public System.DateTime settlementTimeUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool settlementTimeUTCSpecified; + + /// + public System.DateTime settlementTimeLocal; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool settlementTimeLocalSpecified; + + /// + public string settlementState; + + /// + public string paymentMethod; + + /// + public string marketType; + + /// + public string product; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable = false)] + public batchStatisticType[] statistics; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class batchStatisticType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string accountType; + + /// + public decimal chargeAmount; + + /// + public int chargeCount; + + /// + public decimal refundAmount; + + /// + public int refundCount; + + /// + public int voidCount; + + /// + public int declineCount; + + /// + public int errorCount; + + /// + public decimal returnedItemAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool returnedItemAmountSpecified; + + /// + public int returnedItemCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool returnedItemCountSpecified; + + /// + public decimal chargebackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargebackAmountSpecified; + + /// + public int chargebackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargebackCountSpecified; + + /// + public int correctionNoticeCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool correctionNoticeCountSpecified; + + /// + public decimal chargeChargeBackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeChargeBackAmountSpecified; + + /// + public int chargeChargeBackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeChargeBackCountSpecified; + + /// + public decimal refundChargeBackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundChargeBackAmountSpecified; + + /// + public int refundChargeBackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundChargeBackCountSpecified; + + /// + public decimal chargeReturnedItemsAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeReturnedItemsAmountSpecified; + + /// + public int chargeReturnedItemsCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeReturnedItemsCountSpecified; + + /// + public decimal refundReturnedItemsAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundReturnedItemsAmountSpecified; + + /// + public int refundReturnedItemsCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundReturnedItemsCountSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class orderExType : orderType + { + + /// + public string purchaseOrderNumber; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class orderType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string invoiceNumber; + + /// + public string description; + + /// + public decimal discountAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountAmountSpecified; + + /// + public bool taxIsAfterDiscount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIsAfterDiscountSpecified; + + /// + public string totalTaxTypeCode; + + /// + public string purchaserVATRegistrationNumber; + + /// + public string merchantVATRegistrationNumber; + + /// + public string vatInvoiceReferenceNumber; + + /// + public string purchaserCode; + + /// + public string summaryCommodityCode; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "date")] + public System.DateTime purchaseOrderDateUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool purchaseOrderDateUTCSpecified; + + /// + public string supplierOrderReference; + + /// + public string authorizedContactName; + + /// + public string cardAcceptorRefNumber; + + /// + public string amexDataTAA1; + + /// + public string amexDataTAA2; + + /// + public string amexDataTAA3; + + /// + public string amexDataTAA4; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class extendedAmountType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public decimal amount; + + /// + public string name; + + /// + public string description; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class lineItemType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string itemId; + + /// + public string name; + + /// + public string description; + + /// + public decimal quantity; + + /// + public decimal unitPrice; + + /// + public bool taxable; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxableSpecified; + + /// + public string unitOfMeasure; + + /// + public string typeOfSupply; + + /// + public decimal taxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxRateSpecified; + + /// + public decimal taxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxAmountSpecified; + + /// + public decimal nationalTax; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool nationalTaxSpecified; + + /// + public decimal localTax; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool localTaxSpecified; + + /// + public decimal vatRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatRateSpecified; + + /// + public string alternateTaxId; + + /// + public string alternateTaxType; + + /// + public string alternateTaxTypeApplied; + + /// + public decimal alternateTaxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxRateSpecified; + + /// + public decimal alternateTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxAmountSpecified; + + /// + public decimal totalAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalAmountSpecified; + + /// + public string commodityCode; + + /// + public string productCode; + + /// + public string productSKU; + + /// + public decimal discountRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountRateSpecified; + + /// + public decimal discountAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountAmountSpecified; + + /// + public bool taxIncludedInTotal; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIncludedInTotalSpecified; + + /// + public bool taxIsAfterDiscount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIsAfterDiscountSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerDataType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public customerTypeEnum type; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool typeSpecified; + + /// + public string id; + + /// + public string email; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum customerTypeEnum + { + + /// + individual, + + /// + business, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class driversLicenseType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string number; + + /// + public string state; + + /// + public string dateOfBirth; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class solutionType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string id; + + /// + public string name; + + /// + public string vendorName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionDetailsTypeTag : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string tagId; + + /// + public string data; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class otherTaxType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public decimal nationalTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool nationalTaxAmountSpecified; + + /// + public decimal localTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool localTaxAmountSpecified; + + /// + public decimal alternateTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxAmountSpecified; + + /// + public string alternateTaxId; + + /// + public decimal vatTaxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatTaxRateSpecified; + + /// + public decimal vatTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatTaxAmountSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransactionType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))] + public object Item; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAuthCaptureType : profileTransOrderType + { + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransOrderType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public orderExType order; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public bool recurringBilling; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool recurringBillingSpecified; + + /// + public string cardCode; + + /// + public string splitTenderId; + + /// + public processingOptions processingOptions; + + /// + public subsequentAuthInformation subsequentAuthInformation; + + /// + public authorizationIndicatorType authorizationIndicatorType; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class processingOptions : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public bool isFirstRecurringPayment; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isFirstRecurringPaymentSpecified; + + /// + public bool isFirstSubsequentAuth; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isFirstSubsequentAuthSpecified; + + /// + public bool isSubsequentAuth; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isSubsequentAuthSpecified; + + /// + public bool isStoredCredentials; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isStoredCredentialsSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subsequentAuthInformation : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + + /// + public merchantInitTransReasonEnum reason; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool reasonSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum merchantInitTransReasonEnum + { + + /// + resubmission, + + /// + delayedCharge, + + /// + reauthorization, + + /// + noShow, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class authorizationIndicatorType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public authIndicatorEnum authorizationIndicator; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool authorizationIndicatorSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum authIndicatorEnum + { + + /// + pre, + + /// + final, + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAmountType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public decimal amount; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType shipping; + + /// + public extendedAmountType duty; + + /// + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public lineItemType[] lineItems; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransRefundType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string creditCardNumberMasked; + + /// + public string bankRoutingNumberMasked; + + /// + public string bankAccountNumberMasked; + + /// + public orderExType order; + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransPriorAuthCaptureType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransCaptureOnlyType : profileTransOrderType + { + + /// + public string approvalCode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAuthOnlyType : profileTransOrderType + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransVoidType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string transId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentProfile : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string paymentProfileId; + + /// + public string cardCode; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfilePaymentType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public bool createProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool createProfileSpecified; + + /// + public string customerProfileId; + + /// + public paymentProfile paymentProfile; + + /// + public string shippingProfileId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionRequestType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string transactionType; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public string currencyCode; + + /// + public paymentType payment; + + /// + public customerProfilePaymentType profile; + + /// + public solutionType solution; + + /// + public string callId; + + /// + public string terminalNumber; + + /// + public string authCode; + + /// + public string refTransId; + + /// + public string splitTenderId; + + /// + public orderType order; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable = false)] + public lineItemType[] lineItems; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType duty; + + /// + public extendedAmountType shipping; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public string poNumber; + + /// + public customerDataType customer; + + /// + public customerAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public string customerIP; + + /// + public ccAuthenticationType cardholderAuthentication; + + /// + public transRetailInfoType retail; + + /// + public string employeeId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] transactionSettings; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public userField[] userFields; + + /// + public extendedAmountType surcharge; + + /// + public string merchantDescriptor; + + /// + public subMerchantType subMerchant; + + /// + public extendedAmountType tip; + + /// + public processingOptions processingOptions; + + /// + public subsequentAuthInformation subsequentAuthInformation; + + /// + public otherTaxType otherTax; + + /// + public nameAndAddressType shipFrom; + + /// + public authorizationIndicatorType authorizationIndicatorType; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))] + [System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))] + [System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))] + [System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))] + [System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))] + [System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))] + public object Item; + + /// + public string dataSource; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class bankAccountType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public bankAccountTypeEnum accountType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool accountTypeSpecified; + + /// + public string routingNumber; + + /// + public string accountNumber; + + /// + public string nameOnAccount; + + /// + public echeckTypeEnum echeckType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool echeckTypeSpecified; + + /// + public string bankName; + + /// + public string checkNumber; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardType : creditCardSimpleType + { + + /// + public string cardCode; + + /// + public bool isPaymentToken; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isPaymentTokenSpecified; + + /// + public string cryptogram; + + /// + public string tokenRequestorName; + + /// + public string tokenRequestorId; + + /// + public string tokenRequestorEci; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardSimpleType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string cardNumber; + + /// + public string expirationDate; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentEmvType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public object emvData; + + /// + public object emvDescriptor; + + /// + public object emvVersion; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class encryptedTrackDataType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public KeyBlock FormOfPayment; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyBlock : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public KeyValue Value; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyValue : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public EncodingType Encoding; + + /// + public EncryptionAlgorithmType EncryptionAlgorithm; + + /// + public KeyManagementScheme Scheme; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum EncodingType + { + + /// + Base64, + + /// + Hex, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum EncryptionAlgorithmType + { + + /// + TDES, + + /// + AES, + + /// + RSA, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementScheme : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public KeyManagementSchemeDUKPT DUKPT; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPT : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public OperationType Operation; + + /// + public KeyManagementSchemeDUKPTMode Mode; + + /// + public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo; + + /// + public KeyManagementSchemeDUKPTEncryptedData EncryptedData; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum OperationType + { + + /// + DECRYPT, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTMode : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string PIN; + + /// + public string Data; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTDeviceInfo : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string Description; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTEncryptedData : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string Value; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class payPalType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string successUrl; + + /// + public string cancelUrl; + + /// + public string paypalLc; + + /// + public string paypalHdrImg; + + /// + public string paypalPayflowcolor; + + /// + public string payerID; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardTrackType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public string Item; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType1 ItemElementName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema = false)] + public enum ItemChoiceType1 + { + + /// + track1, + + /// + track2, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ccAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string authenticationIndicator; + + /// + public string cardholderAuthenticationValue; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transRetailInfoType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.ComponentModel.DefaultValueAttribute("2")] + public string marketType; + + /// + public string deviceType; + + /// + public string customerSignature; + + /// + public string terminalNumber; + + public transRetailInfoType() + { + this.marketType = "2"; + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class settingType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string settingName; + + /// + public string settingValue; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subMerchantType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string identifier; + + /// + public string doingBusinessAs; + + /// + public string paymentServiceProviderName; + + /// + public string paymentServiceFacilitator; + + /// + public string streetAddress; + + /// + public string phone; + + /// + public string email; + + /// + public string postalCode; + + /// + public string city; + + /// + public string regionCode; + + /// + public string countryCode; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class mobileDeviceType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string mobileDeviceId; + + /// + public string description; + + /// + public string phoneNumber; + + /// + public string devicePlatform; + + /// + public deviceActivationEnum deviceActivation; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deviceActivationSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum deviceActivationEnum + { + + /// + Activate, + + /// + Disable, + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public customerTypeEnum customerType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool customerTypeSpecified; + + /// + public customerAddressType billTo; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public paymentMaskedType payment; + + /// + public driversLicenseMaskedType driversLicense; + + /// + public string taxId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class driversLicenseMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string number; + + /// + public string state; + + /// + public string dateOfBirth; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileType : customerPaymentProfileBaseType + { + + /// + public paymentType payment; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public subsequentAuthInformation subsequentAuthInformation; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileExType : customerPaymentProfileType + { + + /// + public string customerPaymentProfileId; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string merchantCustomerId; + + /// + public string description; + + /// + public string email; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileExType : customerProfileBaseType + { + + /// + public string customerProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileMaskedType : customerProfileExType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] + public customerPaymentProfileMaskedType[] paymentProfiles; + + /// + [System.Xml.Serialization.XmlElementAttribute("shipToList")] + public customerAddressExType[] shipToList; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum customerProfileTypeEnum + { + + /// + regular, + + /// + guest, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileInfoExType : customerProfileExType + { + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subscriptionCustomerProfileType : customerProfileExType + { + + /// + public customerPaymentProfileMaskedType paymentProfile; + + /// + public customerAddressExType shippingProfile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileType : customerProfileBaseType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] + public customerPaymentProfileType[] paymentProfiles; + + /// + [System.Xml.Serialization.XmlElementAttribute("shipToList")] + public customerAddressType[] shipToList; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBSubscriptionMaskedType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public paymentScheduleType paymentSchedule; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public decimal trialAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialAmountSpecified; + + /// + public ARBSubscriptionStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + + /// + public subscriptionCustomerProfileType profile; + + /// + public orderType order; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public arbTransaction[] arbTransactions; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentScheduleType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public paymentScheduleTypeInterval interval; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "date")] + public System.DateTime startDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool startDateSpecified; + + /// + public short totalOccurrences; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalOccurrencesSpecified; + + /// + public short trialOccurrences; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialOccurrencesSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentScheduleTypeInterval : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public short length; + + /// + public ARBSubscriptionUnitEnum unit; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBSubscriptionUnitEnum + { + + /// + days, + + /// + months, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class arbTransaction : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string transId; + + /// + public string response; + + /// + public System.DateTime submitTimeUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool submitTimeUTCSpecified; + + /// + public int payNum; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool payNumSpecified; + + /// + public int attemptNum; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool attemptNumSpecified; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class securePaymentContainerErrorType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string code; + + /// + public string description; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public customerTypeEnum type; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool typeSpecified; + + /// + public string id; + + /// + public string email; + + /// + public string phoneNumber; + + /// + public string faxNumber; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentSimpleType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))] + public object Item; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class merchantContactType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string merchantName; + + /// + public string merchantAddress; + + /// + public string merchantCity; + + /// + public string merchantState; + + /// + public string merchantZip; + + /// + public string merchantPhone; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ContactDetailType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string email; + + /// + public string firstName; + + /// + public string lastName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class permissionType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string permissionName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ArrayOfSetting : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlElementAttribute("setting")] + public settingType[] setting; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class emailSettingsType : ArrayOfSetting + { + + /// + [System.Xml.Serialization.XmlAttributeAttribute(DataType = "integer")] + public string version; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class fraudInformationType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable = false)] + public string[] fraudFilterList; + + /// + public string fraudAction; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionSummaryType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string transId; + + /// + public System.DateTime submitTimeUTC; + + /// + public System.DateTime submitTimeLocal; + + /// + public string transactionStatus; + + /// + public string invoiceNumber; + + /// + public string firstName; + + /// + public string lastName; + + /// + public string accountType; + + /// + public string accountNumber; + + /// + public decimal settleAmount; + + /// + public string marketType; + + /// + public string product; + + /// + public string mobileDeviceId; + + /// + public subscriptionPaymentType subscription; + + /// + public bool hasReturnedItems; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool hasReturnedItemsSpecified; + + /// + public fraudInformationType fraudInformation; + + /// + public customerProfileIdType profile; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBSubscriptionType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + public paymentScheduleType paymentSchedule; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public decimal trialAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialAmountSpecified; + + /// + public paymentType payment; + + /// + public orderType order; + + /// + public customerType customer; + + /// + public nameAndAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public customerProfileIdType profile; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class webCheckOutDataTypeToken : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string cardNumber; + + /// + public string expirationDate; + + /// + public string cardCode; + + /// + public string zip; + + /// + public string fullName; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class webCheckOutDataType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public webCheckOutTypeEnum type; + + /// + public string id; + + /// + public webCheckOutDataTypeToken token; + + /// + public bankAccountType bankToken; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum webCheckOutTypeEnum + { + + /// + PAN, + + /// + TOKEN, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentDetails : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string currency; + + /// + public string promoCode; + + /// + public string misc; + + /// + public string giftWrap; + + /// + public string discount; + + /// + public string tax; + + /// + public string shippingHandling; + + /// + public string subTotal; + + /// + public string orderID; + + /// + public string amount; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class fingerPrintType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string hashValue; + + /// + public string sequence; + + /// + public string timestamp; + + /// + public string currencyCode; + + /// + public string amount; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class impersonationAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string partnerLoginId; + + /// + public string partnerTransactionKey; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class merchantAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string name; + + /// + [System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))] + [System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))] + [System.Xml.Serialization.XmlElementAttribute("password", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public object Item; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType ItemElementName; + + /// + public string mobileDeviceId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema = false)] + public enum ItemChoiceType + { + + /// + accessToken, + + /// + clientKey, + + /// + fingerPrint, + + /// + impersonationAuthentication, + + /// + password, + + /// + sessionToken, + + /// + transactionKey, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ANetApiRequest : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public merchantAuthenticationType merchantAuthentication; + + /// + public string clientId; + + /// + public string refId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class decryptPaymentDataResponse : ANetApiResponse + { + + /// + public customerAddressType shippingInfo; + + /// + public customerAddressType billingInfo; + + /// + public creditCardMaskedType cardInfo; + + /// + public paymentDetails paymentDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ANetApiResponse : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string refId; + + /// + public messagesType messages; + + /// + public string sessionToken; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class securePaymentContainerRequest : ANetApiRequest + { + + /// + public webCheckOutDataType data; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class securePaymentContainerResponse : ANetApiResponse + { + + /// + public opaqueDataType opaqueData; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class isAliveRequest : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public string refId; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class isAliveResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class authenticateTestRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class authenticateTestResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCreateSubscriptionRequest : ANetApiRequest + { + + /// + public ARBSubscriptionType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCreateSubscriptionResponse : ANetApiResponse + { + + /// + public string subscriptionId; + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBUpdateSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + + /// + public ARBSubscriptionType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBUpdateSubscriptionResponse : ANetApiResponse + { + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCancelSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCancelSubscriptionResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest + { + + /// + public string subscriptionId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse + { + + /// + public ARBSubscriptionStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileRequest : ANetApiRequest + { + + /// + public customerProfileType profile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum validationModeEnum + { + + /// + none, + + /// + testMode, + + /// + liveMode, + + /// + oldLiveMode, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerPaymentProfileIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerShippingAddressIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public string[] validationDirectResponseList; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerPaymentProfileType paymentProfile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string validationDirectResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerAddressType address; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerShippingAddressResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest + { + + /// + public string transId; + + /// + public customerProfileBaseType customer; + + /// + public string customerProfileId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string merchantCustomerId; + + /// + public string email; + + /// + public bool unmaskExpirationDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unmaskExpirationDateSpecified; + + /// + public bool includeIssuerInfo; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeIssuerInfoSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileResponse : ANetApiResponse + { + + /// + public customerProfileMaskedType profile; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public bool unmaskExpirationDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unmaskExpirationDateSpecified; + + /// + public bool includeIssuerInfo; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeIssuerInfoSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public customerPaymentProfileMaskedType paymentProfile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerShippingAddressResponse : ANetApiResponse + { + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + + /// + public customerAddressExType address; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerProfileRequest : ANetApiRequest + { + + /// + public customerProfileExType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class UpdateCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerPaymentProfileExType paymentProfile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class UpdateCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string validationDirectResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerAddressExType address; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerShippingAddressResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerShippingAddressResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileTransactionRequest : ANetApiRequest + { + + /// + public profileTransactionType transaction; + + /// + public string extraOptions; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + + /// + public string directResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class validateCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string cardCode; + + /// + public validationModeEnum validationMode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class validateCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string directResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileIdsRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileIdsResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] ids; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateSplitTenderGroupRequest : ANetApiRequest + { + + /// + public string splitTenderId; + + /// + public splitTenderStatusEnum splitTenderStatus; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum splitTenderStatusEnum + { + + /// + completed, + + /// + held, + + /// + voided, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateSplitTenderGroupResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionDetailsRequest : ANetApiRequest + { + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionDetailsResponse : ANetApiResponse + { + + /// + public transactionDetailsType transaction; + + /// + public string clientId; + + /// + public string transrefId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createTransactionRequest : ANetApiRequest + { + + /// + public transactionRequestType transactionRequest; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + + /// + public createProfileResponse profileResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateHeldTransactionRequest : ANetApiRequest + { + + /// + public heldTransactionRequestType heldTransactionRequest; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateHeldTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getBatchStatisticsRequest : ANetApiRequest + { + + /// + public string batchId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getBatchStatisticsResponse : ANetApiResponse + { + + /// + public batchDetailsType batch; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getSettledBatchListRequest : ANetApiRequest + { + + /// + public bool includeStatistics; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeStatisticsSpecified; + + /// + public System.DateTime firstSettlementDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool firstSettlementDateSpecified; + + /// + public System.DateTime lastSettlementDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool lastSettlementDateSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getSettledBatchListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable = false)] + public batchDetailsType[] batchList; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListRequest : ANetApiRequest + { + + /// + public string batchId; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable = false)] + public transactionSummaryType[] transactions; + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedProfilePageRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] hostedProfileSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedProfilePageResponse : ANetApiResponse + { + + /// + public string token; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getUnsettledTransactionListRequest : ANetApiRequest + { + + /// + public TransactionGroupStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum TransactionGroupStatusEnum + { + + /// + any, + + /// + pendingApproval, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedPaymentPageRequest : ANetApiRequest + { + + /// + public transactionRequestType transactionRequest; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] hostedPaymentSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedPaymentPageResponse : ANetApiResponse + { + + /// + public string token; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getUnsettledTransactionListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable = false)] + public transactionSummaryType[] transactions; + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceRegistrationRequest : ANetApiRequest + { + + /// + public mobileDeviceType mobileDevice; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceRegistrationResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceLoginRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceLoginResponse : ANetApiResponse + { + + /// + public merchantContactType merchantContact; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable = false)] + public permissionType[] userPermissions; + + /// + public transRetailInfoType merchantAccount; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class logoutRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class logoutResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest + { + + /// + public string transId; + + /// + public string customerEmail; + + /// + public emailSettingsType emailSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionListRequest : ANetApiRequest + { + + /// + public ARBGetSubscriptionListSearchTypeEnum searchType; + + /// + public ARBGetSubscriptionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBGetSubscriptionListSearchTypeEnum + { + + /// + cardExpiringThisMonth, + + /// + subscriptionActive, + + /// + subscriptionExpiringThisMonth, + + /// + subscriptionInactive, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionListResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")] + public SubscriptionDetail[] subscriptionDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class EnumCollection : object, System.ComponentModel.INotifyPropertyChanged + { + + /// + public customerProfileSummaryType customerProfileSummaryType; + + /// + public paymentSimpleType paymentSimpleType; + + /// + public accountTypeEnum accountTypeEnum; + + /// + public cardTypeEnum cardTypeEnum; + + /// + public FDSFilterActionEnum FDSFilterActionEnum; + + /// + public permissionsEnum permissionsEnum; + + /// + public settingNameEnum settingNameEnum; + + /// + public settlementStateEnum settlementStateEnum; + + /// + public transactionStatusEnum transactionStatusEnum; + + /// + public transactionTypeEnum transactionTypeEnum; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) + { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum accountTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + AmericanExpress, + + /// + Discover, + + /// + JCB, + + /// + DinersClub, + + /// + eCheck, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum cardTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + AmericanExpress, + + /// + Discover, + + /// + JCB, + + /// + DinersClub, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum FDSFilterActionEnum + { + + /// + reject, + + /// + decline, + + /// + hold, + + /// + authAndHold, + + /// + report, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum permissionsEnum + { + + /// + API_Merchant_BasicReporting, + + /// + Submit_Charge, + + /// + Submit_Refund, + + /// + Submit_Update, + + /// + Mobile_Admin, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum settingNameEnum + { + + /// + emailCustomer, + + /// + merchantEmail, + + /// + allowPartialAuth, + + /// + headerEmailReceipt, + + /// + footerEmailReceipt, + + /// + recurringBilling, + + /// + duplicateWindow, + + /// + testRequest, + + /// + hostedProfileReturnUrl, + + /// + hostedProfileReturnUrlText, + + /// + hostedProfilePageBorderVisible, + + /// + hostedProfileIFrameCommunicatorUrl, + + /// + hostedProfileHeadingBgColor, + + /// + hostedProfileValidationMode, + + /// + hostedProfileBillingAddressRequired, + + /// + hostedProfileCardCodeRequired, + + /// + hostedProfileBillingAddressOptions, + + /// + hostedProfileManageOptions, + + /// + hostedPaymentIFrameCommunicatorUrl, + + /// + hostedPaymentButtonOptions, + + /// + hostedPaymentReturnOptions, + + /// + hostedPaymentOrderOptions, + + /// + hostedPaymentPaymentOptions, + + /// + hostedPaymentBillingAddressOptions, + + /// + hostedPaymentShippingAddressOptions, + + /// + hostedPaymentSecurityOptions, + + /// + hostedPaymentCustomerOptions, + + /// + hostedPaymentStyleOptions, + + /// + typeEmailReceipt, + + /// + hostedProfilePaymentOptions, + + /// + hostedProfileSaveButtonText, + + /// + hostedPaymentVisaCheckoutOptions, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum settlementStateEnum + { + + /// + settledSuccessfully, + + /// + settlementError, + + /// + pendingSettlement, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum transactionStatusEnum + { + + /// + authorizedPendingCapture, + + /// + capturedPendingSettlement, + + /// + communicationError, + + /// + refundSettledSuccessfully, + + /// + refundPendingSettlement, + + /// + approvedReview, + + /// + declined, + + /// + couldNotVoid, + + /// + expired, + + /// + generalError, + + /// + pendingFinalSettlement, + + /// + pendingSettlement, + + /// + failedReview, + + /// + settledSuccessfully, + + /// + settlementError, + + /// + underReview, + + /// + updatingSettlement, + + /// + voided, + + /// + FDSPendingReview, + + /// + FDSAuthorizedPendingReview, + + /// + returnedItem, + + /// + chargeback, + + /// + chargebackReversal, + + /// + authorizedPendingRelease, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum transactionTypeEnum + { + + /// + authOnlyTransaction, + + /// + authCaptureTransaction, + + /// + captureOnlyTransaction, + + /// + refundTransaction, + + /// + priorAuthCaptureTransaction, + + /// + voidTransaction, + + /// + getDetailsTransaction, + + /// + authOnlyContinueTransaction, + + /// + authCaptureContinueTransaction, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileListRequest : ANetApiRequest + { + + /// + public CustomerPaymentProfileSearchTypeEnum searchType; + + /// + public string month; + + /// + public CustomerPaymentProfileSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum CustomerPaymentProfileSearchTypeEnum + { + + /// + cardsExpiringInMonth, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileListResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")] + public customerPaymentProfileListItemType[] paymentProfiles; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + + /// + public bool includeTransactions; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeTransactionsSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionResponse : ANetApiResponse + { + + /// + public ARBSubscriptionMaskedType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListForCustomerRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobSummaryRequest : ANetApiRequest + { + + /// + public string month; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobSummaryResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable = false)] + public auResponseType[] auSummary; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobDetailsRequest : ANetApiRequest + { + + /// + public string month; + + /// + public AUJobTypeEnum modifiedTypeFilter; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool modifiedTypeFilterSpecified; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum AUJobTypeEnum + { + + /// + all, + + /// + updates, + + /// + deletes, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobDetailsResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable = false)] + [System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable = false)] + public auDetailsType[] auDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getMerchantDetailsRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getMerchantDetailsResponse : ANetApiResponse + { + + /// + public bool isTestMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isTestModeSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("processor")] + public processorType[] processors; + + /// + public string merchantName; + + /// + public string gatewayId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("marketType")] + public string[] marketTypes; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("productCode")] + public string[] productCodes; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")] + public System.Nullable[] paymentMethods; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("currency")] + public string[] currencies; + + /// + public string publicClientKey; + + /// + public customerAddressType businessInformation; + + /// + public string merchantTimeZone; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable = false)] + public ContactDetailType[] contactDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum paymentMethodsTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + Discover, + + /// + AmericanExpress, + + /// + DinersClub, + + /// + JCB, + + /// + EnRoute, + + /// + Echeck, + + /// + Paypal, + + /// + VisaCheckout, + + /// + ApplePay, + + /// + AndroidPay, + + /// + GooglePay, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateMerchantDetailsRequest : ANetApiRequest + { + + /// + public bool isTestMode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateMerchantDetailsResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest + { + + /// + public string connectedAccessToken; + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse + { + + /// + public opaqueDataType opaqueData; + } } diff --git a/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs b/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs index 958d4896..f4ccf589 100644 --- a/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs +++ b/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs @@ -1,1732 +1,1723 @@ -namespace AuthorizeNet.Api.Contracts.V1 +using System; +namespace AuthorizeNet.Api.Contracts.V1 { - using System; #pragma warning disable 169 -#pragma warning disable 1591 - // ReSharper disable InconsistentNaming - /// - /// Special case handlers - /// - /// validated on ????/??/?? for objects listed at the end - /// should be validated after each update of AnetApiSchema.cs - /// for fields/properties that are minOccurs="0" since xsd.exe - /// generates "specified" property for such fields and requires - /// special handling to set them seamlessly - /// Make sure to update the respective controllers to call the respective request hand - /// - /// - public static class RequestFactoryWithSpecified - { - public static void decryptPaymentDataRequest(decryptPaymentDataRequest argument) - { - if (null != argument) - { - opaqueDataType(argument.opaqueData); - } - } - public static void opaqueDataType(opaqueDataType argument) - { - if (null != argument) - { - if (argument.expirationTimeStamp!=null) { argument.expirationTimeStampSpecified = true; } - } - } - - public static void processorType(processorType argument) - { - if(null != argument) - { - } - } - public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument) - { - if (null != argument) - { - if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} - customerAddressType(argument.billTo); - paymentMaskedType(argument.payment); - } - } + public static class RequestFactoryWithSpecified + { + public static void DecryptPaymentDataRequest(decryptPaymentDataRequest argument) + { + if (null != argument) + { + OpaqueDataType(argument.opaqueData); + } + } + public static void OpaqueDataType(opaqueDataType argument) + { + if (null != argument) + { + if (argument.expirationTimeStamp != null) { argument.expirationTimeStampSpecified = true; } + } + } - public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument) - { - if (null != argument) - { - //(argument.orderDescending); - } - } + public static void ProcessorType(processorType argument) + { + if (null != argument) + { + } + } - public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument) - { - if (null != argument) - { - paymentScheduleType(argument.paymentSchedule); - if (0 <= argument.amount) { argument.amountSpecified = true; } - if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; } - if (0 <= argument.status) { argument.statusSpecified = true; } - subscriptionCustomerProfileType(argument.profile); - orderType(argument.order); - } - } + public static void CustomerPaymentProfileListItemType(customerPaymentProfileListItemType argument) + { + if (null != argument) + { + if (argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified = true; } + CustomerAddressType(argument.billTo); + PaymentMaskedType(argument.payment); + } + } - public static void subscriptionCustomerProfileType(subscriptionCustomerProfileType argument) - { - if (null != argument) - { - customerProfileExType(argument); - customerPaymentProfileMaskedType(argument.paymentProfile); - customerAddressExType(argument.shippingProfile); - } - } + public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument) + { + if (null != argument) + { + //(argument.orderDescending); + } + } - public static void paymentSimpleType(paymentSimpleType argument) - { - if (null != argument) - { - if (argument.Item is bankAccountType) { bankAccountType(argument.Item as bankAccountType); } - if (argument.Item is creditCardSimpleType) { creditCardSimpleType(argument.Item as creditCardSimpleType); } - } - } - public static void bankAccountType(bankAccountType argument) - { - if (null != argument) - { - if (0 <= (int)argument.accountType) { argument.accountTypeSpecified = true; } - if (0 <= (int)argument.echeckType) { argument.echeckTypeSpecified = true; } - } - } - public static void creditCardSimpleType(creditCardSimpleType argument) - { - if (null != argument) - { - } - } - public static void creditCardType(creditCardType argument) - { - if (null != argument) - { - creditCardSimpleType(argument); - if (argument.isPaymentToken) { argument.isPaymentTokenSpecified = true; } - } - } - public static void customerProfileSummaryType(customerProfileSummaryType argument) - { - if (null != argument) - { - } - } - public static void SubscriptionDetail(SubscriptionDetail argument) - { - if (null != argument) - { - } - } - public static void Paging(Paging argument) - { - if (null != argument) - { - } - } - - public static void TransactionListSorting(TransactionListSorting argument) - { - if(null != argument) - { - //(argument.orderDescending); - } - } - public static void heldTransactionRequestType(heldTransactionRequestType argument) - { - if(null != argument) - { - } - } - - public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument) - { - if (null != argument) - { + public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument) + { + if (null != argument) + { + PaymentScheduleType(argument.paymentSchedule); + if (0 <= argument.amount) { argument.amountSpecified = true; } + if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; } + if (0 <= argument.status) { argument.statusSpecified = true; } + SubscriptionCustomerProfileType(argument.profile); + OrderType(argument.order); + } + } - } - } - public static void permissionType(permissionType argument) - { - if (null != argument) - { - } - } - public static void merchantContactType(merchantContactType argument) - { - if (null != argument) - { - } - } - public static void mobileDeviceType(mobileDeviceType argument) - { - if (null != argument) - { - if (0 <= (int)argument.deviceActivation) { argument.deviceActivationSpecified = true; } - } - } - public static void transactionSummaryType(transactionSummaryType argument) - { - if (null != argument) - { - subscriptionPaymentType(argument.subscription); - if (argument.hasReturnedItems) { argument.hasReturnedItemsSpecified = true; } - fraudInformationType(argument.fraudInformation); - customerProfileIdType(argument.profile); - } - } - public static void subscriptionPaymentType(subscriptionPaymentType argument) - { - if (null != argument) - { - } - } - public static void createProfileResponse(createProfileResponse argument) - { - if (null != argument) - { - messagesType(argument.messages); - } - } - public static void messagesType(messagesType argument) - { - if (null != argument) - { - if (null != argument.message) { foreach (var value in argument.message) { messagesTypeMessage(value); } } - } - } - public static void messagesTypeMessage(messagesTypeMessage argument) - { - if (null != argument) - { - } - } - public static void ArrayOfSetting(ArrayOfSetting argument) - { - if (null != argument) - { - if (null != argument.setting) { foreach (var value in argument.setting) { settingType(value); } } - } - } - public static void settingType(settingType argument) - { - if (null != argument) - { - } - } - public static void subMerchantType(subMerchantType argument) - { - if(null != argument) - { - } - } - public static void emailSettingsType(emailSettingsType argument) - { - if (null != argument) - { - ArrayOfSetting(argument); - } - } - - public static void fraudInformationType(fraudInformationType argument) - { - if(null != argument) - { - } - } - - public static void transRetailInfoType(transRetailInfoType argument) - { - if (null != argument) - { - //marketType should not be assigned here - //argument.marketType = "2"; - } - } - public static void ccAuthenticationType(ccAuthenticationType argument) - { - if (null != argument) - { - } - } - public static void paymentProfile(paymentProfile argument) - { - if (null != argument) - { - } - } - public static void customerProfilePaymentType(customerProfilePaymentType argument) - { - if (null != argument) - { - if (argument.createProfile) { argument.createProfileSpecified = true; } - paymentProfile(argument.paymentProfile); - } - } - public static void transactionRequestType(transactionRequestType argument) - { - if (null != argument) - { - if (0 <= argument.amount) { argument.amountSpecified = true; } - paymentType(argument.payment); - customerProfilePaymentType(argument.profile); - solutionType(argument.solution); - orderType(argument.order); - if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } } - extendedAmountType(argument.tax); - extendedAmountType(argument.duty); - extendedAmountType(argument.shipping); - if (argument.taxExempt) { argument.taxExemptSpecified = true; } - customerDataType(argument.customer); - customerAddressType(argument.billTo); - nameAndAddressType(argument.shipTo); - ccAuthenticationType(argument.cardholderAuthentication); - transRetailInfoType(argument.retail); - if (null != argument.transactionSettings) { foreach (var value in argument.transactionSettings) { settingType(value); } } - if (null != argument.userFields) { foreach (var value in argument.userFields) { userField(value); } } - extendedAmountType(argument.surcharge); - subMerchantType(argument.subMerchant); - extendedAmountType(argument.tip); - processingOptions(argument.processingOptions); - subsequentAuthInformation(argument.subsequentAuthInformation); - otherTaxType(argument.otherTax); - nameAndAddressType(argument.shipFrom); - authorizationIndicatorType(argument.authorizationIndicatorType); - } - } - public static void paymentType(paymentType argument) - { - if (null != argument) - { - if (argument.Item is bankAccountType) { bankAccountType(argument.Item as bankAccountType); } - if (argument.Item is creditCardType) { creditCardType(argument.Item as creditCardType); } - if (argument.Item is encryptedTrackDataType) - { - encryptedTrackDataType(argument.Item as encryptedTrackDataType); - } - - if (argument.Item is paymentEmvType) { paymentEmvType(argument.Item as paymentEmvType); } - if (argument.Item is opaqueDataType) { opaqueDataType(argument.Item as opaqueDataType); } - if (argument.Item is payPalType) { payPalType(argument.Item as payPalType); } - if (argument.Item is creditCardTrackType) { creditCardTrackType(argument.Item as creditCardTrackType); } - } - } - public static void encryptedTrackDataType(encryptedTrackDataType argument) - { - if (null != argument) - { - KeyBlock(argument.FormOfPayment); - } - } - - public static void paymentEmvType(paymentEmvType argument) - { - if(null != argument) - { - } - } - - public static void KeyBlock(KeyBlock argument) - { - if (null != argument) - { - KeyValue(argument.Value); - } - } - public static void KeyValue(KeyValue argument) - { - if (null != argument) - { - KeyManagementScheme(argument.Scheme); - } - } - public static void KeyManagementScheme(KeyManagementScheme argument) - { - if (null != argument) - { - KeyManagementSchemeDUKPT(argument.DUKPT); - } - } - public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument) - { - if (null != argument) - { - KeyManagementSchemeDUKPTMode(argument.Mode); - KeyManagementSchemeDUKPTDeviceInfo(argument.DeviceInfo); - KeyManagementSchemeDUKPTEncryptedData(argument.EncryptedData); - } - } - public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument) - { - if (null != argument) - { - } - } - public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument) - { - if (null != argument) - { - } - } - public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument) - { - if (null != argument) - { - } - } - public static void payPalType(payPalType argument) - { - if (null != argument) - { - } - } - public static void creditCardTrackType(creditCardTrackType argument) - { - if (null != argument) - { - } - } - public static void solutionType(solutionType argument) - { - if (null != argument) - { - } - } - public static void orderType(orderType argument) - { - if (null != argument) - { - if (argument.discountAmount >= 0) { argument.discountAmountSpecified = true; } - if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; } - if (null != argument.purchaseOrderDateUTC) { argument.purchaseOrderDateUTCSpecified = true; } - } - } - public static void orderExType(orderExType argument) - { - if (null != argument) - { - orderType(argument); - } - } - public static void lineItemType(lineItemType argument) - { - if (null != argument) - { - if (argument.taxable) { argument.taxableSpecified = true; - if (argument.taxRate >= 0) { argument.taxRateSpecified = true; } - if (argument.taxAmount >= 0) { argument.taxAmountSpecified = true; } - if (argument.nationalTax>=0) { argument.nationalTaxSpecified = true; } - if (argument.localTax>=0) { argument.localTaxSpecified = true; } - if (argument.vatRate>=0) { argument.vatRateSpecified = true; } - if (argument.alternateTaxRate>=0) { argument.alternateTaxRateSpecified = true; } - if (argument.alternateTaxAmount>=0) { argument.alternateTaxAmountSpecified = true; } - if (argument.totalAmount>=0) { argument.totalAmountSpecified = true; } - if (argument.discountRate >=0) { argument.discountRateSpecified = true; } - if (argument.discountAmount>= 0) { argument.discountAmountSpecified = true; } - if (argument.taxIncludedInTotal) { argument.taxIncludedInTotalSpecified = true; } - if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; } - } - } - } - public static void extendedAmountType(extendedAmountType argument) - { - if (null != argument) - { - } - } - public static void customerDataType(customerDataType argument) - { - if (null != argument) - { - if (0 <= (int)argument.type) { argument.typeSpecified = true; } - driversLicenseType(argument.driversLicense); - } - } - public static void driversLicenseType(driversLicenseType argument) - { - if (null != argument) - { - } - } - public static void customerAddressType(customerAddressType argument) - { - if (null != argument) - { - nameAndAddressType(argument); - } - } - public static void nameAndAddressType(nameAndAddressType argument) - { - if (null != argument) - { - } - } - public static void customerAddressExType(customerAddressExType argument) - { - if (null != argument) - { - customerAddressType(argument); - } - } - public static void userField(userField argument) - { - if (null != argument) - { - } - } - public static void returnedItemType(returnedItemType argument) - { - if (null != argument) - { - } - } - public static void batchStatisticType(batchStatisticType argument) - { - if (null != argument) - { - if (0 <= argument.returnedItemAmount) { argument.returnedItemAmountSpecified = true; } - if (0 <= argument.returnedItemCount) { argument.returnedItemCountSpecified = true; } - if (0 <= argument.chargebackAmount) { argument.chargebackAmountSpecified = true; } - if (0 <= argument.chargebackCount) { argument.chargebackCountSpecified = true; } - if (0 <= argument.correctionNoticeCount) { argument.correctionNoticeCountSpecified = true; } - if (0 <= argument.chargeChargeBackAmount) { argument.chargeChargeBackAmountSpecified = true; } - if (0 <= argument.chargeChargeBackCount) { argument.chargeChargeBackCountSpecified = true; } - if (0 <= argument.refundChargeBackAmount) { argument.refundChargeBackAmountSpecified = true; } - if (0 <= argument.refundChargeBackCount) { argument.refundChargeBackCountSpecified = true; } - if (0 <= argument.chargeReturnedItemsAmount) { argument.chargeReturnedItemsAmountSpecified = true; } - if (0 <= argument.chargeReturnedItemsCount) { argument.chargeReturnedItemsCountSpecified = true; } - if (0 <= argument.refundReturnedItemsAmount) { argument.refundReturnedItemsAmountSpecified = true; } - if (0 <= argument.refundReturnedItemsCount) { argument.refundReturnedItemsCountSpecified = true; } - } - } - public static void batchDetailsType(batchDetailsType argument) - { - if (null != argument) - { - if (DateTime.MinValue != argument.settlementTimeUTC) { argument.settlementTimeUTCSpecified = true; } - if (DateTime.MinValue != argument.settlementTimeLocal) { argument.settlementTimeLocalSpecified = true; } - if (null != argument.statistics) { foreach (var value in argument.statistics) { batchStatisticType(value); } } - } - } - public static void FDSFilterType(FDSFilterType argument) - { - if (null != argument) - { - } - } + public static void SubscriptionCustomerProfileType(subscriptionCustomerProfileType argument) + { + if (null != argument) + { + CustomerProfileExType(argument); + CustomerPaymentProfileMaskedType(argument.paymentProfile); + CustomerAddressExType(argument.shippingProfile); + } + } - public static void transactionDetailsTypeTag(transactionDetailsTypeTag argument) - { - if (null != argument) - { - } - } + public static void PaymentSimpleType(paymentSimpleType argument) + { + if (null != argument) + { + if (argument.Item is bankAccountType) { BankAccountType(argument.Item as bankAccountType); } + if (argument.Item is creditCardSimpleType) { CreditCardSimpleType(argument.Item as creditCardSimpleType); } + } + } + public static void BankAccountType(bankAccountType argument) + { + if (null != argument) + { + if (0 <= (int)argument.accountType) { argument.accountTypeSpecified = true; } + if (0 <= (int)argument.echeckType) { argument.echeckTypeSpecified = true; } + } + } + public static void CreditCardSimpleType(creditCardSimpleType argument) + { + if (null != argument) + { + } + } + public static void CreditCardType(creditCardType argument) + { + if (null != argument) + { + CreditCardSimpleType(argument); + if (argument.isPaymentToken) { argument.isPaymentTokenSpecified = true; } + } + } + public static void CustomerProfileSummaryType(customerProfileSummaryType argument) + { + if (null != argument) + { + } + } + public static void SubscriptionDetail(SubscriptionDetail argument) + { + if (null != argument) + { + } + } + public static void Paging(Paging argument) + { + if (null != argument) + { + } + } - public static void otherTaxType(otherTaxType argument) - { - if (null != argument) - { - if (argument.nationalTaxAmount>=0) { argument.nationalTaxAmountSpecified = true; } - if (argument.localTaxAmount >= 0) { argument.localTaxAmountSpecified = true; } - if (argument.alternateTaxAmount >= 0) { argument.alternateTaxAmountSpecified = true; } - if (argument.vatTaxRate >= 0) { argument.vatTaxRateSpecified = true; } - if (argument.vatTaxAmount >= 0) { argument.vatTaxAmountSpecified = true; } - } - } - 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 TransactionListSorting(TransactionListSorting argument) + { + if (null != argument) + { + //(argument.orderDescending); + } + } + public static void HeldTransactionRequestType(heldTransactionRequestType argument) + { + if (null != argument) + { + } + } - if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} } - - customerProfileIdType(argument.profile); - extendedAmountType(argument.surcharge); - extendedAmountType(argument.tip); - otherTaxType(argument.otherTax); - nameAndAddressType(argument.shipFrom); - } - } - public static void paymentMaskedType(paymentMaskedType argument) - { - if (null != argument) - { - if (argument.Item is bankAccountMaskedType) { bankAccountMaskedType(argument.Item as bankAccountMaskedType); } - if (argument.Item is creditCardMaskedType) { creditCardMaskedType(argument.Item as creditCardMaskedType); } - if (argument.Item is tokenMaskedType) - { - tokenMaskedType(argument.Item as tokenMaskedType); - } + public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument) + { + if (null != argument) + { - } + } + } + public static void PermissionType(permissionType argument) + { + if (null != argument) + { + } + } + public static void MerchantContactType(merchantContactType argument) + { + if (null != argument) + { + } + } + public static void MobileDeviceType(mobileDeviceType argument) + { + if (null != argument) + { + if (0 <= (int)argument.deviceActivation) { argument.deviceActivationSpecified = true; } + } + } + public static void TransactionSummaryType(transactionSummaryType argument) + { + if (null != argument) + { + SubscriptionPaymentType(argument.subscription); + if (argument.hasReturnedItems) { argument.hasReturnedItemsSpecified = true; } + FraudInformationType(argument.fraudInformation); + CustomerProfileIdType(argument.profile); + } + } + public static void SubscriptionPaymentType(subscriptionPaymentType argument) + { + if (null != argument) + { + } + } + public static void CreateProfileResponse(createProfileResponse argument) + { + if (null != argument) + { + MessagesType(argument.messages); + } + } + public static void MessagesType(messagesType argument) + { + if (null != argument) + { + if (null != argument.message) { foreach (var value in argument.message) { MessagesTypeMessage(value); } } + } + } + public static void MessagesTypeMessage(messagesTypeMessage argument) + { + if (null != argument) + { + } + } + public static void ArrayOfSetting(ArrayOfSetting argument) + { + if (null != argument) + { + if (null != argument.setting) { foreach (var value in argument.setting) { SettingType(value); } } + } + } + public static void SettingType(settingType argument) + { + if (null != argument) + { + } + } + public static void SubMerchantType(subMerchantType argument) + { + if (null != argument) + { + } + } + public static void EmailSettingsType(emailSettingsType argument) + { + if (null != argument) + { + ArrayOfSetting(argument); + } + } + public static void FraudInformationType(fraudInformationType argument) + { + if (null != argument) + { + } + } - } - public static void bankAccountMaskedType(bankAccountMaskedType argument) - { - if (null != argument) - { - if (0 <= argument.accountType) { argument.accountTypeSpecified = true; } - if (0 <= argument.echeckType) { argument.echeckTypeSpecified = true; } - } - } - public static void creditCardMaskedType(creditCardMaskedType argument) - { - if (null != argument) - { - cardArt(argument.cardArt); - if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true;} - } - } - public static void cardArt(cardArt argument) - { - if (null != argument) - { - } - } - public static void tokenMaskedType(tokenMaskedType argument) - { - if (null != argument) - { - } - } - 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); - transactionResponseEmvResponse(argument.emvResponse); - customerProfileIdType(argument.profile); - } - } + public static void TransRetailInfoType(transRetailInfoType argument) + { + if (null != argument) + { + //marketType should not be assigned here + //argument.marketType = "2"; + } + } + public static void CcAuthenticationType(ccAuthenticationType argument) + { + if (null != argument) + { + } + } + public static void PaymentProfile(paymentProfile argument) + { + if (null != argument) + { + } + } + public static void CustomerProfilePaymentType(customerProfilePaymentType argument) + { + if (null != argument) + { + if (argument.createProfile) { argument.createProfileSpecified = true; } + PaymentProfile(argument.paymentProfile); + } + } + public static void TransactionRequestType(transactionRequestType argument) + { + if (null != argument) + { + if (0 <= argument.amount) { argument.amountSpecified = true; } + PaymentType(argument.payment); + CustomerProfilePaymentType(argument.profile); + SolutionType(argument.solution); + OrderType(argument.order); + if (null != argument.lineItems) { foreach (var value in argument.lineItems) { LineItemType(value); } } + ExtendedAmountType(argument.tax); + ExtendedAmountType(argument.duty); + ExtendedAmountType(argument.shipping); + if (argument.taxExempt) { argument.taxExemptSpecified = true; } + CustomerDataType(argument.customer); + CustomerAddressType(argument.billTo); + NameAndAddressType(argument.shipTo); + CcAuthenticationType(argument.cardholderAuthentication); + TransRetailInfoType(argument.retail); + if (null != argument.transactionSettings) { foreach (var value in argument.transactionSettings) { SettingType(value); } } + if (null != argument.userFields) { foreach (var value in argument.userFields) { UserField(value); } } + ExtendedAmountType(argument.surcharge); + SubMerchantType(argument.subMerchant); + ExtendedAmountType(argument.tip); + ProcessingOptions(argument.processingOptions); + SubsequentAuthInformation(argument.subsequentAuthInformation); + OtherTaxType(argument.otherTax); + NameAndAddressType(argument.shipFrom); + AuthorizationIndicatorType(argument.authorizationIndicatorType); + } + } + public static void PaymentType(paymentType argument) + { + if (null != argument) + { + if (argument.Item is bankAccountType) { BankAccountType(argument.Item as bankAccountType); } + if (argument.Item is creditCardType) { CreditCardType(argument.Item as creditCardType); } + if (argument.Item is encryptedTrackDataType) + { + EncryptedTrackDataType(argument.Item as encryptedTrackDataType); + } - public static void transactionResponseEmvResponse(transactionResponseEmvResponse argument) - { - if (null != argument) - { - if (null != argument.tags) { foreach (var value in argument.tags) { emvTag(value); } } - } - } + if (argument.Item is paymentEmvType) { PaymentEmvType(argument.Item as paymentEmvType); } + if (argument.Item is opaqueDataType) { OpaqueDataType(argument.Item as opaqueDataType); } + if (argument.Item is payPalType) { PayPalType(argument.Item as payPalType); } + if (argument.Item is creditCardTrackType) { CreditCardTrackType(argument.Item as creditCardTrackType); } + } + } + public static void EncryptedTrackDataType(encryptedTrackDataType argument) + { + if (null != argument) + { + KeyBlock(argument.FormOfPayment); + } + } - public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument) - { - if (null != argument) - { - } - } - public static void transactionResponseMessage(transactionResponseMessage argument) - { - if (null != argument) - { - } - } - public static void transactionResponseError(transactionResponseError argument) - { - if (null != argument) - { - } - } - public static void transactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument) - { - if (null != argument) - { - } - } - public static void transactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument) - { - if (null != argument) - { - } - } - public static void profileTransVoidType(profileTransVoidType argument) - { - if (null != argument) - { - } - } - public static void profileTransAmountType(profileTransAmountType argument) - { - if (null != argument) - { - extendedAmountType(argument.tax); - extendedAmountType(argument.shipping); - extendedAmountType(argument.duty); - if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } } - } - } - public static void profileTransRefundType(profileTransRefundType argument) - { - if (null != argument) - { - profileTransAmountType(argument); - orderExType(argument.order); - } - } - public static void profileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument) - { - if (null != argument) - { - profileTransAmountType(argument); - } - } - public static void profileTransOrderType(profileTransOrderType argument) - { - if (null != argument) - { - profileTransAmountType(argument); - orderExType(argument.order); - if (argument.taxExempt) { argument.taxExemptSpecified = true; } - if (argument.recurringBilling) { argument.recurringBillingSpecified = true; - processingOptions(argument.processingOptions); - subsequentAuthInformation(argument.subsequentAuthInformation); - authorizationIndicatorType(argument.authorizationIndicatorType); - } - } - } - public static void processingOptions(processingOptions argument) - { - if (null != argument) - { - if (argument.isFirstRecurringPayment) { argument.isFirstRecurringPaymentSpecified = true; } - if (argument.isFirstSubsequentAuth) { argument.isFirstSubsequentAuthSpecified = true; } - if (argument.isSubsequentAuth) { argument.isSubsequentAuthSpecified = true; } - if (argument.isStoredCredentials) { argument.isStoredCredentialsSpecified = true; } - } - } - public static void subsequentAuthInformation(subsequentAuthInformation argument) - { - if (null != argument) - { - if (0 <= argument.reason) { argument.reasonSpecified = true; } - } - } - public static void authorizationIndicatorType(authorizationIndicatorType argument) - { - if(null != argument) - { - - } - } - public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType argument) - { - if (null != argument) - { - profileTransOrderType(argument); - } - } - public static void profileTransAuthOnlyType(profileTransAuthOnlyType argument) - { - if (null != argument) - { - profileTransOrderType(argument); - } - } - public static void profileTransAuthCaptureType(profileTransAuthCaptureType argument) - { - if (null != argument) - { - profileTransOrderType(argument); - } - } - public static void profileTransactionType(profileTransactionType argument) - { - if (null != argument) - { - if (argument.Item is profileTransAuthCaptureType) { profileTransAuthCaptureType(argument.Item as profileTransAuthCaptureType); } - if (argument.Item is profileTransAuthOnlyType) { profileTransAuthOnlyType(argument.Item as profileTransAuthOnlyType); } - if (argument.Item is profileTransCaptureOnlyType) { profileTransCaptureOnlyType(argument.Item as profileTransCaptureOnlyType); } - if (argument.Item is profileTransPriorAuthCaptureType) { profileTransPriorAuthCaptureType(argument.Item as profileTransPriorAuthCaptureType); } - if (argument.Item is profileTransRefundType) { profileTransRefundType(argument.Item as profileTransRefundType); } - if (argument.Item is profileTransVoidType) { profileTransVoidType(argument.Item as profileTransVoidType); } - } - } - public static void driversLicenseMaskedType(driversLicenseMaskedType argument) - { - if (null != argument) - { - } - } - public static void customerPaymentProfileBaseType(customerPaymentProfileBaseType argument) - { - if (null != argument) - { - if (0 <= argument.customerType) { argument.customerTypeSpecified = true; } - customerAddressType(argument.billTo); - } - } - public static void customerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument) - { - if (null != argument) - { - customerPaymentProfileBaseType(argument); - if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} - paymentMaskedType(argument.payment); - driversLicenseMaskedType(argument.driversLicense); - } - } - public static void customerPaymentProfileType(customerPaymentProfileType argument) - { - if (null != argument) - { - customerPaymentProfileBaseType(argument); - paymentType(argument.payment); - driversLicenseType(argument.driversLicense); - if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} - subsequentAuthInformation(argument.subsequentAuthInformation); - } - } - public static void customerPaymentProfileExType(customerPaymentProfileExType argument) - { - if (null != argument) - { - customerPaymentProfileType(argument); - } - } - public static void customerProfileBaseType(customerProfileBaseType argument) - { - if (null != argument) - { - } - } - public static void customerProfileExType(customerProfileExType argument) - { - if (null != argument) - { - customerProfileBaseType(argument); - } - } - public static void customerProfileMaskedType(customerProfileMaskedType argument) - { - if (null != argument) - { - customerProfileExType(argument); - if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileMaskedType(value); } } - if (null != argument.shipToList) { foreach (var value in argument.shipToList) { customerAddressExType(value); } } - if(0 <= argument.profileType) { argument.profileTypeSpecified=true;} - } - } - public static void customerProfileInfoExType(customerProfileInfoExType argument) - { - if(null != argument) - { - customerProfileExType (argument); - if(0 <= argument.profileType) { argument.profileTypeSpecified=true;} - } - } - public static void customerProfileType(customerProfileType argument) - { - if (null != argument) - { - customerProfileBaseType(argument); - if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileType(value); } } - if (null != argument.shipToList) { foreach (var value in argument.shipToList) { customerAddressType(value); } } - if(0 <= argument.profileType) { argument.profileTypeSpecified=true;} - } - } - public static void ContactDetailType(ContactDetailType argument) - { - - } - public static void securePaymentContainerErrorType(securePaymentContainerErrorType argument) - { - if(null != argument) - { - } - } - public static void customerType(customerType argument) - { - if (null != argument) - { - if (0 <= argument.type) { argument.typeSpecified = true; } - driversLicenseType(argument.driversLicense); - } - } - public static void paymentScheduleType(paymentScheduleType argument) - { - if (null != argument) - { - paymentScheduleTypeInterval(argument.interval); - if (DateTime.MinValue != argument.startDate) { argument.startDateSpecified = true; } - if (0 <= argument.totalOccurrences) { argument.totalOccurrencesSpecified = true; } - if (0 <= argument.trialOccurrences) { argument.trialOccurrencesSpecified = true; } - } - } + public static void PaymentEmvType(paymentEmvType argument) + { + if (null != argument) + { + } + } - public static void paymentScheduleTypeInterval(paymentScheduleTypeInterval argument) - { - - } + public static void KeyBlock(KeyBlock argument) + { + if (null != argument) + { + KeyValue(argument.Value); + } + } + public static void KeyValue(KeyValue argument) + { + if (null != argument) + { + KeyManagementScheme(argument.Scheme); + } + } + public static void KeyManagementScheme(KeyManagementScheme argument) + { + if (null != argument) + { + KeyManagementSchemeDUKPT(argument.DUKPT); + } + } + public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument) + { + if (null != argument) + { + KeyManagementSchemeDUKPTMode(argument.Mode); + KeyManagementSchemeDUKPTDeviceInfo(argument.DeviceInfo); + KeyManagementSchemeDUKPTEncryptedData(argument.EncryptedData); + } + } + public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument) + { + if (null != argument) + { + } + } + public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument) + { + if (null != argument) + { + } + } + public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument) + { + if (null != argument) + { + } + } + public static void PayPalType(payPalType argument) + { + if (null != argument) + { + } + } + public static void CreditCardTrackType(creditCardTrackType argument) + { + if (null != argument) + { + } + } + public static void SolutionType(solutionType argument) + { + if (null != argument) + { + } + } + public static void OrderType(orderType argument) + { + if (null != argument) + { + if (argument.discountAmount >= 0) { argument.discountAmountSpecified = true; } + if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; } + if (null != argument.purchaseOrderDateUTC) { argument.purchaseOrderDateUTCSpecified = true; } + } + } + public static void OrderExType(orderExType argument) + { + if (null != argument) + { + OrderType(argument); + } + } + public static void LineItemType(lineItemType argument) + { + if (null != argument) + { + if (argument.taxable) + { + argument.taxableSpecified = true; + if (argument.taxRate >= 0) { argument.taxRateSpecified = true; } + if (argument.taxAmount >= 0) { argument.taxAmountSpecified = true; } + if (argument.nationalTax >= 0) { argument.nationalTaxSpecified = true; } + if (argument.localTax >= 0) { argument.localTaxSpecified = true; } + if (argument.vatRate >= 0) { argument.vatRateSpecified = true; } + if (argument.alternateTaxRate >= 0) { argument.alternateTaxRateSpecified = true; } + if (argument.alternateTaxAmount >= 0) { argument.alternateTaxAmountSpecified = true; } + if (argument.totalAmount >= 0) { argument.totalAmountSpecified = true; } + if (argument.discountRate >= 0) { argument.discountRateSpecified = true; } + if (argument.discountAmount >= 0) { argument.discountAmountSpecified = true; } + if (argument.taxIncludedInTotal) { argument.taxIncludedInTotalSpecified = true; } + if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; } + } + } + } + public static void ExtendedAmountType(extendedAmountType argument) + { + if (null != argument) + { + } + } + public static void CustomerDataType(customerDataType argument) + { + if (null != argument) + { + if (0 <= (int)argument.type) { argument.typeSpecified = true; } + DriversLicenseType(argument.driversLicense); + } + } + public static void DriversLicenseType(driversLicenseType argument) + { + if (null != argument) + { + } + } + public static void CustomerAddressType(customerAddressType argument) + { + if (null != argument) + { + NameAndAddressType(argument); + } + } + public static void NameAndAddressType(nameAndAddressType argument) + { + if (null != argument) + { + } + } + public static void CustomerAddressExType(customerAddressExType argument) + { + if (null != argument) + { + CustomerAddressType(argument); + } + } + public static void UserField(userField argument) + { + if (null != argument) + { + } + } + public static void ReturnedItemType(returnedItemType argument) + { + if (null != argument) + { + } + } + public static void BatchStatisticType(batchStatisticType argument) + { + if (null != argument) + { + if (0 <= argument.returnedItemAmount) { argument.returnedItemAmountSpecified = true; } + if (0 <= argument.returnedItemCount) { argument.returnedItemCountSpecified = true; } + if (0 <= argument.chargebackAmount) { argument.chargebackAmountSpecified = true; } + if (0 <= argument.chargebackCount) { argument.chargebackCountSpecified = true; } + if (0 <= argument.correctionNoticeCount) { argument.correctionNoticeCountSpecified = true; } + if (0 <= argument.chargeChargeBackAmount) { argument.chargeChargeBackAmountSpecified = true; } + if (0 <= argument.chargeChargeBackCount) { argument.chargeChargeBackCountSpecified = true; } + if (0 <= argument.refundChargeBackAmount) { argument.refundChargeBackAmountSpecified = true; } + if (0 <= argument.refundChargeBackCount) { argument.refundChargeBackCountSpecified = true; } + if (0 <= argument.chargeReturnedItemsAmount) { argument.chargeReturnedItemsAmountSpecified = true; } + if (0 <= argument.chargeReturnedItemsCount) { argument.chargeReturnedItemsCountSpecified = true; } + if (0 <= argument.refundReturnedItemsAmount) { argument.refundReturnedItemsAmountSpecified = true; } + if (0 <= argument.refundReturnedItemsCount) { argument.refundReturnedItemsCountSpecified = true; } + } + } + public static void BatchDetailsType(batchDetailsType argument) + { + if (null != argument) + { + if (DateTime.MinValue != argument.settlementTimeUTC) { argument.settlementTimeUTCSpecified = true; } + if (DateTime.MinValue != argument.settlementTimeLocal) { argument.settlementTimeLocalSpecified = true; } + if (null != argument.statistics) { foreach (var value in argument.statistics) { BatchStatisticType(value); } } + } + } + public static void FDSFilterType(FDSFilterType argument) + { + if (null != argument) + { + } + } - public static void customerProfileIdType(customerProfileIdType argument) - { - if (null != argument) - { - } - } + public static void TransactionDetailsTypeTag(transactionDetailsTypeTag argument) + { + if (null != argument) + { + } + } - public static void ARBSubscriptionType(ARBSubscriptionType argument) - { - if (null != argument) - { - paymentScheduleType(argument.paymentSchedule); - if (0 < argument.amount) { argument.amountSpecified = true; } + public static void OtherTaxType(otherTaxType argument) + { + if (null != argument) + { + if (argument.nationalTaxAmount >= 0) { argument.nationalTaxAmountSpecified = true; } + if (argument.localTaxAmount >= 0) { argument.localTaxAmountSpecified = true; } + if (argument.alternateTaxAmount >= 0) { argument.alternateTaxAmountSpecified = true; } + if (argument.vatTaxRate >= 0) { argument.vatTaxRateSpecified = true; } + if (argument.vatTaxAmount >= 0) { argument.vatTaxAmountSpecified = true; } + } + } + 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); - paymentType(argument.payment); - orderType(argument.order); - customerType(argument.customer); - nameAndAddressType(argument.billTo); - nameAndAddressType(argument.shipTo); - customerProfileIdType(argument.profile); - } - } + if (null != argument.emvDetails) { foreach (var value in argument.emvDetails) { TransactionDetailsTypeTag(value); } } - public static void ARBSubscriptionTypeSetTrialAmountSpecified(ARBSubscriptionType argument) - { - if (null != argument) - { - if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; } - } - } + CustomerProfileIdType(argument.profile); + ExtendedAmountType(argument.surcharge); + ExtendedAmountType(argument.tip); + OtherTaxType(argument.otherTax); + NameAndAddressType(argument.shipFrom); + } + } + public static void PaymentMaskedType(paymentMaskedType argument) + { + if (null != argument) + { + if (argument.Item is bankAccountMaskedType) { BankAccountMaskedType(argument.Item as bankAccountMaskedType); } + if (argument.Item is creditCardMaskedType) { CreditCardMaskedType(argument.Item as creditCardMaskedType); } + if (argument.Item is tokenMaskedType) + { + TokenMaskedType(argument.Item as tokenMaskedType); + } - public static void paymentDetails(paymentDetails argument) - { - if (null != argument) - { - } - } - public static void fingerPrintType(fingerPrintType argument) - { - if (null != argument) - { - } - } - public static void impersonationAuthenticationType(impersonationAuthenticationType argument) - { - if (null != argument) - { - } - } + } - public static void merchantAuthenticationType(merchantAuthenticationType argument) - { - if (null != argument) - { - if (argument.Item is fingerPrintType) - { - fingerPrintType(argument.Item as fingerPrintType); - } - if (argument.Item is impersonationAuthenticationType) { impersonationAuthenticationType(argument.Item as impersonationAuthenticationType); } - } - } - public static void ANetApiRequest(ANetApiRequest argument) - { - if (null != argument) - { - merchantAuthenticationType(argument.merchantAuthentication); - } - } - public static void decryptPaymentDataResponse(decryptPaymentDataResponse argument) - { - if (null != argument) - { - customerAddressType(argument.shippingInfo); - customerAddressType(argument.billingInfo); - creditCardMaskedType(argument.cardInfo); - paymentDetails(argument.paymentDetails); - } - } - public static void ANetApiResponse(ANetApiResponse argument) - { - if (null != argument) - { - messagesType(argument.messages); - } - } - public static void securePaymentContainerRequest(securePaymentContainerRequest argument) - { - if(null != argument) - { - webCheckOutDataType(argument.data); - } - } - public static void securePaymentContainerResponse(securePaymentContainerResponse argument) - { - if(null != argument) - { - opaqueDataType(argument.opaqueData); - } - } - public static void webCheckOutDataType(webCheckOutDataType argument) - { - if (null != argument) - { - webCheckOutDataTypeToken(argument.token); - } - } - public static void webCheckOutDataTypeToken(webCheckOutDataTypeToken argument) - { - if (null != argument) - { - } - } - public static void isAliveRequest(isAliveRequest argument) - { - if (null != argument) - { - } - } + } + public static void BankAccountMaskedType(bankAccountMaskedType argument) + { + if (null != argument) + { + if (0 <= argument.accountType) { argument.accountTypeSpecified = true; } + if (0 <= argument.echeckType) { argument.echeckTypeSpecified = true; } + } + } + public static void CreditCardMaskedType(creditCardMaskedType argument) + { + if (null != argument) + { + CardArt(argument.cardArt); + if (argument.isPaymentToken) { argument.isPaymentTokenSpecified = true; } + } + } + public static void CardArt(cardArt argument) + { + if (null != argument) + { + } + } + public static void TokenMaskedType(tokenMaskedType argument) + { + if (null != argument) + { + } + } + 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); + TransactionResponseEmvResponse(argument.emvResponse); + CustomerProfileIdType(argument.profile); + } + } - // Added this method because isAliveRequest take AnetApiRequest as argument. - // AnetApiSchema.generated.cs - isAliveRequest is not the child class of AnetApiRequest class. - public static void isAliveRequest(ANetApiRequest argument) - { - if (null != argument) - { - } - } - public static void isAliveResponse(isAliveResponse argument) - { - if (null != argument) - { - } - } - public static void authenticateTestRequest(authenticateTestRequest argument) - { - if (null != argument) - { - } - } - public static void authenticateTestResponse(authenticateTestResponse argument) - { - if (null != argument) - { - } - } - public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument) - { - if (null != argument) - { - ARBSubscriptionType(argument.subscription); - ARBSubscriptionTypeSetTrialAmountSpecified(argument.subscription); - } - } - public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument) - { - if (null != argument) - { - customerProfileIdType(argument.profile); - } - } - public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument) - { - if (null != argument) - { - ARBSubscriptionType(argument.subscription); - } - } - public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument) - { - if (null != argument) - { - customerProfileIdType(argument.profile); - } - } - public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument) - { - if (null != argument) - { - } - } - public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument) - { - if (null != argument) - { - } - } - public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument) - { - if (null != argument) - { - } - } - public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument) - { - if (null != argument) - { - if (0 <= argument.status) { argument.statusSpecified = true; } - } - } - public static void createCustomerProfileRequest(createCustomerProfileRequest argument) - { - if (null != argument) - { - customerProfileType(argument.profile); - if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } - } - } - public static void createCustomerProfileResponse(createCustomerProfileResponse argument) - { - if (null != argument) - { - } - } - public static void createCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument) - { - if (null != argument) - { - customerPaymentProfileType(argument.paymentProfile); - if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } - } - } - public static void createCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument) - { - if (null != argument) - { - } - } - public static void createCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument) - { - if (null != argument) - { - customerAddressType(argument.address); - } - } - public static void createCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument) - { - if (null != argument) - { - } - } - public static void createCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument) - { - if (null != argument) - { - customerProfileBaseType(argument.customer); - if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} - if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} - if(0 <= argument.profileType) { argument.profileTypeSpecified=true;} - } - } - public static void getCustomerProfileRequest(getCustomerProfileRequest argument) - { - if (null != argument) - { - if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true;} - if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;} + public static void TransactionResponseEmvResponse(transactionResponseEmvResponse argument) + { + if (null != argument) + { + if (null != argument.tags) { foreach (var value in argument.tags) { EmvTag(value); } } + } + } - } - } - public static void getCustomerProfileResponse(getCustomerProfileResponse argument) - { - if (null != argument) - { - customerProfileMaskedType(argument.profile); - } - } - public static void getCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument) - { - if (null != argument) - { - if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;} + public static void TransactionResponsePrePaidCard(transactionResponsePrePaidCard argument) + { + if (null != argument) + { + } + } + public static void TransactionResponseMessage(transactionResponseMessage argument) + { + if (null != argument) + { + } + } + public static void TransactionResponseError(transactionResponseError argument) + { + if (null != argument) + { + } + } + public static void TransactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument) + { + if (null != argument) + { + } + } + public static void TransactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument) + { + if (null != argument) + { + } + } + public static void ProfileTransVoidType(profileTransVoidType argument) + { + if (null != argument) + { + } + } + public static void ProfileTransAmountType(profileTransAmountType argument) + { + if (null != argument) + { + ExtendedAmountType(argument.tax); + ExtendedAmountType(argument.shipping); + ExtendedAmountType(argument.duty); + if (null != argument.lineItems) { foreach (var value in argument.lineItems) { LineItemType(value); } } + } + } + public static void ProfileTransRefundType(profileTransRefundType argument) + { + if (null != argument) + { + ProfileTransAmountType(argument); + OrderExType(argument.order); + } + } + public static void ProfileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument) + { + if (null != argument) + { + ProfileTransAmountType(argument); + } + } + public static void ProfileTransOrderType(profileTransOrderType argument) + { + if (null != argument) + { + ProfileTransAmountType(argument); + OrderExType(argument.order); + if (argument.taxExempt) { argument.taxExemptSpecified = true; } + if (argument.recurringBilling) + { + argument.recurringBillingSpecified = true; + ProcessingOptions(argument.processingOptions); + SubsequentAuthInformation(argument.subsequentAuthInformation); + AuthorizationIndicatorType(argument.authorizationIndicatorType); + } + } + } + public static void ProcessingOptions(processingOptions argument) + { + if (null != argument) + { + if (argument.isFirstRecurringPayment) { argument.isFirstRecurringPaymentSpecified = true; } + if (argument.isFirstSubsequentAuth) { argument.isFirstSubsequentAuthSpecified = true; } + if (argument.isSubsequentAuth) { argument.isSubsequentAuthSpecified = true; } + if (argument.isStoredCredentials) { argument.isStoredCredentialsSpecified = true; } + } + } + public static void SubsequentAuthInformation(subsequentAuthInformation argument) + { + if (null != argument) + { + if (0 <= argument.reason) { argument.reasonSpecified = true; } + } + } + public static void AuthorizationIndicatorType(authorizationIndicatorType argument) + { + if (null != argument) + { - } - } - public static void getCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument) - { - if (null != argument) - { - customerPaymentProfileMaskedType(argument.paymentProfile); - } - } - public static void getCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument) - { - if (null != argument) - { - } - } - public static void getCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument) - { - if (null != argument) - { - if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} - customerAddressExType(argument.address); - } - } - public static void updateCustomerProfileRequest(updateCustomerProfileRequest argument) - { - if (null != argument) - { - if (null != argument.profile && argument.profile.GetType() == typeof(customerProfileInfoExType)) - { - customerProfileInfoExType((customerProfileInfoExType)argument.profile); - } - else - { - customerProfileExType(argument.profile); - } - } - } - public static void updateCustomerProfileResponse(updateCustomerProfileResponse argument) - { - if (null != argument) - { - } - } - public static void updateCustomerPaymentProfileRequest(updateCustomerPaymentProfileRequest argument) - { - if (null != argument) - { - customerPaymentProfileExType(argument.paymentProfile); - if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } - } - } - public static void updateCustomerPaymentProfileResponse(updateCustomerPaymentProfileResponse argument) - { - if (null != argument) - { - } - } - public static void updateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument) - { - if (null != argument) - { - customerAddressExType(argument.address); - if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} - } - } - public static void updateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerProfileRequest(deleteCustomerProfileRequest argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerProfileResponse(deleteCustomerProfileResponse argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument) - { - if (null != argument) - { - } - } - public static void deleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument) - { - if (null != argument) - { - } - } - public static void createCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument) - { - if (null != argument) - { - profileTransactionType(argument.transaction); - } - } - public static void createCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument) - { - if (null != argument) - { - transactionResponse(argument.transactionResponse); - } - } - public static void validateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument) - { - if (null != argument) - { - } - } - public static void validateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument) - { - if (null != argument) - { - } - } - public static void getCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument) - { - if (null != argument) - { - } - } - public static void getCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument) - { - if (null != argument) - { - } - } - public static void updateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument) - { - if (null != argument) - { - } - } - public static void updateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument) - { - if (null != argument) - { - } - } - public static void getTransactionDetailsRequest(getTransactionDetailsRequest argument) - { - if (null != argument) - { - } - } - public static void getTransactionDetailsResponse(getTransactionDetailsResponse argument) - { - if (null != argument) - { - transactionDetailsType(argument.transaction); - } - } - public static void createTransactionRequest(createTransactionRequest argument) - { - if (null != argument) - { - transactionRequestType(argument.transactionRequest); - } - } - public static void createTransactionResponse(createTransactionResponse argument) - { - if (null != argument) - { - transactionResponse(argument.transactionResponse); - createProfileResponse(argument.profileResponse); - } - } - - public static void updateHeldTransactionRequest(updateHeldTransactionRequest argument) - { - if(null != argument) - { - heldTransactionRequestType(argument.heldTransactionRequest); - } - } - public static void updateHeldTransactionResponse(updateHeldTransactionResponse argument) - { - if(null != argument) - { - transactionResponse(argument.transactionResponse); - } - } - - public static void getBatchStatisticsRequest(getBatchStatisticsRequest argument) - { - if (null != argument) - { - } - } - public static void getBatchStatisticsResponse(getBatchStatisticsResponse argument) - { - if (null != argument) - { - batchDetailsType(argument.batch); - } - } - public static void getSettledBatchListRequest(getSettledBatchListRequest argument) - { - if (null != argument) - { - if (argument.includeStatistics) { argument.includeStatisticsSpecified = true; } - if (DateTime.MinValue != argument.firstSettlementDate) { argument.firstSettlementDateSpecified = true; } - if (DateTime.MinValue != argument.lastSettlementDate) { argument.lastSettlementDateSpecified = true; } - } - } - public static void getSettledBatchListResponse(getSettledBatchListResponse argument) - { - if (null != argument) - { - if (null != argument.batchList) { foreach (var value in argument.batchList) { batchDetailsType(value); } } - } - } - public static void getTransactionListRequest(getTransactionListRequest argument) - { - if (null != argument) - { - TransactionListSorting(argument.sorting); - Paging(argument.paging); - } - } - public static void getTransactionListResponse(getTransactionListResponse argument) - { - if (null != argument) - { - if (null != argument.transactions) { foreach (var value in argument.transactions) { transactionSummaryType(value); } } - if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } - } - } - public static void getHostedProfilePageRequest(getHostedProfilePageRequest argument) - { - if (null != argument) - { - if (null != argument.hostedProfileSettings) { foreach (var value in argument.hostedProfileSettings) { settingType(value); } } - } - } - public static void getHostedProfilePageResponse(getHostedProfilePageResponse argument) - { - if (null != argument) - { - } - } - public static void getUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument) - { - if (null != argument) - { - if (0 <= argument.status) { argument.statusSpecified = true; } - TransactionListSorting(argument.sorting); - Paging(argument.paging); - } - } - - public static void getHostedPaymentPageRequest(getHostedPaymentPageRequest argument) - { - if(null != argument) - { - transactionRequestType(argument.transactionRequest); - if(null != argument.hostedPaymentSettings){ foreach( var value in argument.hostedPaymentSettings) { settingType(value);} } - } - } - public static void getHostedPaymentPageResponse(getHostedPaymentPageResponse argument) - { - if(null != argument) - { - } - } - - public static void getUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument) - { - if (null != argument) - { - if (null != argument.transactions) { foreach (var value in argument.transactions) { transactionSummaryType(value); } } - if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } - } - } - public static void mobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument) - { - if (null != argument) - { - mobileDeviceType(argument.mobileDevice); - } - } - public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument) - { - if (null != argument) - { - } - } - public static void mobileDeviceLoginRequest(mobileDeviceLoginRequest argument) - { - if (null != argument) - { - } - } - public static void mobileDeviceLoginResponse(mobileDeviceLoginResponse argument) - { - if (null != argument) - { - merchantContactType(argument.merchantContact); - if (null != argument.userPermissions) { foreach (var value in argument.userPermissions) { permissionType(value); } } - transRetailInfoType(argument.merchantAccount); - } - } - public static void logoutRequest(logoutRequest argument) - { - if (null != argument) - { - } - } - public static void logoutResponse(logoutResponse argument) - { - if (null != argument) - { - } - } - public static void sendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument) - { - if (null != argument) - { - emailSettingsType(argument.emailSettings); - } - } - public static void sendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument) - { - if (null != argument) - { - } - } - public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument) - { - if (null != argument) - { - ARBGetSubscriptionListSorting(argument.sorting); - Paging(argument.paging); - } - } - public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument) - { - if (null != argument) - { - if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } - if (null != argument.subscriptionDetails) { foreach (var value in argument.subscriptionDetails) { SubscriptionDetail(value); } } - } - } + } + } + public static void ProfileTransCaptureOnlyType(profileTransCaptureOnlyType argument) + { + if (null != argument) + { + ProfileTransOrderType(argument); + } + } + public static void ProfileTransAuthOnlyType(profileTransAuthOnlyType argument) + { + if (null != argument) + { + ProfileTransOrderType(argument); + } + } + public static void ProfileTransAuthCaptureType(profileTransAuthCaptureType argument) + { + if (null != argument) + { + ProfileTransOrderType(argument); + } + } + public static void ProfileTransactionType(profileTransactionType argument) + { + if (null != argument) + { + if (argument.Item is profileTransAuthCaptureType) { ProfileTransAuthCaptureType(argument.Item as profileTransAuthCaptureType); } + if (argument.Item is profileTransAuthOnlyType) { ProfileTransAuthOnlyType(argument.Item as profileTransAuthOnlyType); } + if (argument.Item is profileTransCaptureOnlyType) { ProfileTransCaptureOnlyType(argument.Item as profileTransCaptureOnlyType); } + if (argument.Item is profileTransPriorAuthCaptureType) { ProfileTransPriorAuthCaptureType(argument.Item as profileTransPriorAuthCaptureType); } + if (argument.Item is profileTransRefundType) { ProfileTransRefundType(argument.Item as profileTransRefundType); } + if (argument.Item is profileTransVoidType) { ProfileTransVoidType(argument.Item as profileTransVoidType); } + } + } + public static void DriversLicenseMaskedType(driversLicenseMaskedType argument) + { + if (null != argument) + { + } + } + public static void CustomerPaymentProfileBaseType(customerPaymentProfileBaseType argument) + { + if (null != argument) + { + if (0 <= argument.customerType) { argument.customerTypeSpecified = true; } + CustomerAddressType(argument.billTo); + } + } + public static void CustomerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument) + { + if (null != argument) + { + CustomerPaymentProfileBaseType(argument); + if (argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified = true; } + PaymentMaskedType(argument.payment); + DriversLicenseMaskedType(argument.driversLicense); + } + } + public static void CustomerPaymentProfileType(customerPaymentProfileType argument) + { + if (null != argument) + { + CustomerPaymentProfileBaseType(argument); + PaymentType(argument.payment); + DriversLicenseType(argument.driversLicense); + if (argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified = true; } + SubsequentAuthInformation(argument.subsequentAuthInformation); + } + } + public static void CustomerPaymentProfileExType(customerPaymentProfileExType argument) + { + if (null != argument) + { + CustomerPaymentProfileType(argument); + } + } + public static void CustomerProfileBaseType(customerProfileBaseType argument) + { + if (null != argument) + { + } + } + public static void CustomerProfileExType(customerProfileExType argument) + { + if (null != argument) + { + CustomerProfileBaseType(argument); + } + } + public static void CustomerProfileMaskedType(customerProfileMaskedType argument) + { + if (null != argument) + { + CustomerProfileExType(argument); + if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { CustomerPaymentProfileMaskedType(value); } } + if (null != argument.shipToList) { foreach (var value in argument.shipToList) { CustomerAddressExType(value); } } + if (0 <= argument.profileType) { argument.profileTypeSpecified = true; } + } + } + public static void CustomerProfileInfoExType(customerProfileInfoExType argument) + { + if (null != argument) + { + CustomerProfileExType(argument); + if (0 <= argument.profileType) { argument.profileTypeSpecified = true; } + } + } + public static void CustomerProfileType(customerProfileType argument) + { + if (null != argument) + { + CustomerProfileBaseType(argument); + if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { CustomerPaymentProfileType(value); } } + if (null != argument.shipToList) { foreach (var value in argument.shipToList) { CustomerAddressType(value); } } + if (0 <= argument.profileType) { argument.profileTypeSpecified = true; } + } + } + public static void ContactDetailType(ContactDetailType argument) + { - public static void getCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument) - { - if (null != argument) - { - CustomerPaymentProfileSorting(argument.sorting); - Paging(argument.paging); - } - } - public static void getCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument) - { - if (null != argument) - { - if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileListItemType(value); } } - } - } - public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument) - { - if (null != argument) - { - } - } - public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument) - { - if (null != argument) - { - ARBSubscriptionMaskedType(argument.subscription); - } - } + } + public static void SecurePaymentContainerErrorType(securePaymentContainerErrorType argument) + { + if (null != argument) + { + } + } + public static void CustomerType(customerType argument) + { + if (null != argument) + { + if (0 <= argument.type) { argument.typeSpecified = true; } + DriversLicenseType(argument.driversLicense); + } + } + public static void PaymentScheduleType(paymentScheduleType argument) + { + if (null != argument) + { + PaymentScheduleTypeInterval(argument.interval); + if (DateTime.MinValue != argument.startDate) { argument.startDateSpecified = true; } + if (0 <= argument.totalOccurrences) { argument.totalOccurrencesSpecified = true; } + if (0 <= argument.trialOccurrences) { argument.trialOccurrencesSpecified = true; } + } + } - public static void EnumCollection(EnumCollection argument) - { - if (null != argument) - { - customerProfileSummaryType(argument.customerProfileSummaryType); - paymentSimpleType(argument.paymentSimpleType); - } - } - - public static void auDetailsType(auDetailsType argument) - { - if(null != argument) - { - } - } - public static void auDeleteType(auDeleteType argument) - { - if(null != argument) - { - auDetailsType (argument); - creditCardMaskedType(argument.creditCard); - } - } + public static void PaymentScheduleTypeInterval(paymentScheduleTypeInterval argument) + { - public static void auUpdateType(auUpdateType argument) - { - if(null != argument) - { - auDetailsType (argument); - creditCardMaskedType(argument.newCreditCard); - creditCardMaskedType(argument.oldCreditCard); - } - } - public static void auResponseType(auResponseType argument) - { - if(null != argument) - { - } - } + } - public static void emvTag(emvTag argument) - { - if(null != argument) - { - } - } + public static void CustomerProfileIdType(customerProfileIdType argument) + { + if (null != argument) + { + } + } + public static void ARBSubscriptionType(ARBSubscriptionType argument) + { + if (null != argument) + { + PaymentScheduleType(argument.paymentSchedule); + if (0 < argument.amount) { argument.amountSpecified = true; } - public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument) - { - if(null != argument) - { - } - } - public static void getAUJobSummaryResponse(getAUJobSummaryResponse argument) - { - if(null != argument) - { - if(null != argument.auSummary){ foreach( var value in argument.auSummary) { auResponseType(value);} } - } - } - public static void getAUJobDetailsRequest(getAUJobDetailsRequest argument) - { - if(null != argument) - { - if(0 <= argument.modifiedTypeFilter) { argument.modifiedTypeFilterSpecified=true;} - Paging(argument.paging); - } - } - public static void getAUJobDetailsResponse(getAUJobDetailsResponse argument) - { - if(null != argument) - { - if(0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;} - if(null != argument.auDetails){ foreach( var value in argument.auDetails) { auDetailsType(value);} } - } - } + PaymentType(argument.payment); + OrderType(argument.order); + CustomerType(argument.customer); + NameAndAddressType(argument.billTo); + NameAndAddressType(argument.shipTo); + CustomerProfileIdType(argument.profile); + } + } - public static void getMerchantDetailsRequest(getMerchantDetailsRequest argument) - { - - } + public static void ARBSubscriptionTypeSetTrialAmountSpecified(ARBSubscriptionType argument) + { + if (null != argument) + { + if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; } + } + } - public static void getMerchantDetailsResponse(getMerchantDetailsResponse argument) - { - if(null != argument) - { - if(argument.isTestMode) { argument.isTestModeSpecified=true;} - if(null != argument.processors){ foreach( var value in argument.processors) { processorType(value);} } - customerAddressType(argument.businessInformation); - if (null != argument.contactDetails) { foreach (var value in argument.contactDetails) { ContactDetailType(value); } } - } - } - - public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument) - { - if(null != argument) - { - TransactionListSorting(argument.sorting); - Paging(argument.paging); - } - } - public static void updateMerchantDetailsRequest(updateMerchantDetailsRequest argument) - { - if (null != argument) - { - } - } - public static void updateMerchantDetailsResponse(updateMerchantDetailsResponse argument) - { - if (null != argument) - { - } - } - public static void getCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument) - { - - } - public static void getCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument) - { - if (null != argument) - { - opaqueDataType(argument.opaqueData); - } - } - } - - - // ReSharper restore InconsistentNaming -#pragma warning restore 1591 + public static void PaymentDetails(paymentDetails argument) + { + if (null != argument) + { + } + } + public static void FingerPrintType(fingerPrintType argument) + { + if (null != argument) + { + } + } + public static void ImpersonationAuthenticationType(impersonationAuthenticationType argument) + { + if (null != argument) + { + } + } + + public static void MerchantAuthenticationType(merchantAuthenticationType argument) + { + if (null != argument) + { + if (argument.Item is fingerPrintType) + { + FingerPrintType(argument.Item as fingerPrintType); + } + if (argument.Item is impersonationAuthenticationType) { ImpersonationAuthenticationType(argument.Item as impersonationAuthenticationType); } + } + } + public static void ANetApiRequest(ANetApiRequest argument) + { + if (null != argument) + { + MerchantAuthenticationType(argument.merchantAuthentication); + } + } + public static void DecryptPaymentDataResponse(decryptPaymentDataResponse argument) + { + if (null != argument) + { + CustomerAddressType(argument.shippingInfo); + CustomerAddressType(argument.billingInfo); + CreditCardMaskedType(argument.cardInfo); + PaymentDetails(argument.paymentDetails); + } + } + public static void ANetApiResponse(ANetApiResponse argument) + { + if (null != argument) + { + MessagesType(argument.messages); + } + } + public static void SecurePaymentContainerRequest(securePaymentContainerRequest argument) + { + if (null != argument) + { + WebCheckOutDataType(argument.data); + } + } + public static void SecurePaymentContainerResponse(securePaymentContainerResponse argument) + { + if (null != argument) + { + OpaqueDataType(argument.opaqueData); + } + } + public static void WebCheckOutDataType(webCheckOutDataType argument) + { + if (null != argument) + { + WebCheckOutDataTypeToken(argument.token); + } + } + public static void WebCheckOutDataTypeToken(webCheckOutDataTypeToken argument) + { + if (null != argument) + { + } + } + public static void IsAliveRequest(isAliveRequest argument) + { + if (null != argument) + { + } + } + + + // Added this method because isAliveRequest take AnetApiRequest as argument. + // AnetApiSchema.generated.cs - isAliveRequest is not the child class of AnetApiRequest class. + public static void IsAliveRequest(ANetApiRequest argument) + { + if (null != argument) + { + } + } + public static void IsAliveResponse(isAliveResponse argument) + { + if (null != argument) + { + } + } + public static void AuthenticateTestRequest(authenticateTestRequest argument) + { + if (null != argument) + { + } + } + public static void AuthenticateTestResponse(authenticateTestResponse argument) + { + if (null != argument) + { + } + } + public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument) + { + if (null != argument) + { + ARBSubscriptionType(argument.subscription); + ARBSubscriptionTypeSetTrialAmountSpecified(argument.subscription); + } + } + public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument) + { + if (null != argument) + { + CustomerProfileIdType(argument.profile); + } + } + public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument) + { + if (null != argument) + { + ARBSubscriptionType(argument.subscription); + } + } + public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument) + { + if (null != argument) + { + CustomerProfileIdType(argument.profile); + } + } + public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument) + { + if (null != argument) + { + } + } + public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument) + { + if (null != argument) + { + } + } + public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument) + { + if (null != argument) + { + } + } + public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument) + { + if (null != argument) + { + if (0 <= argument.status) { argument.statusSpecified = true; } + } + } + public static void CreateCustomerProfileRequest(createCustomerProfileRequest argument) + { + if (null != argument) + { + CustomerProfileType(argument.profile); + if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } + } + } + public static void CreateCustomerProfileResponse(createCustomerProfileResponse argument) + { + if (null != argument) + { + } + } + public static void CreateCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument) + { + if (null != argument) + { + CustomerPaymentProfileType(argument.paymentProfile); + if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } + } + } + public static void CreateCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument) + { + if (null != argument) + { + } + } + public static void CreateCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument) + { + if (null != argument) + { + CustomerAddressType(argument.address); + } + } + public static void CreateCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument) + { + if (null != argument) + { + } + } + public static void CreateCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument) + { + if (null != argument) + { + CustomerProfileBaseType(argument.customer); + if (argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified = true; } + if (argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified = true; } + if (0 <= argument.profileType) { argument.profileTypeSpecified = true; } + } + } + public static void GetCustomerProfileRequest(getCustomerProfileRequest argument) + { + if (null != argument) + { + if (argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified = true; } + if (argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified = true; } + + } + } + public static void GetCustomerProfileResponse(getCustomerProfileResponse argument) + { + if (null != argument) + { + CustomerProfileMaskedType(argument.profile); + } + } + public static void GetCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument) + { + if (null != argument) + { + if (argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified = true; } + + } + } + public static void GetCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument) + { + if (null != argument) + { + CustomerPaymentProfileMaskedType(argument.paymentProfile); + } + } + public static void GetCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument) + { + if (null != argument) + { + } + } + public static void GetCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument) + { + if (null != argument) + { + if (argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified = true; } + CustomerAddressExType(argument.address); + } + } + public static void UpdateCustomerProfileRequest(updateCustomerProfileRequest argument) + { + if (null != argument) + { + if (null != argument.profile && argument.profile.GetType() == typeof(customerProfileInfoExType)) + { + CustomerProfileInfoExType((customerProfileInfoExType)argument.profile); + } + else + { + CustomerProfileExType(argument.profile); + } + } + } + public static void UpdateCustomerProfileResponse(updateCustomerProfileResponse argument) + { + if (null != argument) + { + } + } + public static void UpdateCustomerPaymentProfileRequest(UpdateCustomerPaymentProfileRequest argument) + { + if (null != argument) + { + CustomerPaymentProfileExType(argument.paymentProfile); + if (0 <= argument.validationMode) { argument.validationModeSpecified = true; } + } + } + public static void UpdateCustomerPaymentProfileResponse(UpdateCustomerPaymentProfileResponse argument) + { + if (null != argument) + { + } + } + public static void UpdateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument) + { + if (null != argument) + { + CustomerAddressExType(argument.address); + if (argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified = true; } + } + } + public static void UpdateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerProfileRequest(deleteCustomerProfileRequest argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerProfileResponse(deleteCustomerProfileResponse argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument) + { + if (null != argument) + { + } + } + public static void DeleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument) + { + if (null != argument) + { + } + } + public static void CreateCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument) + { + if (null != argument) + { + ProfileTransactionType(argument.transaction); + } + } + public static void CreateCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument) + { + if (null != argument) + { + TransactionResponse(argument.transactionResponse); + } + } + public static void ValidateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument) + { + if (null != argument) + { + } + } + public static void ValidateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument) + { + if (null != argument) + { + } + } + public static void GetCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument) + { + if (null != argument) + { + } + } + public static void GetCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument) + { + if (null != argument) + { + } + } + public static void UpdateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument) + { + if (null != argument) + { + } + } + public static void UpdateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument) + { + if (null != argument) + { + } + } + public static void GetTransactionDetailsRequest(getTransactionDetailsRequest argument) + { + if (null != argument) + { + } + } + public static void GetTransactionDetailsResponse(getTransactionDetailsResponse argument) + { + if (null != argument) + { + TransactionDetailsType(argument.transaction); + } + } + public static void CreateTransactionRequest(createTransactionRequest argument) + { + if (null != argument) + { + TransactionRequestType(argument.transactionRequest); + } + } + public static void CreateTransactionResponse(createTransactionResponse argument) + { + if (null != argument) + { + TransactionResponse(argument.transactionResponse); + CreateProfileResponse(argument.profileResponse); + } + } + + public static void UpdateHeldTransactionRequest(updateHeldTransactionRequest argument) + { + if (null != argument) + { + HeldTransactionRequestType(argument.heldTransactionRequest); + } + } + public static void UpdateHeldTransactionResponse(updateHeldTransactionResponse argument) + { + if (null != argument) + { + TransactionResponse(argument.transactionResponse); + } + } + + public static void GetBatchStatisticsRequest(getBatchStatisticsRequest argument) + { + if (null != argument) + { + } + } + public static void GetBatchStatisticsResponse(getBatchStatisticsResponse argument) + { + if (null != argument) + { + BatchDetailsType(argument.batch); + } + } + public static void GetSettledBatchListRequest(getSettledBatchListRequest argument) + { + if (null != argument) + { + if (argument.includeStatistics) { argument.includeStatisticsSpecified = true; } + if (DateTime.MinValue != argument.firstSettlementDate) { argument.firstSettlementDateSpecified = true; } + if (DateTime.MinValue != argument.lastSettlementDate) { argument.lastSettlementDateSpecified = true; } + } + } + public static void GetSettledBatchListResponse(getSettledBatchListResponse argument) + { + if (null != argument) + { + if (null != argument.batchList) { foreach (var value in argument.batchList) { BatchDetailsType(value); } } + } + } + public static void GetTransactionListRequest(getTransactionListRequest argument) + { + if (null != argument) + { + TransactionListSorting(argument.sorting); + Paging(argument.paging); + } + } + public static void GetTransactionListResponse(getTransactionListResponse argument) + { + if (null != argument) + { + if (null != argument.transactions) { foreach (var value in argument.transactions) { TransactionSummaryType(value); } } + if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } + } + } + public static void GetHostedProfilePageRequest(getHostedProfilePageRequest argument) + { + if (null != argument) + { + if (null != argument.hostedProfileSettings) { foreach (var value in argument.hostedProfileSettings) { SettingType(value); } } + } + } + public static void GetHostedProfilePageResponse(getHostedProfilePageResponse argument) + { + if (null != argument) + { + } + } + public static void GetUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument) + { + if (null != argument) + { + if (0 <= argument.status) { argument.statusSpecified = true; } + TransactionListSorting(argument.sorting); + Paging(argument.paging); + } + } + + public static void GetHostedPaymentPageRequest(getHostedPaymentPageRequest argument) + { + if (null != argument) + { + TransactionRequestType(argument.transactionRequest); + if (null != argument.hostedPaymentSettings) { foreach (var value in argument.hostedPaymentSettings) { SettingType(value); } } + } + } + public static void GetHostedPaymentPageResponse(getHostedPaymentPageResponse argument) + { + if (null != argument) + { + } + } + + public static void GetUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument) + { + if (null != argument) + { + if (null != argument.transactions) { foreach (var value in argument.transactions) { TransactionSummaryType(value); } } + if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } + } + } + public static void MobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument) + { + if (null != argument) + { + MobileDeviceType(argument.mobileDevice); + } + } + public static void MobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument) + { + if (null != argument) + { + } + } + public static void MobileDeviceLoginRequest(mobileDeviceLoginRequest argument) + { + if (null != argument) + { + } + } + public static void MobileDeviceLoginResponse(mobileDeviceLoginResponse argument) + { + if (null != argument) + { + MerchantContactType(argument.merchantContact); + if (null != argument.userPermissions) { foreach (var value in argument.userPermissions) { PermissionType(value); } } + TransRetailInfoType(argument.merchantAccount); + } + } + public static void LogoutRequest(logoutRequest argument) + { + if (null != argument) + { + } + } + public static void LogoutResponse(logoutResponse argument) + { + if (null != argument) + { + } + } + public static void SendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument) + { + if (null != argument) + { + EmailSettingsType(argument.emailSettings); + } + } + public static void SendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument) + { + if (null != argument) + { + } + } + public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument) + { + if (null != argument) + { + ARBGetSubscriptionListSorting(argument.sorting); + Paging(argument.paging); + } + } + public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument) + { + if (null != argument) + { + if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } + if (null != argument.subscriptionDetails) { foreach (var value in argument.subscriptionDetails) { SubscriptionDetail(value); } } + } + } + + public static void GetCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument) + { + if (null != argument) + { + CustomerPaymentProfileSorting(argument.sorting); + Paging(argument.paging); + } + } + public static void GetCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument) + { + if (null != argument) + { + if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { CustomerPaymentProfileListItemType(value); } } + } + } + public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument) + { + if (null != argument) + { + } + } + public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument) + { + if (null != argument) + { + ARBSubscriptionMaskedType(argument.subscription); + } + } + + public static void EnumCollection(EnumCollection argument) + { + if (null != argument) + { + CustomerProfileSummaryType(argument.customerProfileSummaryType); + PaymentSimpleType(argument.paymentSimpleType); + } + } + + public static void AuDetailsType(auDetailsType argument) + { + if (null != argument) + { + } + } + public static void AuDeleteType(auDeleteType argument) + { + if (null != argument) + { + AuDetailsType(argument); + CreditCardMaskedType(argument.creditCard); + } + } + + public static void AuUpdateType(auUpdateType argument) + { + if (null != argument) + { + AuDetailsType(argument); + CreditCardMaskedType(argument.newCreditCard); + CreditCardMaskedType(argument.oldCreditCard); + } + } + public static void AuResponseType(auResponseType argument) + { + if (null != argument) + { + } + } + + public static void EmvTag(emvTag argument) + { + if (null != argument) + { + } + } + + + public static void GetAUJobSummaryRequest(getAUJobSummaryRequest argument) + { + if (null != argument) + { + } + } + public static void GetAUJobSummaryResponse(getAUJobSummaryResponse argument) + { + if (null != argument) + { + if (null != argument.auSummary) { foreach (var value in argument.auSummary) { AuResponseType(value); } } + } + } + public static void GetAUJobDetailsRequest(getAUJobDetailsRequest argument) + { + if (null != argument) + { + if (0 <= argument.modifiedTypeFilter) { argument.modifiedTypeFilterSpecified = true; } + Paging(argument.paging); + } + } + public static void GetAUJobDetailsResponse(getAUJobDetailsResponse argument) + { + if (null != argument) + { + if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; } + if (null != argument.auDetails) { foreach (var value in argument.auDetails) { AuDetailsType(value); } } + } + } + + public static void GetMerchantDetailsRequest(getMerchantDetailsRequest argument) + { + + } + + public static void GetMerchantDetailsResponse(getMerchantDetailsResponse argument) + { + if (null != argument) + { + if (argument.isTestMode) { argument.isTestModeSpecified = true; } + if (null != argument.processors) { foreach (var value in argument.processors) { ProcessorType(value); } } + CustomerAddressType(argument.businessInformation); + if (null != argument.contactDetails) { foreach (var value in argument.contactDetails) { ContactDetailType(value); } } + } + } + + public static void GetTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument) + { + if (null != argument) + { + TransactionListSorting(argument.sorting); + Paging(argument.paging); + } + } + public static void UpdateMerchantDetailsRequest(updateMerchantDetailsRequest argument) + { + if (null != argument) + { + } + } + public static void UpdateMerchantDetailsResponse(updateMerchantDetailsResponse argument) + { + if (null != argument) + { + } + } + public static void GetCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument) + { + + } + public static void GetCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument) + { + if (null != argument) + { + OpaqueDataType(argument.opaqueData); + } + } + } + + + // ReSharper restore InconsistentNaming #pragma warning restore 169 } -/* -Requests -ARBCreateSubscriptionRequest -ARBUpdateSubscriptionRequest -createCustomerPaymentProfileRequest -createCustomerProfileRequest -createCustomerProfileTransactionRequest -createTransactionRequest -getSettledBatchListRequest -mobileDeviceRegistrationRequest -updateCustomerPaymentProfileRequest -XXDoNotUseDummyRequest +/* +Requests +ARBCreateSubscriptionRequest +ARBUpdateSubscriptionRequest +createCustomerPaymentProfileRequest +createCustomerProfileRequest +createCustomerProfileTransactionRequest +createTransactionRequest +getSettledBatchListRequest +mobileDeviceRegistrationRequest +UpdateCustomerPaymentProfileRequest +XXDoNotUseDummyRequest ECHO is off. */ -/* -Objects +/* +Objects ECHO is off. -ARBSubscriptionType -bankAccountMaskedType -bankAccountType -batchDetailsType -batchStatisticType -customerDataType -customerPaymentProfileBaseType -customerPaymentProfileExType -customerPaymentProfileMaskedType -customerPaymentProfileType -customerProfileMaskedType -customerProfileType -customerType -lineItemType -mobileDeviceType -paymentMaskedType -paymentScheduleType -paymentSimpleType -paymentType -profileTransactionType -profileTransAmountType -profileTransAuthCaptureType -profileTransAuthOnlyType -profileTransCaptureOnlyType -profileTransOrderType -profileTransPriorAuthCaptureType -profileTransRefundType -transactionDetailsType -transactionRequestType -transactionSummaryType +ARBSubscriptionType +bankAccountMaskedType +bankAccountType +batchDetailsType +batchStatisticType +customerDataType +customerPaymentProfileBaseType +customerPaymentProfileExType +customerPaymentProfileMaskedType +customerPaymentProfileType +customerProfileMaskedType +customerProfileType +customerType +lineItemType +mobileDeviceType +paymentMaskedType +paymentScheduleType +paymentSimpleType +paymentType +profileTransactionType +profileTransAmountType +profileTransAuthCaptureType +profileTransAuthOnlyType +profileTransCaptureOnlyType +profileTransOrderType +profileTransPriorAuthCaptureType +profileTransRefundType +transactionDetailsType +transactionRequestType +transactionSummaryType ECHO is off. */ diff --git a/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org b/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org index 525c6163..2b641728 100644 --- a/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org +++ b/Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org @@ -1,94 +1,94 @@ -namespace AuthorizeNet.Api.Contracts.V1 -{ - using System; -#pragma warning disable 169 -#pragma warning disable 1591 -// ReSharper disable InconsistentNaming - /// - /// Special case handlers - /// - /// validated on ????/??/?? for objects listed at the end - /// should be validated after each update of AnetApiSchema.cs - /// for fields/properties that are minOccurs="0" since xsd.exe - /// generates "specified" property for such fields and requires - /// special handling to set them seamlessly - /// Make sure to update the respective controllers to call the respective request hand - /// - /// - public static class RequestFactoryWithSpecified +namespace AuthorizeNet.Api.Contracts.V1 +{ + using System; +#pragma warning disable 169 +#pragma warning disable 1591 +// ReSharper disable InconsistentNaming + /// + /// Special case handlers + /// + /// validated on ????/??/?? for objects listed at the end + /// should be validated after each update of AnetApiSchema.cs + /// for fields/properties that are minOccurs="0" since xsd.exe + /// generates "specified" property for such fields and requires + /// special handling to set them seamlessly + /// Make sure to update the respective controllers to call the respective request hand + /// + /// + public static class RequestFactoryWithSpecified { } } - public static void decryptPaymentDataRequest(decryptPaymentDataRequest argument) + public static void decryptPaymentDataRequest(decryptPaymentDataRequest argument) { - if(null != argument) + if(null != argument) { opaqueDataType(argument.opaqueData); } } - public static void opaqueDataType(opaqueDataType argument) + public static void opaqueDataType(opaqueDataType argument) { - if(null != argument) + if(null != argument) { if(argument.expirationTimeStamp) { argument.expirationTimeStampSpecified=true;} } } - public static void processorType(processorType argument) + public static void processorType(processorType argument) { - if(null != argument) + if(null != argument) { [System.Xml.Serialization.XmlArrayItemAttribute("cardType")] } } - public static void auDetailsType(auDetailsType argument) + public static void auDetailsType(auDetailsType argument) { - if(null != argument) + if(null != argument) { long(argument.customerProfileID); long(argument.customerPaymentProfileID); } } - public static void auDeleteType(auDeleteType argument) + public static void auDeleteType(auDeleteType argument) { - if(null != argument) + if(null != argument) { auDetailsType (argument); creditCardMaskedType(argument.creditCard); } } - public static void creditCardMaskedType(creditCardMaskedType argument) + public static void creditCardMaskedType(creditCardMaskedType argument) { - if(null != argument) + if(null != argument) { cardArt(argument.cardArt); if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true;} } } - public static void cardArt(cardArt argument) + public static void cardArt(cardArt argument) { - if(null != argument) + if(null != argument) { } } - public static void auUpdateType(auUpdateType argument) + public static void auUpdateType(auUpdateType argument) { - if(null != argument) + if(null != argument) { auDetailsType (argument); creditCardMaskedType(argument.newCreditCard); creditCardMaskedType(argument.oldCreditCard); } } - public static void auResponseType(auResponseType argument) + public static void auResponseType(auResponseType argument) { - if(null != argument) + if(null != argument) { long(argument.profileCount); } } - public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument) + public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument) { - if(null != argument) + if(null != argument) { if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} customerAddressType(argument.billTo); @@ -96,204 +96,204 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;} } } - public static void customerAddressType(customerAddressType argument) + public static void customerAddressType(customerAddressType argument) { - if(null != argument) + if(null != argument) { nameAndAddressType (argument); } } - public static void nameAndAddressType(nameAndAddressType argument) + public static void nameAndAddressType(nameAndAddressType argument) { - if(null != argument) + if(null != argument) { } } - public static void customerAddressExType(customerAddressExType argument) + public static void customerAddressExType(customerAddressExType argument) { - if(null != argument) + if(null != argument) { customerAddressType (argument); } } - public static void paymentMaskedType(paymentMaskedType argument) + public static void paymentMaskedType(paymentMaskedType argument) { - if(null != argument) + if(null != argument) { bankAccountMaskedType(argument); creditCardMaskedType(argument); tokenMaskedType(argument); } } - public static void bankAccountMaskedType(bankAccountMaskedType argument) + public static void bankAccountMaskedType(bankAccountMaskedType argument) { - if(null != argument) + if(null != argument) { if(argument.accountType) { argument.accountTypeSpecified=true;} if(argument.echeckType) { argument.echeckTypeSpecified=true;} } } - public static void tokenMaskedType(tokenMaskedType argument) + public static void tokenMaskedType(tokenMaskedType argument) { - if(null != argument) + if(null != argument) { } } - public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument) + public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument) { - if(null != argument) + if(null != argument) { (argument.orderDescending); } } - public static void customerProfileSummaryType(customerProfileSummaryType argument) + public static void customerProfileSummaryType(customerProfileSummaryType argument) { - if(null != argument) + if(null != argument) { } } - public static void SubscriptionDetail(SubscriptionDetail argument) + public static void SubscriptionDetail(SubscriptionDetail argument) { - if(null != argument) + if(null != argument) { if(argument.customerShippingProfileId) { argument.customerShippingProfileIdSpecified=true;} } } - public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument) + public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument) { - if(null != argument) + if(null != argument) { (argument.orderDescending); } } - public static void Paging(Paging argument) + public static void Paging(Paging argument) { - if(null != argument) + if(null != argument) { } } - public static void TransactionListSorting(TransactionListSorting argument) + public static void TransactionListSorting(TransactionListSorting argument) { - if(null != argument) + if(null != argument) { (argument.orderDescending); } } - public static void heldTransactionRequestType(heldTransactionRequestType argument) + public static void heldTransactionRequestType(heldTransactionRequestType argument) { - if(null != argument) + if(null != argument) { } } - public static void createProfileResponse(createProfileResponse argument) + public static void createProfileResponse(createProfileResponse argument) { - if(null != argument) + if(null != argument) { messagesType(argument.messages); } } - public static void messagesType(messagesType argument) + public static void messagesType(messagesType argument) { - if(null != argument) + if(null != argument) { - if(null != argument.message){ foreach( var value in argument.message) { messagesTypeMessage(value);} } + if(null != argument.message){ foreach( var value in argument.message) { messagesTypeMessage(value);} } } } - public static void messagesTypeMessage(messagesTypeMessage argument) + public static void messagesTypeMessage(messagesTypeMessage argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponse(transactionResponse argument) + public static void transactionResponse(transactionResponse argument) { - if(null != 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);} } + 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); transactionResponseEmvResponse(argument.emvResponse); customerProfileIdType(argument.profile); } } - public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument) + public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponseMessage(transactionResponseMessage argument) + public static void transactionResponseMessage(transactionResponseMessage argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponseError(transactionResponseError argument) + public static void transactionResponseError(transactionResponseError argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument) + public static void transactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument) { - if(null != argument) + if(null != argument) { } } - public static void userField(userField argument) + public static void userField(userField argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument) + public static void transactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionResponseEmvResponse(transactionResponseEmvResponse argument) + public static void transactionResponseEmvResponse(transactionResponseEmvResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.tags){ foreach( var value in argument.tags) { emvTag(value);} } + if(null != argument.tags){ foreach( var value in argument.tags) { emvTag(value);} } } } - public static void emvTag(emvTag argument) + public static void emvTag(emvTag argument) { - if(null != argument) + if(null != argument) { } } - public static void customerProfileIdType(customerProfileIdType argument) + public static void customerProfileIdType(customerProfileIdType argument) { - if(null != argument) + if(null != argument) { } } - public static void returnedItemType(returnedItemType argument) + public static void returnedItemType(returnedItemType argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionDetailsType(transactionDetailsType argument) + public static void transactionDetailsType(transactionDetailsType argument) { - if(null != argument) + if(null != argument) { subscriptionPaymentType(argument.subscription); - if(null != argument.FDSFilters){ foreach( var value in argument.FDSFilters) { FDSFilterType(value);} } + if(null != argument.FDSFilters){ foreach( var value in argument.FDSFilters) { FDSFilterType(value);} } batchDetailsType(argument.batch); orderExType(argument.order); if(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(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} } if(argument.prepaidBalanceRemaining) { argument.prepaidBalanceRemainingSpecified=true;} if(argument.taxExempt) { argument.taxExemptSpecified=true;} paymentMaskedType(argument.payment); @@ -301,9 +301,9 @@ namespace AuthorizeNet.Api.Contracts.V1 customerAddressType(argument.billTo); nameAndAddressType(argument.shipTo); if(argument.recurringBilling) { argument.recurringBillingSpecified=true;} - if(null != argument.returnedItems){ foreach( var value in argument.returnedItems) { returnedItemType(value);} } + if(null != argument.returnedItems){ foreach( var value in argument.returnedItems) { returnedItemType(value);} } solutionType(argument.solution); - if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} } + if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} } customerProfileIdType(argument.profile); extendedAmountType(argument.surcharge); extendedAmountType(argument.tip); @@ -312,30 +312,30 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;} } } - public static void subscriptionPaymentType(subscriptionPaymentType argument) + public static void subscriptionPaymentType(subscriptionPaymentType argument) { - if(null != argument) + if(null != argument) { } } - public static void FDSFilterType(FDSFilterType argument) + public static void FDSFilterType(FDSFilterType argument) { - if(null != argument) + if(null != argument) { } } - public static void batchDetailsType(batchDetailsType argument) + public static void batchDetailsType(batchDetailsType argument) { - if(null != argument) + if(null != argument) { if(argument.settlementTimeUTC) { argument.settlementTimeUTCSpecified=true;} if(argument.settlementTimeLocal) { argument.settlementTimeLocalSpecified=true;} - if(null != argument.statistics){ foreach( var value in argument.statistics) { batchStatisticType(value);} } + if(null != argument.statistics){ foreach( var value in argument.statistics) { batchStatisticType(value);} } } } - public static void batchStatisticType(batchStatisticType argument) + public static void batchStatisticType(batchStatisticType argument) { - if(null != argument) + if(null != argument) { if(argument.returnedItemAmount) { argument.returnedItemAmountSpecified=true;} if(argument.returnedItemCount) { argument.returnedItemCountSpecified=true;} @@ -352,31 +352,31 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.refundReturnedItemsCount) { argument.refundReturnedItemsCountSpecified=true;} } } - public static void orderExType(orderExType argument) + public static void orderExType(orderExType argument) { - if(null != argument) + if(null != argument) { orderType (argument); } } - public static void orderType(orderType argument) + public static void orderType(orderType argument) { - if(null != argument) + if(null != argument) { if(argument.discountAmount) { argument.discountAmountSpecified=true;} if(argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified=true;} if(argument.purchaseOrderDateUTC) { argument.purchaseOrderDateUTCSpecified=true;} } } - public static void extendedAmountType(extendedAmountType argument) + public static void extendedAmountType(extendedAmountType argument) { - if(null != argument) + if(null != argument) { } } - public static void lineItemType(lineItemType argument) + public static void lineItemType(lineItemType argument) { - if(null != argument) + if(null != argument) { if(argument.taxable) { argument.taxableSpecified=true;} if(argument.taxRate) { argument.taxRateSpecified=true;} @@ -393,35 +393,35 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified=true;} } } - public static void customerDataType(customerDataType argument) + public static void customerDataType(customerDataType argument) { - if(null != argument) + if(null != argument) { if(argument.type) { argument.typeSpecified=true;} driversLicenseType(argument.driversLicense); } } - public static void driversLicenseType(driversLicenseType argument) + public static void driversLicenseType(driversLicenseType argument) { - if(null != argument) + if(null != argument) { } } - public static void solutionType(solutionType argument) + public static void solutionType(solutionType argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionDetailsTypeTag(transactionDetailsTypeTag argument) + public static void transactionDetailsTypeTag(transactionDetailsTypeTag argument) { - if(null != argument) + if(null != argument) { } } - public static void otherTaxType(otherTaxType argument) + public static void otherTaxType(otherTaxType argument) { - if(null != argument) + if(null != argument) { if(argument.nationalTaxAmount) { argument.nationalTaxAmountSpecified=true;} if(argument.localTaxAmount) { argument.localTaxAmountSpecified=true;} @@ -430,9 +430,9 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.vatTaxAmount) { argument.vatTaxAmountSpecified=true;} } } - public static void profileTransactionType(profileTransactionType argument) + public static void profileTransactionType(profileTransactionType argument) { - if(null != argument) + if(null != argument) { profileTransAuthCaptureType(argument); profileTransAuthOnlyType(argument); @@ -442,16 +442,16 @@ namespace AuthorizeNet.Api.Contracts.V1 profileTransVoidType(argument); } } - public static void profileTransAuthCaptureType(profileTransAuthCaptureType argument) + public static void profileTransAuthCaptureType(profileTransAuthCaptureType argument) { - if(null != argument) + if(null != argument) { profileTransOrderType (argument); } } - public static void profileTransOrderType(profileTransOrderType argument) + public static void profileTransOrderType(profileTransOrderType argument) { - if(null != argument) + if(null != argument) { profileTransAmountType (argument); orderExType(argument.order); @@ -462,9 +462,9 @@ namespace AuthorizeNet.Api.Contracts.V1 authorizationIndicatorType(argument.authorizationIndicatorType); } } - public static void processingOptions(processingOptions argument) + public static void processingOptions(processingOptions argument) { - if(null != argument) + if(null != argument) { if(argument.isFirstRecurringPayment) { argument.isFirstRecurringPaymentSpecified=true;} if(argument.isFirstSubsequentAuth) { argument.isFirstSubsequentAuthSpecified=true;} @@ -472,90 +472,90 @@ namespace AuthorizeNet.Api.Contracts.V1 if(argument.isStoredCredentials) { argument.isStoredCredentialsSpecified=true;} } } - public static void subsequentAuthInformation(subsequentAuthInformation argument) + public static void subsequentAuthInformation(subsequentAuthInformation argument) { - if(null != argument) + if(null != argument) { if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;} if(argument.reason) { argument.reasonSpecified=true;} } } - public static void authorizationIndicatorType(authorizationIndicatorType argument) + public static void authorizationIndicatorType(authorizationIndicatorType argument) { - if(null != argument) + if(null != argument) { if(argument.authorizationIndicator) { argument.authorizationIndicatorSpecified=true;} } } - public static void profileTransAmountType(profileTransAmountType argument) + public static void profileTransAmountType(profileTransAmountType argument) { - if(null != argument) + if(null != argument) { extendedAmountType(argument.tax); extendedAmountType(argument.shipping); extendedAmountType(argument.duty); - if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} } + if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} } } } - public static void profileTransRefundType(profileTransRefundType argument) + public static void profileTransRefundType(profileTransRefundType argument) { - if(null != argument) + if(null != argument) { profileTransAmountType (argument); orderExType(argument.order); } } - public static void profileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument) + public static void profileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument) { - if(null != argument) + if(null != argument) { profileTransAmountType (argument); } } - public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType argument) + public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType argument) { - if(null != argument) + if(null != argument) { profileTransOrderType (argument); } } - public static void profileTransAuthOnlyType(profileTransAuthOnlyType argument) + public static void profileTransAuthOnlyType(profileTransAuthOnlyType argument) { - if(null != argument) + if(null != argument) { profileTransOrderType (argument); } } - public static void profileTransVoidType(profileTransVoidType argument) + public static void profileTransVoidType(profileTransVoidType argument) { - if(null != argument) + if(null != argument) { } } - public static void paymentProfile(paymentProfile argument) + public static void paymentProfile(paymentProfile argument) { - if(null != argument) + if(null != argument) { } } - public static void customerProfilePaymentType(customerProfilePaymentType argument) + public static void customerProfilePaymentType(customerProfilePaymentType argument) { - if(null != argument) + if(null != argument) { if(argument.createProfile) { argument.createProfileSpecified=true;} paymentProfile(argument.paymentProfile); } } - public static void transactionRequestType(transactionRequestType argument) + public static void transactionRequestType(transactionRequestType argument) { - if(null != argument) + if(null != argument) { if(argument.amount) { argument.amountSpecified=true;} paymentType(argument.payment); customerProfilePaymentType(argument.profile); solutionType(argument.solution); orderType(argument.order); - if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} } + if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} } extendedAmountType(argument.tax); extendedAmountType(argument.duty); extendedAmountType(argument.shipping); @@ -565,8 +565,8 @@ namespace AuthorizeNet.Api.Contracts.V1 nameAndAddressType(argument.shipTo); ccAuthenticationType(argument.cardholderAuthentication); transRetailInfoType(argument.retail); - if(null != argument.transactionSettings){ foreach( var value in argument.transactionSettings) { settingType(value);} } - if(null != argument.userFields){ foreach( var value in argument.userFields) { userField(value);} } + if(null != argument.transactionSettings){ foreach( var value in argument.transactionSettings) { settingType(value);} } + if(null != argument.userFields){ foreach( var value in argument.userFields) { userField(value);} } extendedAmountType(argument.surcharge); subMerchantType(argument.subMerchant); extendedAmountType(argument.tip); @@ -577,9 +577,9 @@ namespace AuthorizeNet.Api.Contracts.V1 authorizationIndicatorType(argument.authorizationIndicatorType); } } - public static void paymentType(paymentType argument) + public static void paymentType(paymentType argument) { - if(null != argument) + if(null != argument) { bankAccountType(argument); creditCardType(argument); @@ -590,67 +590,67 @@ namespace AuthorizeNet.Api.Contracts.V1 creditCardTrackType(argument); } } - public static void bankAccountType(bankAccountType argument) + public static void bankAccountType(bankAccountType argument) { - if(null != argument) + if(null != argument) { if(argument.accountType) { argument.accountTypeSpecified=true;} if(argument.echeckType) { argument.echeckTypeSpecified=true;} } } - public static void creditCardType(creditCardType argument) + public static void creditCardType(creditCardType argument) { - if(null != argument) + if(null != argument) { creditCardSimpleType (argument); if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true;} } } - public static void creditCardSimpleType(creditCardSimpleType argument) + public static void creditCardSimpleType(creditCardSimpleType argument) { - if(null != argument) + if(null != argument) { } } - public static void paymentEmvType(paymentEmvType argument) + public static void paymentEmvType(paymentEmvType argument) { - if(null != argument) + if(null != argument) { } } - public static void encryptedTrackDataType(encryptedTrackDataType argument) + public static void encryptedTrackDataType(encryptedTrackDataType argument) { - if(null != argument) + if(null != argument) { KeyBlock(argument.FormOfPayment); } } - public static void KeyBlock(KeyBlock argument) + public static void KeyBlock(KeyBlock argument) { - if(null != argument) + if(null != argument) { KeyValue(argument.Value); } } - public static void KeyValue(KeyValue argument) + public static void KeyValue(KeyValue argument) { - if(null != argument) + if(null != argument) { EncodingType(argument.Encoding); EncryptionAlgorithmType(argument.EncryptionAlgorithm); KeyManagementScheme(argument.Scheme); } } - public static void KeyManagementScheme(KeyManagementScheme argument) + public static void KeyManagementScheme(KeyManagementScheme argument) { - if(null != argument) + if(null != argument) { KeyManagementSchemeDUKPT(argument.DUKPT); } } - public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument) + public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument) { - if(null != argument) + if(null != argument) { OperationType(argument.Operation); KeyManagementSchemeDUKPTMode(argument.Mode); @@ -658,80 +658,80 @@ namespace AuthorizeNet.Api.Contracts.V1 KeyManagementSchemeDUKPTEncryptedData(argument.EncryptedData); } } - public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument) + public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument) { - if(null != argument) + if(null != argument) { } } - public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument) + public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument) { - if(null != argument) + if(null != argument) { } } - public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument) + public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument) { - if(null != argument) + if(null != argument) { } } - public static void payPalType(payPalType argument) + public static void payPalType(payPalType argument) { - if(null != argument) + if(null != argument) { } } - public static void creditCardTrackType(creditCardTrackType argument) + public static void creditCardTrackType(creditCardTrackType argument) { - if(null != argument) + if(null != argument) { } } - public static void ccAuthenticationType(ccAuthenticationType argument) + public static void ccAuthenticationType(ccAuthenticationType argument) { - if(null != argument) + if(null != argument) { } } - public static void transRetailInfoType(transRetailInfoType argument) + public static void transRetailInfoType(transRetailInfoType argument) { - if(null != argument) + if(null != argument) { transRetailInfoType() { this.marketType = "2"; } } - public static void settingType(settingType argument) + public static void settingType(settingType argument) { - if(null != argument) + if(null != argument) { } } - public static void subMerchantType(subMerchantType argument) + public static void subMerchantType(subMerchantType argument) { - if(null != argument) + if(null != argument) { } } - public static void mobileDeviceType(mobileDeviceType argument) + public static void mobileDeviceType(mobileDeviceType argument) { - if(null != argument) + if(null != argument) { if(argument.deviceActivation) { argument.deviceActivationSpecified=true;} } } - public static void customerPaymentProfileBaseType(customerPaymentProfileBaseType argument) + public static void customerPaymentProfileBaseType(customerPaymentProfileBaseType argument) { - if(null != argument) + if(null != argument) { if(argument.customerType) { argument.customerTypeSpecified=true;} customerAddressType(argument.billTo); } } - public static void customerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument) + public static void customerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileBaseType (argument); if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} @@ -740,15 +740,15 @@ transRetailInfoType() { if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;} } } - public static void driversLicenseMaskedType(driversLicenseMaskedType argument) + public static void driversLicenseMaskedType(driversLicenseMaskedType argument) { - if(null != argument) + if(null != argument) { } } - public static void customerPaymentProfileType(customerPaymentProfileType argument) + public static void customerPaymentProfileType(customerPaymentProfileType argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileBaseType (argument); paymentType(argument.payment); @@ -757,66 +757,66 @@ transRetailInfoType() { subsequentAuthInformation(argument.subsequentAuthInformation); } } - public static void customerPaymentProfileExType(customerPaymentProfileExType argument) + public static void customerPaymentProfileExType(customerPaymentProfileExType argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileType (argument); } } - public static void customerProfileBaseType(customerProfileBaseType argument) + public static void customerProfileBaseType(customerProfileBaseType argument) { - if(null != argument) + if(null != argument) { } } - public static void customerProfileExType(customerProfileExType argument) + public static void customerProfileExType(customerProfileExType argument) { - if(null != argument) + if(null != argument) { customerProfileBaseType (argument); } } - public static void customerProfileMaskedType(customerProfileMaskedType argument) + public static void customerProfileMaskedType(customerProfileMaskedType argument) { - if(null != argument) + if(null != argument) { customerProfileExType (argument); - if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileMaskedType(value);} } - if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressExType(value);} } + if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileMaskedType(value);} } + if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressExType(value);} } if(argument.profileType) { argument.profileTypeSpecified=true;} } } - public static void customerProfileInfoExType(customerProfileInfoExType argument) + public static void customerProfileInfoExType(customerProfileInfoExType argument) { - if(null != argument) + if(null != argument) { customerProfileExType (argument); if(argument.profileType) { argument.profileTypeSpecified=true;} } } - public static void subscriptionCustomerProfileType(subscriptionCustomerProfileType argument) + public static void subscriptionCustomerProfileType(subscriptionCustomerProfileType argument) { - if(null != argument) + if(null != argument) { customerProfileExType (argument); customerPaymentProfileMaskedType(argument.paymentProfile); customerAddressExType(argument.shippingProfile); } } - public static void customerProfileType(customerProfileType argument) + public static void customerProfileType(customerProfileType argument) { - if(null != argument) + if(null != argument) { customerProfileBaseType (argument); - if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileType(value);} } - if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressType(value);} } + if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileType(value);} } + if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressType(value);} } if(argument.profileType) { argument.profileTypeSpecified=true;} } } - public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument) + public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument) { - if(null != argument) + if(null != argument) { paymentScheduleType(argument.paymentSchedule); if(argument.amount) { argument.amountSpecified=true;} @@ -824,12 +824,12 @@ transRetailInfoType() { if(argument.status) { argument.statusSpecified=true;} subscriptionCustomerProfileType(argument.profile); orderType(argument.order); - if(null != argument.arbTransactions){ foreach( var value in argument.arbTransactions) { arbTransaction(value);} } + if(null != argument.arbTransactions){ foreach( var value in argument.arbTransactions) { arbTransaction(value);} } } } - public static void paymentScheduleType(paymentScheduleType argument) + public static void paymentScheduleType(paymentScheduleType argument) { - if(null != argument) + if(null != argument) { paymentScheduleTypeInterval(argument.interval); if(argument.startDate) { argument.startDateSpecified=true;} @@ -837,84 +837,84 @@ transRetailInfoType() { if(argument.trialOccurrences) { argument.trialOccurrencesSpecified=true;} } } - public static void paymentScheduleTypeInterval(paymentScheduleTypeInterval argument) + public static void paymentScheduleTypeInterval(paymentScheduleTypeInterval argument) { - if(null != argument) + if(null != argument) { } } - public static void arbTransaction(arbTransaction argument) + public static void arbTransaction(arbTransaction argument) { - if(null != argument) + if(null != argument) { if(argument.submitTimeUTC) { argument.submitTimeUTCSpecified=true;} if(argument.payNum) { argument.payNumSpecified=true;} if(argument.attemptNum) { argument.attemptNumSpecified=true;} } } - public static void securePaymentContainerErrorType(securePaymentContainerErrorType argument) + public static void securePaymentContainerErrorType(securePaymentContainerErrorType argument) { - if(null != argument) + if(null != argument) { } } - public static void customerType(customerType argument) + public static void customerType(customerType argument) { - if(null != argument) + if(null != argument) { if(argument.type) { argument.typeSpecified=true;} driversLicenseType(argument.driversLicense); } } - public static void paymentSimpleType(paymentSimpleType argument) + public static void paymentSimpleType(paymentSimpleType argument) { - if(null != argument) + if(null != argument) { bankAccountType(argument); creditCardSimpleType(argument); } } - public static void merchantContactType(merchantContactType argument) + public static void merchantContactType(merchantContactType argument) { - if(null != argument) + if(null != argument) { } } - public static void ContactDetailType(ContactDetailType argument) + public static void ContactDetailType(ContactDetailType argument) { - if(null != argument) + if(null != argument) { } } - public static void permissionType(permissionType argument) + public static void permissionType(permissionType argument) { - if(null != argument) + if(null != argument) { } } - public static void ArrayOfSetting(ArrayOfSetting argument) + public static void ArrayOfSetting(ArrayOfSetting argument) { - if(null != argument) + if(null != argument) { - if(null != argument.setting){ foreach( var value in argument.setting) { settingType(value);} } + if(null != argument.setting){ foreach( var value in argument.setting) { settingType(value);} } } } - public static void emailSettingsType(emailSettingsType argument) + public static void emailSettingsType(emailSettingsType argument) { - if(null != argument) + if(null != argument) { ArrayOfSetting (argument); } } - public static void fraudInformationType(fraudInformationType argument) + public static void fraudInformationType(fraudInformationType argument) { - if(null != argument) + if(null != argument) { } } - public static void transactionSummaryType(transactionSummaryType argument) + public static void transactionSummaryType(transactionSummaryType argument) { - if(null != argument) + if(null != argument) { subscriptionPaymentType(argument.subscription); if(argument.hasReturnedItems) { argument.hasReturnedItemsSpecified=true;} @@ -922,9 +922,9 @@ transRetailInfoType() { customerProfileIdType(argument.profile); } } - public static void ARBSubscriptionType(ARBSubscriptionType argument) + public static void ARBSubscriptionType(ARBSubscriptionType argument) { - if(null != argument) + if(null != argument) { paymentScheduleType(argument.paymentSchedule); if(argument.amount) { argument.amountSpecified=true;} @@ -937,56 +937,56 @@ transRetailInfoType() { customerProfileIdType(argument.profile); } } - public static void webCheckOutDataTypeToken(webCheckOutDataTypeToken argument) + public static void webCheckOutDataTypeToken(webCheckOutDataTypeToken argument) { - if(null != argument) + if(null != argument) { } } - public static void webCheckOutDataType(webCheckOutDataType argument) + public static void webCheckOutDataType(webCheckOutDataType argument) { - if(null != argument) + if(null != argument) { webCheckOutDataTypeToken(argument.token); bankAccountType(argument.bankToken); } } - public static void paymentDetails(paymentDetails argument) + public static void paymentDetails(paymentDetails argument) { - if(null != argument) + if(null != argument) { } } - public static void fingerPrintType(fingerPrintType argument) + public static void fingerPrintType(fingerPrintType argument) { - if(null != argument) + if(null != argument) { } } - public static void impersonationAuthenticationType(impersonationAuthenticationType argument) + public static void impersonationAuthenticationType(impersonationAuthenticationType argument) { - if(null != argument) + if(null != argument) { } } - public static void merchantAuthenticationType(merchantAuthenticationType argument) + public static void merchantAuthenticationType(merchantAuthenticationType argument) { - if(null != argument) + if(null != argument) { fingerPrintType(argument); impersonationAuthenticationType(argument); } } - public static void ANetApiRequest(ANetApiRequest argument) + public static void ANetApiRequest(ANetApiRequest argument) { - if(null != argument) + if(null != argument) { merchantAuthenticationType(argument.merchantAuthentication); } } - public static void decryptPaymentDataResponse(decryptPaymentDataResponse argument) + public static void decryptPaymentDataResponse(decryptPaymentDataResponse argument) { - if(null != argument) + if(null != argument) { customerAddressType(argument.shippingInfo); customerAddressType(argument.billingInfo); @@ -994,149 +994,149 @@ transRetailInfoType() { paymentDetails(argument.paymentDetails); } } - public static void ANetApiResponse(ANetApiResponse argument) + public static void ANetApiResponse(ANetApiResponse argument) { - if(null != argument) + if(null != argument) { messagesType(argument.messages); } } - public static void securePaymentContainerRequest(securePaymentContainerRequest argument) + public static void securePaymentContainerRequest(securePaymentContainerRequest argument) { - if(null != argument) + if(null != argument) { webCheckOutDataType(argument.data); } } - public static void securePaymentContainerResponse(securePaymentContainerResponse argument) + public static void securePaymentContainerResponse(securePaymentContainerResponse argument) { - if(null != argument) + if(null != argument) { opaqueDataType(argument.opaqueData); } } - public static void isAliveRequest(isAliveRequest argument) + public static void isAliveRequest(isAliveRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void isAliveResponse(isAliveResponse argument) + public static void isAliveResponse(isAliveResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void authenticateTestRequest(authenticateTestRequest argument) + public static void authenticateTestRequest(authenticateTestRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void authenticateTestResponse(authenticateTestResponse argument) + public static void authenticateTestResponse(authenticateTestResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument) + public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument) { - if(null != argument) + if(null != argument) { ARBSubscriptionType(argument.subscription); } } - public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument) + public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument) { - if(null != argument) + if(null != argument) { customerProfileIdType(argument.profile); } } - public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument) + public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument) { - if(null != argument) + if(null != argument) { ARBSubscriptionType(argument.subscription); } } - public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument) + public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument) { - if(null != argument) + if(null != argument) { customerProfileIdType(argument.profile); } } - public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument) + public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument) + public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument) + public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument) + public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument) { - if(null != argument) + if(null != argument) { if(argument.status) { argument.statusSpecified=true;} } } - public static void createCustomerProfileRequest(createCustomerProfileRequest argument) + public static void createCustomerProfileRequest(createCustomerProfileRequest argument) { - if(null != argument) + if(null != argument) { customerProfileType(argument.profile); if(argument.validationMode) { argument.validationModeSpecified=true;} } } - public static void createCustomerProfileResponse(createCustomerProfileResponse argument) + public static void createCustomerProfileResponse(createCustomerProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void createCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument) + public static void createCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileType(argument.paymentProfile); if(argument.validationMode) { argument.validationModeSpecified=true;} } } - public static void createCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument) + public static void createCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void createCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument) + public static void createCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument) { - if(null != argument) + if(null != argument) { customerAddressType(argument.address); if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} } } - public static void createCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument) + public static void createCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void createCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument) + public static void createCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument) { - if(null != argument) + if(null != argument) { customerProfileBaseType(argument.customer); if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;} @@ -1144,548 +1144,548 @@ transRetailInfoType() { if(argument.profileType) { argument.profileTypeSpecified=true;} } } - public static void getCustomerProfileRequest(getCustomerProfileRequest argument) + public static void getCustomerProfileRequest(getCustomerProfileRequest argument) { - if(null != argument) + if(null != argument) { if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true;} if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;} } } - public static void getCustomerProfileResponse(getCustomerProfileResponse argument) + public static void getCustomerProfileResponse(getCustomerProfileResponse argument) { - if(null != argument) + if(null != argument) { customerProfileMaskedType(argument.profile); } } - public static void getCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument) + public static void getCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument) { - if(null != argument) + if(null != argument) { if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true;} if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;} } } - public static void getCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument) + public static void getCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileMaskedType(argument.paymentProfile); } } - public static void getCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument) + public static void getCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument) + public static void getCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument) { - if(null != argument) + if(null != argument) { if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} customerAddressExType(argument.address); } } - public static void updateCustomerProfileRequest(updateCustomerProfileRequest argument) + public static void updateCustomerProfileRequest(updateCustomerProfileRequest argument) { - if(null != argument) + if(null != argument) { customerProfileExType(argument.profile); } } - public static void updateCustomerProfileResponse(updateCustomerProfileResponse argument) + public static void updateCustomerProfileResponse(updateCustomerProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void updateCustomerPaymentProfileRequest(updateCustomerPaymentProfileRequest argument) + public static void UpdateCustomerPaymentProfileRequest(UpdateCustomerPaymentProfileRequest argument) { - if(null != argument) + if(null != argument) { customerPaymentProfileExType(argument.paymentProfile); if(argument.validationMode) { argument.validationModeSpecified=true;} } } - public static void updateCustomerPaymentProfileResponse(updateCustomerPaymentProfileResponse argument) + public static void UpdateCustomerPaymentProfileResponse(UpdateCustomerPaymentProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void updateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument) + public static void updateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument) { - if(null != argument) + if(null != argument) { customerAddressExType(argument.address); if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;} } } - public static void updateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument) + public static void updateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerProfileRequest(deleteCustomerProfileRequest argument) + public static void deleteCustomerProfileRequest(deleteCustomerProfileRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerProfileResponse(deleteCustomerProfileResponse argument) + public static void deleteCustomerProfileResponse(deleteCustomerProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument) + public static void deleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument) + public static void deleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument) + public static void deleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void deleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument) + public static void deleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void createCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument) + public static void createCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument) { - if(null != argument) + if(null != argument) { profileTransactionType(argument.transaction); } } - public static void createCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument) + public static void createCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument) { - if(null != argument) + if(null != argument) { transactionResponse(argument.transactionResponse); } } - public static void validateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument) + public static void validateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void validateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument) + public static void validateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void getCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument) + public static void getCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument) + public static void getCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void updateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument) + public static void updateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void updateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument) + public static void updateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void getTransactionDetailsRequest(getTransactionDetailsRequest argument) + public static void getTransactionDetailsRequest(getTransactionDetailsRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getTransactionDetailsResponse(getTransactionDetailsResponse argument) + public static void getTransactionDetailsResponse(getTransactionDetailsResponse argument) { - if(null != argument) + if(null != argument) { transactionDetailsType(argument.transaction); } } - public static void createTransactionRequest(createTransactionRequest argument) + public static void createTransactionRequest(createTransactionRequest argument) { - if(null != argument) + if(null != argument) { transactionRequestType(argument.transactionRequest); } } - public static void createTransactionResponse(createTransactionResponse argument) + public static void createTransactionResponse(createTransactionResponse argument) { - if(null != argument) + if(null != argument) { transactionResponse(argument.transactionResponse); createProfileResponse(argument.profileResponse); } } - public static void updateHeldTransactionRequest(updateHeldTransactionRequest argument) + public static void updateHeldTransactionRequest(updateHeldTransactionRequest argument) { - if(null != argument) + if(null != argument) { heldTransactionRequestType(argument.heldTransactionRequest); } } - public static void updateHeldTransactionResponse(updateHeldTransactionResponse argument) + public static void updateHeldTransactionResponse(updateHeldTransactionResponse argument) { - if(null != argument) + if(null != argument) { transactionResponse(argument.transactionResponse); } } - public static void getBatchStatisticsRequest(getBatchStatisticsRequest argument) + public static void getBatchStatisticsRequest(getBatchStatisticsRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getBatchStatisticsResponse(getBatchStatisticsResponse argument) + public static void getBatchStatisticsResponse(getBatchStatisticsResponse argument) { - if(null != argument) + if(null != argument) { batchDetailsType(argument.batch); } } - public static void getSettledBatchListRequest(getSettledBatchListRequest argument) + public static void getSettledBatchListRequest(getSettledBatchListRequest argument) { - if(null != argument) + if(null != argument) { if(argument.includeStatistics) { argument.includeStatisticsSpecified=true;} if(argument.firstSettlementDate) { argument.firstSettlementDateSpecified=true;} if(argument.lastSettlementDate) { argument.lastSettlementDateSpecified=true;} } } - public static void getSettledBatchListResponse(getSettledBatchListResponse argument) + public static void getSettledBatchListResponse(getSettledBatchListResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.batchList){ foreach( var value in argument.batchList) { batchDetailsType(value);} } + if(null != argument.batchList){ foreach( var value in argument.batchList) { batchDetailsType(value);} } } } - public static void getTransactionListRequest(getTransactionListRequest argument) + public static void getTransactionListRequest(getTransactionListRequest argument) { - if(null != argument) + if(null != argument) { TransactionListSorting(argument.sorting); Paging(argument.paging); } } - public static void getTransactionListResponse(getTransactionListResponse argument) + public static void getTransactionListResponse(getTransactionListResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} } + if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} } if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;} } } - public static void getHostedProfilePageRequest(getHostedProfilePageRequest argument) + public static void getHostedProfilePageRequest(getHostedProfilePageRequest argument) { - if(null != argument) + if(null != argument) { - if(null != argument.hostedProfileSettings){ foreach( var value in argument.hostedProfileSettings) { settingType(value);} } + if(null != argument.hostedProfileSettings){ foreach( var value in argument.hostedProfileSettings) { settingType(value);} } } } - public static void getHostedProfilePageResponse(getHostedProfilePageResponse argument) + public static void getHostedProfilePageResponse(getHostedProfilePageResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void getUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument) + public static void getUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument) { - if(null != argument) + if(null != argument) { if(argument.status) { argument.statusSpecified=true;} TransactionListSorting(argument.sorting); Paging(argument.paging); } } - public static void getHostedPaymentPageRequest(getHostedPaymentPageRequest argument) + public static void getHostedPaymentPageRequest(getHostedPaymentPageRequest argument) { - if(null != argument) + if(null != argument) { transactionRequestType(argument.transactionRequest); - if(null != argument.hostedPaymentSettings){ foreach( var value in argument.hostedPaymentSettings) { settingType(value);} } + if(null != argument.hostedPaymentSettings){ foreach( var value in argument.hostedPaymentSettings) { settingType(value);} } } } - public static void getHostedPaymentPageResponse(getHostedPaymentPageResponse argument) + public static void getHostedPaymentPageResponse(getHostedPaymentPageResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void getUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument) + public static void getUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} } + if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} } if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;} } } - public static void mobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument) + public static void mobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument) { - if(null != argument) + if(null != argument) { mobileDeviceType(argument.mobileDevice); } } - public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument) + public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void mobileDeviceLoginRequest(mobileDeviceLoginRequest argument) + public static void mobileDeviceLoginRequest(mobileDeviceLoginRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void mobileDeviceLoginResponse(mobileDeviceLoginResponse argument) + public static void mobileDeviceLoginResponse(mobileDeviceLoginResponse argument) { - if(null != argument) + if(null != argument) { merchantContactType(argument.merchantContact); - if(null != argument.userPermissions){ foreach( var value in argument.userPermissions) { permissionType(value);} } + if(null != argument.userPermissions){ foreach( var value in argument.userPermissions) { permissionType(value);} } transRetailInfoType(argument.merchantAccount); } } - public static void logoutRequest(logoutRequest argument) + public static void logoutRequest(logoutRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void logoutResponse(logoutResponse argument) + public static void logoutResponse(logoutResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void sendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument) + public static void sendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument) { - if(null != argument) + if(null != argument) { emailSettingsType(argument.emailSettings); } } - public static void sendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument) + public static void sendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument) + public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument) { - if(null != argument) + if(null != argument) { ARBGetSubscriptionListSorting(argument.sorting); Paging(argument.paging); } } - public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument) + public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument) { - if(null != argument) + if(null != argument) { if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;} - if(null != argument.subscriptionDetails){ foreach( var value in argument.subscriptionDetails) { SubscriptionDetail(value);} } + if(null != argument.subscriptionDetails){ foreach( var value in argument.subscriptionDetails) { SubscriptionDetail(value);} } } } - public static void EnumCollection(EnumCollection argument) + public static void EnumCollection(EnumCollection argument) { - if(null != argument) + if(null != argument) { customerProfileSummaryType(argument.customerProfileSummaryType); paymentSimpleType(argument.paymentSimpleType); typeEmailReceipt, } } - public static void getCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument) + public static void getCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument) { - if(null != argument) + if(null != argument) { CustomerPaymentProfileSorting(argument.sorting); Paging(argument.paging); } } - public static void getCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument) + public static void getCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileListItemType(value);} } + if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileListItemType(value);} } } } - public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument) + public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument) { - if(null != argument) + if(null != argument) { if(argument.includeTransactions) { argument.includeTransactionsSpecified=true;} } } - public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument) + public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument) { - if(null != argument) + if(null != argument) { ARBSubscriptionMaskedType(argument.subscription); } } - public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument) + public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument) { - if(null != argument) + if(null != argument) { TransactionListSorting(argument.sorting); Paging(argument.paging); } } - public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument) + public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getAUJobSummaryResponse(getAUJobSummaryResponse argument) + public static void getAUJobSummaryResponse(getAUJobSummaryResponse argument) { - if(null != argument) + if(null != argument) { - if(null != argument.auSummary){ foreach( var value in argument.auSummary) { auResponseType(value);} } + if(null != argument.auSummary){ foreach( var value in argument.auSummary) { auResponseType(value);} } } } - public static void getAUJobDetailsRequest(getAUJobDetailsRequest argument) + public static void getAUJobDetailsRequest(getAUJobDetailsRequest argument) { - if(null != argument) + if(null != argument) { if(argument.modifiedTypeFilter) { argument.modifiedTypeFilterSpecified=true;} Paging(argument.paging); } } - public static void getAUJobDetailsResponse(getAUJobDetailsResponse argument) + public static void getAUJobDetailsResponse(getAUJobDetailsResponse argument) { - if(null != argument) + if(null != argument) { if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;} [System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)] [System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)] - if(null != argument.auDetails){ foreach( var value in argument.auDetails) { auDetailsType(value);} } + if(null != argument.auDetails){ foreach( var value in argument.auDetails) { auDetailsType(value);} } } } - public static void getMerchantDetailsRequest(getMerchantDetailsRequest argument) + public static void getMerchantDetailsRequest(getMerchantDetailsRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getMerchantDetailsResponse(getMerchantDetailsResponse argument) + public static void getMerchantDetailsResponse(getMerchantDetailsResponse argument) { - if(null != argument) + if(null != argument) { if(argument.isTestMode) { argument.isTestModeSpecified=true;} - if(null != argument.processors){ foreach( var value in argument.processors) { processorType(value);} } + if(null != argument.processors){ foreach( var value in argument.processors) { processorType(value);} } [System.Xml.Serialization.XmlArrayItemAttribute("marketType")] System.Nullable< customerAddressType(argument.businessInformation); - if(null != argument.contactDetails){ foreach( var value in argument.contactDetails) { ContactDetailType(value);} } + if(null != argument.contactDetails){ foreach( var value in argument.contactDetails) { ContactDetailType(value);} } } } - public static void updateMerchantDetailsRequest(updateMerchantDetailsRequest argument) + public static void updateMerchantDetailsRequest(updateMerchantDetailsRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void updateMerchantDetailsResponse(updateMerchantDetailsResponse argument) + public static void updateMerchantDetailsResponse(updateMerchantDetailsResponse argument) { - if(null != argument) + if(null != argument) { } } - public static void getCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument) + public static void getCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument) { - if(null != argument) + if(null != argument) { } } - public static void getCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument) + public static void getCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument) { - if(null != argument) + if(null != argument) { opaqueDataType(argument.opaqueData); } } - } -// ReSharper restore InconsistentNaming -#pragma warning restore 1591 -#pragma warning restore 169 -} -/* -Requests -ARBCreateSubscriptionRequest -ARBUpdateSubscriptionRequest -createCustomerPaymentProfileRequest -createCustomerProfileRequest -createCustomerProfileTransactionRequest -createTransactionRequest -getSettledBatchListRequest -mobileDeviceRegistrationRequest -updateCustomerPaymentProfileRequest -XXDoNotUseDummyRequest + } +// ReSharper restore InconsistentNaming +#pragma warning restore 1591 +#pragma warning restore 169 +} +/* +Requests +ARBCreateSubscriptionRequest +ARBUpdateSubscriptionRequest +createCustomerPaymentProfileRequest +createCustomerProfileRequest +createCustomerProfileTransactionRequest +createTransactionRequest +getSettledBatchListRequest +mobileDeviceRegistrationRequest +UpdateCustomerPaymentProfileRequest +XXDoNotUseDummyRequest ECHO is off. - */ -/* -Objects + */ +/* +Objects ECHO is off. -ARBSubscriptionType -bankAccountMaskedType -bankAccountType -batchDetailsType -batchStatisticType -customerDataType -customerPaymentProfileBaseType -customerPaymentProfileExType -customerPaymentProfileMaskedType -customerPaymentProfileType -customerProfileMaskedType -customerProfileType -customerType -lineItemType -mobileDeviceType -paymentMaskedType -paymentScheduleType -paymentSimpleType -paymentType -profileTransactionType -profileTransAmountType -profileTransAuthCaptureType -profileTransAuthOnlyType -profileTransCaptureOnlyType -profileTransOrderType -profileTransPriorAuthCaptureType -profileTransRefundType -transactionDetailsType -transactionRequestType -transactionSummaryType +ARBSubscriptionType +bankAccountMaskedType +bankAccountType +batchDetailsType +batchStatisticType +customerDataType +customerPaymentProfileBaseType +customerPaymentProfileExType +customerPaymentProfileMaskedType +customerPaymentProfileType +customerProfileMaskedType +customerProfileType +customerType +lineItemType +mobileDeviceType +paymentMaskedType +paymentScheduleType +paymentSimpleType +paymentType +profileTransactionType +profileTransAmountType +profileTransAuthCaptureType +profileTransAuthOnlyType +profileTransCaptureOnlyType +profileTransOrderType +profileTransPriorAuthCaptureType +profileTransRefundType +transactionDetailsType +transactionRequestType +transactionSummaryType ECHO is off. - */ + */ diff --git a/Authorize.NET/Api/Controllers/ARBCancelSubscriptionController.cs b/Authorize.NET/Api/Controllers/ARBCancelSubscriptionController.cs index d58f0ef7..26176b3c 100644 --- a/Authorize.NET/Api/Controllers/ARBCancelSubscriptionController.cs +++ b/Authorize.NET/Api/Controllers/ARBCancelSubscriptionController.cs @@ -1,24 +1,27 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class ARBCancelSubscriptionController : ApiOperationBase { + public class ARBCancelSubscriptionController : ApiOperationBase + { + + public ARBCancelSubscriptionController(ARBCancelSubscriptionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public ARBCancelSubscriptionController(ARBCancelSubscriptionRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/ARBCreateSubscriptionController.cs b/Authorize.NET/Api/Controllers/ARBCreateSubscriptionController.cs index 91d69f48..1dd9dbd5 100644 --- a/Authorize.NET/Api/Controllers/ARBCreateSubscriptionController.cs +++ b/Authorize.NET/Api/Controllers/ARBCreateSubscriptionController.cs @@ -1,30 +1,34 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class ARBCreateSubscriptionController : ApiOperationBase { + public class ARBCreateSubscriptionController : ApiOperationBase + { + + public ARBCreateSubscriptionController(ARBCreateSubscriptionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public ARBCreateSubscriptionController(ARBCreateSubscriptionRequest apiRequest) : base(apiRequest) { - } + //validate required fields + if (null == request.subscription) throw new ArgumentException("subscription cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - if (null == request.subscription) throw new ArgumentException("subscription cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.ARBCreateSubscriptionRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.ARBCreateSubscriptionRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/ARBGetSubscriptionController.cs b/Authorize.NET/Api/Controllers/ARBGetSubscriptionController.cs index 1a33de87..338b4d27 100644 --- a/Authorize.NET/Api/Controllers/ARBGetSubscriptionController.cs +++ b/Authorize.NET/Api/Controllers/ARBGetSubscriptionController.cs @@ -1,31 +1,35 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class ARBGetSubscriptionController : ApiOperationBase { - - public ARBGetSubscriptionController(ARBGetSubscriptionRequest apiRequest) : base(apiRequest) { - } - - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - if ( request.subscriptionId == null) throw new ArgumentException( "Subscription ID cannot be null"); - - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.ARBGetSubscriptionRequest(request); - } - } + public class ARBGetSubscriptionController : ApiOperationBase + { + + public ARBGetSubscriptionController(ARBGetSubscriptionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); + + //validate required fields + if (request.subscriptionId == null) throw new ArgumentException("Subscription ID cannot be null"); + + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.ARBGetSubscriptionRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/ARBGetSubscriptionListController.cs b/Authorize.NET/Api/Controllers/ARBGetSubscriptionListController.cs index c65daafc..27f9f065 100644 --- a/Authorize.NET/Api/Controllers/ARBGetSubscriptionListController.cs +++ b/Authorize.NET/Api/Controllers/ARBGetSubscriptionListController.cs @@ -1,18 +1,20 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class ARBGetSubscriptionListController : ApiOperationBase { + public class ARBGetSubscriptionListController : ApiOperationBase + { - public ARBGetSubscriptionListController(ARBGetSubscriptionListRequest apiRequest) : base(apiRequest) { - } + public ARBGetSubscriptionListController(ARBGetSubscriptionListRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); + override protected void ValidateRequest() + { + var request = GetApiRequest(); } - } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/ARBGetSubscriptionStatusController.cs b/Authorize.NET/Api/Controllers/ARBGetSubscriptionStatusController.cs index 8669d8f9..953058e1 100644 --- a/Authorize.NET/Api/Controllers/ARBGetSubscriptionStatusController.cs +++ b/Authorize.NET/Api/Controllers/ARBGetSubscriptionStatusController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class ARBGetSubscriptionStatusController : ApiOperationBase { + public class ARBGetSubscriptionStatusController : ApiOperationBase + { + + public ARBGetSubscriptionStatusController(ARBGetSubscriptionStatusRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public ARBGetSubscriptionStatusController(ARBGetSubscriptionStatusRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs b/Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs index 3f19cf41..c11007b7 100644 --- a/Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs +++ b/Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class ARBUpdateSubscriptionController : ApiOperationBase { + public class ARBUpdateSubscriptionController : ApiOperationBase + { + + public ARBUpdateSubscriptionController(ARBUpdateSubscriptionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public ARBUpdateSubscriptionController(ARBUpdateSubscriptionRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.ARBUpdateSubscriptionRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.ARBUpdateSubscriptionRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/Bases/ApiOperationBase.cs b/Authorize.NET/Api/Controllers/Bases/ApiOperationBase.cs index 59a1dc7d..7405717a 100644 --- a/Authorize.NET/Api/Controllers/Bases/ApiOperationBase.cs +++ b/Authorize.NET/Api/Controllers/Bases/ApiOperationBase.cs @@ -1,224 +1,244 @@ +using System.Collections.Generic; +using System.Globalization; +using System; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Util; + namespace AuthorizeNet.Api.Controllers.Bases { - using System.Collections.Generic; - using System.Globalization; - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Util; - - /** + /** * @author ramittal * */ #pragma warning disable 1591 - public abstract class ApiOperationBase : IApiOperation - where TQ : ANetApiRequest - where TS : ANetApiResponse - { -// ReSharper disable StaticFieldInGenericType - protected static Log Logger = LogFactory.getLog(typeof(ApiOperationBase)); -// ReSharper restore StaticFieldInGenericType - - public static AuthorizeNet.Environment RunEnvironment { get; set; } - public static merchantAuthenticationType MerchantAuthentication { get; set; } - - private TQ _apiRequest; - private TS _apiResponse; - - readonly Type _requestClass; - readonly Type _responseClass; - - private ANetApiResponse _errorResponse; - - protected ApiOperationBase(TQ apiRequest) - { - if ( null == apiRequest) - { - Logger.error("null apiRequest"); - throw new ArgumentNullException( "apiRequest", "Input request cannot be null"); - } - if ( null != GetApiResponse()) - { - Logger.error(GetApiResponse()); - throw new InvalidOperationException( "Response should be null"); - } - - _requestClass = typeof(TQ);//Type) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; - _responseClass = typeof(TS);// GetResponseType(); - SetApiRequest(apiRequest); - - Logger.debug(string.Format("Creating instance for request:'{0}' and response:'{1}'", _requestClass, _responseClass)); - //Logger.debug(string.Format("Request:'{0}'", apiRequest)); - //Logger.debug(string.Format("Request(Ctor):'{0}'", XmlUtility.GetXml(apiRequest))); - Validate(); - } - - protected TQ GetApiRequest() { - return _apiRequest; - } - - protected void SetApiRequest(TQ apiRequest) { - _apiRequest = apiRequest; - } - - public TS GetApiResponse() { - return _apiResponse; - } - - private void SetApiResponse(TS apiResponse) { - _apiResponse = apiResponse; - } - - public ANetApiResponse GetErrorResponse() { - return _errorResponse; - } - - private void SetErrorResponse(ANetApiResponse errorResponse) { - _errorResponse = errorResponse; - } - - public TS ExecuteWithApiResponse(AuthorizeNet.Environment environment = null) - { - Execute(environment); - return GetApiResponse(); - } - - const String NullEnvironmentErrorMessage = "Environment not set. Set environment using setter or use overloaded method to pass appropriate environment"; - - public void Execute(AuthorizeNet.Environment environment = null) - { - BeforeExecute(); - - Logger.debug(string.Format(CultureInfo.InvariantCulture, "Executing Request:'{0}'", XmlUtility.GetXml(GetApiRequest()))); - - if (null == environment) { environment = ApiOperationBase.RunEnvironment; } - if (null == environment) throw new ArgumentException(NullEnvironmentErrorMessage); - - var httpApiResponse = HttpUtility.PostData(environment, GetApiRequest()); - - if (null != httpApiResponse) - { - Logger.debug(string.Format(CultureInfo.InvariantCulture, "Received Response:'{0}' for request:'{1}'", httpApiResponse, GetApiRequest())); - if (httpApiResponse.GetType() == _responseClass) - { - var response = (TS) httpApiResponse; - SetApiResponse( response); - Logger.debug(string.Format(CultureInfo.InvariantCulture, "Setting response: '{0}'", response)); - } - else if (httpApiResponse.GetType() == typeof(AuthorizeNet.Api.Controllers.Bases.ErrorResponse)) - { - SetErrorResponse(httpApiResponse); - Logger.debug(string.Format(CultureInfo.InvariantCulture, "Received ErrorResponse:'{0}'", httpApiResponse)); - } else { - SetErrorResponse(httpApiResponse); - Logger.error(string.Format(CultureInfo.InvariantCulture, "Invalid response:'{0}'", httpApiResponse)); - } - Logger.debug(string.Format("Response obtained: {0}", GetApiResponse())); - SetResultStatus(); - - } else { - Logger.debug(string.Format(CultureInfo.InvariantCulture, "Got a 'null' Response for request:'{0}'\n", GetApiRequest())); - } - AfterExecute(); - } - - public messageTypeEnum GetResultCode() { - return ResultCode; - } - - private void SetResultStatus() { - Results = new List(); - var messageTypes = GetResultMessage(); - - if (null != messageTypes) { - ResultCode = messageTypes.resultCode; - } - - if (null != messageTypes) { - foreach ( var amessage in messageTypes.message) { - Results.Add(string.Format(CultureInfo.InvariantCulture, "{0}:{1}", amessage.code, amessage.text)); - } - } - } - - public List GetResults() { - return Results; - } - - private messagesType GetResultMessage() { - messagesType messageTypes = null; - - if ( null != GetErrorResponse()) - { - messageTypes = GetErrorResponse().messages; - } else if ( null != GetApiResponse()) { - messageTypes = GetApiResponse().messages; - } - - return messageTypes; - } - - protected List Results = null; - protected messageTypeEnum ResultCode = messageTypeEnum.Ok; - - protected virtual void BeforeExecute() {} - protected virtual void AfterExecute() { } - - protected abstract void ValidateRequest(); - - private void Validate() { - - ANetApiRequest request = GetApiRequest(); - - //validate not nulls - ValidateAndSetMerchantAuthentication(); - - //set the client Id - SetClientId(); - - //validate nulls - var merchantAuthenticationType = request.merchantAuthentication; - //if ( null != ) throw new IllegalArgumentException(" needs to be null"); - - //TODO - /* + public abstract class ApiOperationBase : IApiOperation + where TQ : ANetApiRequest + where TS : ANetApiResponse + { + // ReSharper disable StaticFieldInGenericType + protected static Log Logger = LogFactory.GetLog(typeof(ApiOperationBase)); + // ReSharper restore StaticFieldInGenericType + + public static Environment RunEnvironment { get; set; } + public static merchantAuthenticationType MerchantAuthentication { get; set; } + + private TQ _apiRequest; + private TS _apiResponse; + + readonly Type _requestClass; + readonly Type _responseClass; + + private ANetApiResponse _errorResponse; + + protected ApiOperationBase(TQ apiRequest) + { + if (null == apiRequest) + { + Logger.Error("null apiRequest"); + throw new ArgumentNullException("apiRequest", "Input request cannot be null"); + } + if (null != GetApiResponse()) + { + Logger.Error(GetApiResponse()); + throw new InvalidOperationException("Response should be null"); + } + + _requestClass = typeof(TQ);//Type) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; + _responseClass = typeof(TS);// GetResponseType(); + SetApiRequest(apiRequest); + + Logger.Debug(string.Format("Creating instance for request:'{0}' and response:'{1}'", _requestClass, _responseClass)); + //Logger.debug(string.Format("Request:'{0}'", apiRequest)); + //Logger.debug(string.Format("Request(Ctor):'{0}'", XmlUtility.GetXml(apiRequest))); + Validate(); + } + + protected TQ GetApiRequest() + { + return _apiRequest; + } + + protected void SetApiRequest(TQ apiRequest) + { + _apiRequest = apiRequest; + } + + public TS GetApiResponse() + { + return _apiResponse; + } + + private void SetApiResponse(TS apiResponse) + { + _apiResponse = apiResponse; + } + + public ANetApiResponse GetErrorResponse() + { + return _errorResponse; + } + + private void SetErrorResponse(ANetApiResponse errorResponse) + { + _errorResponse = errorResponse; + } + + public TS ExecuteWithApiResponse(Environment environment = null) + { + Execute(environment); + return GetApiResponse(); + } + + const String NullEnvironmentErrorMessage = "Environment not set. Set environment using setter or use overloaded method to pass appropriate environment"; + + public void Execute(Environment environment = null) + { + BeforeExecute(); + + Logger.Debug(string.Format(CultureInfo.InvariantCulture, "Executing Request:'{0}'", XmlUtility.GetXml(GetApiRequest()))); + + if (null == environment) { environment = ApiOperationBase.RunEnvironment; } + if (null == environment) throw new ArgumentException(NullEnvironmentErrorMessage); + + var httpApiResponse = HttpUtility.PostData(environment, GetApiRequest()); + + if (null != httpApiResponse) + { + Logger.Debug(string.Format(CultureInfo.InvariantCulture, "Received Response:'{0}' for request:'{1}'", httpApiResponse, GetApiRequest())); + if (httpApiResponse.GetType() == _responseClass) + { + var response = (TS)httpApiResponse; + SetApiResponse(response); + Logger.Debug(string.Format(CultureInfo.InvariantCulture, "Setting response: '{0}'", response)); + } + else if (httpApiResponse.GetType() == typeof(ErrorResponse)) + { + SetErrorResponse(httpApiResponse); + Logger.Debug(string.Format(CultureInfo.InvariantCulture, "Received ErrorResponse:'{0}'", httpApiResponse)); + } + else + { + SetErrorResponse(httpApiResponse); + Logger.Error(string.Format(CultureInfo.InvariantCulture, "Invalid response:'{0}'", httpApiResponse)); + } + Logger.Debug(string.Format("Response obtained: {0}", GetApiResponse())); + SetResultStatus(); + + } + else + { + Logger.Debug(string.Format(CultureInfo.InvariantCulture, "Got a 'null' Response for request:'{0}'\n", GetApiRequest())); + } + AfterExecute(); + } + + public messageTypeEnum GetResultCode() + { + return ResultCode; + } + + private void SetResultStatus() + { + Results = new List(); + var messageTypes = GetResultMessage(); + + if (null != messageTypes) + { + ResultCode = messageTypes.resultCode; + } + + if (null != messageTypes) + { + foreach (var amessage in messageTypes.message) + { + Results.Add(string.Format(CultureInfo.InvariantCulture, "{0}:{1}", amessage.code, amessage.text)); + } + } + } + + public List GetResults() + { + return Results; + } + + private messagesType GetResultMessage() + { + messagesType messageTypes = null; + + if (null != GetErrorResponse()) + { + messageTypes = GetErrorResponse().messages; + } + else if (null != GetApiResponse()) + { + messageTypes = GetApiResponse().messages; + } + + return messageTypes; + } + + protected List Results = null; + protected messageTypeEnum ResultCode = messageTypeEnum.Ok; + + protected virtual void BeforeExecute() { } + protected virtual void AfterExecute() { } + + protected abstract void ValidateRequest(); + + private void Validate() + { + + ANetApiRequest request = GetApiRequest(); + + //validate not nulls + ValidateAndSetMerchantAuthentication(); + + //set the client Id + SetClientId(); + + //validate nulls + var merchantAuthenticationType = request.merchantAuthentication; + //if ( null != ) throw new IllegalArgumentException(" needs to be null"); + + //TODO + /* if ( null != merchantAuthenticationType.Item.GetType(). sessionToken) throw new IllegalArgumentException("SessionToken needs to be null"); if ( null != merchantAuthenticationType.getPass_word()) throw new IllegalArgumentException("Pass_word needs to be null"); if ( null != merchantAuthenticationType.getMobileDeviceId()) throw new IllegalArgumentException("MobileDeviceId needs to be null"); - - + + var impersonationAuthenticationType = merchantAuthenticationType.impersonationAuthentication; if ( null != impersonationAuthenticationType) throw new IllegalArgumentException("ImpersonationAuthenticationType needs to be null"); */ - // impersonationAuthenticationType.setPartnerLoginId(CnpApiLoginIdKey); - // impersonationAuthenticationType.setPartnerTransactionKey(CnpTransactionKey); - // merchantAuthenticationType.setImpersonationAuthentication(impersonationAuthenticationType); - - ValidateRequest(); - } - - private void ValidateAndSetMerchantAuthentication() - { - ANetApiRequest request = GetApiRequest(); - - if (null == request.merchantAuthentication) - { - if (null != ApiOperationBase.MerchantAuthentication) - { - request.merchantAuthentication = ApiOperationBase.MerchantAuthentication; - } - else - { - throw new ArgumentException("MerchantAuthentication cannot be null"); - } - } - } - - private void SetClientId() - { - ANetApiRequest request = GetApiRequest(); - request.clientId = "sdk-dotnet-" + Constants.SDKVersion; - } - } + // impersonationAuthenticationType.setPartnerLoginId(CnpApiLoginIdKey); + // impersonationAuthenticationType.setPartnerTransactionKey(CnpTransactionKey); + // merchantAuthenticationType.setImpersonationAuthentication(impersonationAuthenticationType); + + ValidateRequest(); + } + + private void ValidateAndSetMerchantAuthentication() + { + ANetApiRequest request = GetApiRequest(); + + if (null == request.merchantAuthentication) + { + if (null != ApiOperationBase.MerchantAuthentication) + { + request.merchantAuthentication = ApiOperationBase.MerchantAuthentication; + } + else + { + throw new ArgumentException("MerchantAuthentication cannot be null"); + } + } + } + + private void SetClientId() + { + ANetApiRequest request = GetApiRequest(); + request.clientId = "sdk-dotnet-" + Constants.SDKVersion; + } + } #pragma warning restore 1591 } diff --git a/Authorize.NET/Api/Controllers/Bases/ErrorResponse.cs b/Authorize.NET/Api/Controllers/Bases/ErrorResponse.cs index 2954208d..1c7b3cb0 100644 --- a/Authorize.NET/Api/Controllers/Bases/ErrorResponse.cs +++ b/Authorize.NET/Api/Controllers/Bases/ErrorResponse.cs @@ -1,39 +1,43 @@ +using System.Text; + +using AuthorizeNet.Api.Contracts.V1; + namespace AuthorizeNet.Api.Controllers.Bases { - using System.Text; - using AuthorizeNet.Api.Contracts.V1; - - //@XmlRootElement(name = "ErrorResponse") - /** + //@XmlRootElement(name = "ErrorResponse") + /** * Since JAXB does not generate the class for this element, custom coding it * @author ramittal * */ - abstract class ErrorResponse : ANetApiResponse { + abstract class ErrorResponse : ANetApiResponse + { + + public new string ToString() + { + var builder = new StringBuilder(); + builder.Append("ErrorResponse: "); + builder.Append(base.ToString()); + builder.Append(", Id: ").Append(refId); + builder.Append(", SessionToken: ").Append(sessionToken); + var messagesType = messages; + builder.Append(", MessagesType: "); + if (null != messagesType) + { + builder.Append(", ResultCode:").Append(messagesType.resultCode); + var resultMessages = messagesType.message; + if (null != resultMessages) + { + foreach (var message in resultMessages) + { + builder.Append(", Message-> "); + builder.Append(", Code: ").Append(message.code); + builder.Append(", Text: ").Append(message.text); + } + } + } - public new string ToString() { - var builder = new StringBuilder(); - builder.Append("ErrorResponse: "); - builder.Append(base.ToString()); - builder.Append(", Id: ").Append( refId); - builder.Append(", SessionToken: ").Append(sessionToken); - var messagesType = messages; - builder.Append(", MessagesType: "); - if ( null != messagesType) - { - builder.Append(", ResultCode:").Append(messagesType.resultCode); - var resultMessages = messagesType.message; - if ( null != resultMessages) { - foreach (var message in resultMessages) - { - builder.Append(", Message-> "); - builder.Append(", Code: ").Append(message.code); - builder.Append(", Text: ").Append(message.text); - } - } - } - - return builder.ToString(); - } - } + return builder.ToString(); + } + } } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/Bases/IApiOperation.cs b/Authorize.NET/Api/Controllers/Bases/IApiOperation.cs index e3ffcf39..ae37702c 100644 --- a/Authorize.NET/Api/Controllers/Bases/IApiOperation.cs +++ b/Authorize.NET/Api/Controllers/Bases/IApiOperation.cs @@ -1,22 +1,22 @@ +using System.Collections.Generic; + namespace AuthorizeNet.Api.Controllers.Bases { - using System.Collections.Generic; - - /** + /** * @author ramittal * */ #pragma warning disable 1591 - public interface IApiOperation - where TQ : AuthorizeNet.Api.Contracts.V1.ANetApiRequest - where TS : AuthorizeNet.Api.Contracts.V1.ANetApiResponse + public interface IApiOperation + where TQ : Contracts.V1.ANetApiRequest + where TS : Contracts.V1.ANetApiResponse { - TS GetApiResponse(); - AuthorizeNet.Api.Contracts.V1.ANetApiResponse GetErrorResponse(); - TS ExecuteWithApiResponse(AuthorizeNet.Environment environment = null); - void Execute(AuthorizeNet.Environment environment = null); - AuthorizeNet.Api.Contracts.V1.messageTypeEnum GetResultCode(); - List GetResults(); - } + TS GetApiResponse(); + Contracts.V1.ANetApiResponse GetErrorResponse(); + TS ExecuteWithApiResponse(Environment environment = null); + void Execute(Environment environment = null); + Contracts.V1.messageTypeEnum GetResultCode(); + List GetResults(); + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/authenticateTestController.cs b/Authorize.NET/Api/Controllers/authenticateTestController.cs index d4135508..29cef9dc 100644 --- a/Authorize.NET/Api/Controllers/authenticateTestController.cs +++ b/Authorize.NET/Api/Controllers/authenticateTestController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class authenticateTestController : ApiOperationBase { + public class AuthenticateTestController : ApiOperationBase + { + + public AuthenticateTestController(authenticateTestRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public authenticateTestController(authenticateTestRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.authenticateTestRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.AuthenticateTestRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs b/Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs index 3227d531..36c46a74 100644 --- a/Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs +++ b/Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createCustomerPaymentProfileController : ApiOperationBase { + public class CreateCustomerPaymentProfileController : ApiOperationBase + { + + public CreateCustomerPaymentProfileController(createCustomerPaymentProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createCustomerPaymentProfileController(createCustomerPaymentProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.createCustomerPaymentProfileRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.CreateCustomerPaymentProfileRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createCustomerProfileController.cs b/Authorize.NET/Api/Controllers/createCustomerProfileController.cs index 0e4c2ec7..3e05324a 100644 --- a/Authorize.NET/Api/Controllers/createCustomerProfileController.cs +++ b/Authorize.NET/Api/Controllers/createCustomerProfileController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createCustomerProfileController : ApiOperationBase { + public class CreateCustomerProfileController : ApiOperationBase + { + + public CreateCustomerProfileController(createCustomerProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createCustomerProfileController(createCustomerProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.createCustomerProfileRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.CreateCustomerProfileRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createCustomerProfileFromTransactionController.cs b/Authorize.NET/Api/Controllers/createCustomerProfileFromTransactionController.cs index 47d0d8b5..7fe23aba 100644 --- a/Authorize.NET/Api/Controllers/createCustomerProfileFromTransactionController.cs +++ b/Authorize.NET/Api/Controllers/createCustomerProfileFromTransactionController.cs @@ -1,26 +1,28 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createCustomerProfileFromTransactionController : ApiOperationBase - { + public class CreateCustomerProfileFromTransactionController : ApiOperationBase + { + + public CreateCustomerProfileFromTransactionController(createCustomerProfileFromTransactionRequest apiRequest) + : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createCustomerProfileFromTransactionController(createCustomerProfileFromTransactionRequest apiRequest) - : base(apiRequest) - { - } + //validate required fields + if (null == request.transId) throw new ArgumentException("transactionId cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - if (null == request.transId) throw new ArgumentException("transactionId cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createCustomerProfileTransactionController.cs b/Authorize.NET/Api/Controllers/createCustomerProfileTransactionController.cs index dafb68d4..3a2e2a2f 100644 --- a/Authorize.NET/Api/Controllers/createCustomerProfileTransactionController.cs +++ b/Authorize.NET/Api/Controllers/createCustomerProfileTransactionController.cs @@ -1,23 +1,27 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createCustomerProfileTransactionController : ApiOperationBase { + public class CreateCustomerProfileTransactionController : ApiOperationBase + { + + public CreateCustomerProfileTransactionController(createCustomerProfileTransactionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createCustomerProfileTransactionController(createCustomerProfileTransactionRequest apiRequest) : base(apiRequest) { - } + //validate required fields + if (null == request.transaction) throw new ArgumentException("transaction cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - if (null == request.transaction) throw new ArgumentException("transaction cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createCustomerShippingAddressController.cs b/Authorize.NET/Api/Controllers/createCustomerShippingAddressController.cs index 02f9ac81..11d6b11b 100644 --- a/Authorize.NET/Api/Controllers/createCustomerShippingAddressController.cs +++ b/Authorize.NET/Api/Controllers/createCustomerShippingAddressController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createCustomerShippingAddressController : ApiOperationBase { + public class CreateCustomerShippingAddressController : ApiOperationBase + { + + public CreateCustomerShippingAddressController(createCustomerShippingAddressRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createCustomerShippingAddressController(createCustomerShippingAddressRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createFingerPrintController.cs b/Authorize.NET/Api/Controllers/createFingerPrintController.cs index 459fdb02..d6d0a950 100644 --- a/Authorize.NET/Api/Controllers/createFingerPrintController.cs +++ b/Authorize.NET/Api/Controllers/createFingerPrintController.cs @@ -1,30 +1,34 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createFingerPrintController : ApiOperationBase { + public class CreateFingerPrintController : ApiOperationBase + { + + public CreateFingerPrintController(createFingerPrintRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createFingerPrintController(createFingerPrintRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + if (null == request.supportInformation) throw new ArgumentException("supportInformation cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - if (null == request.supportInformation) throw new ArgumentException("supportInformation cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.createFingerPrintRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.createFingerPrintRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createProfileController.cs b/Authorize.NET/Api/Controllers/createProfileController.cs index 27aeab88..6962d433 100644 --- a/Authorize.NET/Api/Controllers/createProfileController.cs +++ b/Authorize.NET/Api/Controllers/createProfileController.cs @@ -1,35 +1,33 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; - #pragma warning disable 1591 - public class createProfileController - //: ApiOperationBase - { + public class CreateProfileController + //: ApiOperationBase + { + + public CreateProfileController(customerProfilePaymentType apiRequest)// : base(apiRequest) + { + } + + //override + protected void ValidateRequest() + { + //var request = GetApiRequest(); - public createProfileController(customerProfilePaymentType apiRequest)// : base(apiRequest) - { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - //override - protected void ValidateRequest() { - //var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - //protected override void BeforeExecute() - protected void BeforeExecute() - { - //var request = GetApiRequest(); - //RequestFactoryWithSpecified.createProfileType(request); - } - } + //protected override void BeforeExecute() + protected void BeforeExecute() + { + //var request = GetApiRequest(); + //RequestFactoryWithSpecified.createProfileType(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/createTransactionController.cs b/Authorize.NET/Api/Controllers/createTransactionController.cs index b4ec4478..e92f7581 100644 --- a/Authorize.NET/Api/Controllers/createTransactionController.cs +++ b/Authorize.NET/Api/Controllers/createTransactionController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class createTransactionController : ApiOperationBase { + public class CreateTransactionController : ApiOperationBase + { + + public CreateTransactionController(createTransactionRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public createTransactionController(createTransactionRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.createTransactionRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.CreateTransactionRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/decryptPaymentDataController.cs b/Authorize.NET/Api/Controllers/decryptPaymentDataController.cs index 69abe743..33c0c53b 100644 --- a/Authorize.NET/Api/Controllers/decryptPaymentDataController.cs +++ b/Authorize.NET/Api/Controllers/decryptPaymentDataController.cs @@ -1,30 +1,33 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class decryptPaymentDataController : ApiOperationBase { + public class DecryptPaymentDataController : ApiOperationBase + { + + public DecryptPaymentDataController(decryptPaymentDataRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public decryptPaymentDataController(decryptPaymentDataRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.decryptPaymentDataRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.DecryptPaymentDataRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/deleteCustomerPaymentProfileController.cs b/Authorize.NET/Api/Controllers/deleteCustomerPaymentProfileController.cs index ef9d66e7..80a3b035 100644 --- a/Authorize.NET/Api/Controllers/deleteCustomerPaymentProfileController.cs +++ b/Authorize.NET/Api/Controllers/deleteCustomerPaymentProfileController.cs @@ -1,24 +1,27 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class deleteCustomerPaymentProfileController : ApiOperationBase { + public class DeleteCustomerPaymentProfileController : ApiOperationBase + { + + public DeleteCustomerPaymentProfileController(deleteCustomerPaymentProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public deleteCustomerPaymentProfileController(deleteCustomerPaymentProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/deleteCustomerProfileController.cs b/Authorize.NET/Api/Controllers/deleteCustomerProfileController.cs index 011cda7e..3614e6ee 100644 --- a/Authorize.NET/Api/Controllers/deleteCustomerProfileController.cs +++ b/Authorize.NET/Api/Controllers/deleteCustomerProfileController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class deleteCustomerProfileController : ApiOperationBase { + public class DeleteCustomerProfileController : ApiOperationBase + { + + public DeleteCustomerProfileController(deleteCustomerProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public deleteCustomerProfileController(deleteCustomerProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/deleteCustomerShippingAddressController.cs b/Authorize.NET/Api/Controllers/deleteCustomerShippingAddressController.cs index 37c2f6c3..65af9699 100644 --- a/Authorize.NET/Api/Controllers/deleteCustomerShippingAddressController.cs +++ b/Authorize.NET/Api/Controllers/deleteCustomerShippingAddressController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class deleteCustomerShippingAddressController : ApiOperationBase { + public class DeleteCustomerShippingAddressController : ApiOperationBase + { + + public DeleteCustomerShippingAddressController(deleteCustomerShippingAddressRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public deleteCustomerShippingAddressController(deleteCustomerShippingAddressRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getAUJobDetailsController.cs b/Authorize.NET/Api/Controllers/getAUJobDetailsController.cs index 19703b54..3aa4b2ee 100644 --- a/Authorize.NET/Api/Controllers/getAUJobDetailsController.cs +++ b/Authorize.NET/Api/Controllers/getAUJobDetailsController.cs @@ -1,29 +1,31 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getAUJobDetailsController : ApiOperationBase { + public class GetAUJobDetailsController : ApiOperationBase + { + + public GetAUJobDetailsController(getAUJobDetailsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getAUJobDetailsController(getAUJobDetailsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getAUJobSummaryController.cs b/Authorize.NET/Api/Controllers/getAUJobSummaryController.cs index e1302c02..61687adf 100644 --- a/Authorize.NET/Api/Controllers/getAUJobSummaryController.cs +++ b/Authorize.NET/Api/Controllers/getAUJobSummaryController.cs @@ -1,29 +1,31 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getAUJobSummaryController : ApiOperationBase { + public class GetAUJobSummaryController : ApiOperationBase + { + + public GetAUJobSummaryController(getAUJobSummaryRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getAUJobSummaryController(getAUJobSummaryRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getBatchStatisticsController.cs b/Authorize.NET/Api/Controllers/getBatchStatisticsController.cs index a62d3466..27cbcaff 100644 --- a/Authorize.NET/Api/Controllers/getBatchStatisticsController.cs +++ b/Authorize.NET/Api/Controllers/getBatchStatisticsController.cs @@ -1,24 +1,27 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class getBatchStatisticsController : ApiOperationBase { + public class GetBatchStatisticsController : ApiOperationBase + { + + public GetBatchStatisticsController(getBatchStatisticsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getBatchStatisticsController(getBatchStatisticsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileController.cs b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileController.cs index 3ac2b746..c50f2cb7 100644 --- a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerPaymentProfileController : ApiOperationBase { + public class GetCustomerPaymentProfileController : ApiOperationBase + { + + public GetCustomerPaymentProfileController(getCustomerPaymentProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getCustomerPaymentProfileController(getCustomerPaymentProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileListController.cs b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileListController.cs index ff1a2222..eecb6662 100644 --- a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileListController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileListController.cs @@ -1,32 +1,36 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerPaymentProfileListController : ApiOperationBase { - - public getCustomerPaymentProfileListController(getCustomerPaymentProfileListRequest apiRequest) : base(apiRequest) { - } - - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - if (request.searchType < 0) throw new ArgumentException("SearchType cannot be null"); - if (request.month == null) throw new ArgumentException("month cannot be null"); - - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.getCustomerPaymentProfileListRequest(request); - } - } + public class GetCustomerPaymentProfileListController : ApiOperationBase + { + + public GetCustomerPaymentProfileListController(getCustomerPaymentProfileListRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); + + //validate required fields + if (request.searchType < 0) throw new ArgumentException("SearchType cannot be null"); + if (request.month == null) throw new ArgumentException("month cannot be null"); + + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.GetCustomerPaymentProfileListRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileNonceController.cs b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileNonceController.cs index 735a7253..41e97bc3 100644 --- a/Authorize.NET/Api/Controllers/getCustomerPaymentProfileNonceController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerPaymentProfileNonceController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerPaymentProfileNonceController : ApiOperationBase { + public class GetCustomerPaymentProfileNonceController : ApiOperationBase + { - public getCustomerPaymentProfileNonceController(getCustomerPaymentProfileNonceRequest apiRequest) : base(apiRequest) { - } + public GetCustomerPaymentProfileNonceController(getCustomerPaymentProfileNonceRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); + override protected void ValidateRequest() + { + var request = GetApiRequest(); - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - // RequestFactoryWithSpecified.getCustomerPaymentProfileNonceType(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + // RequestFactoryWithSpecified.getCustomerPaymentProfileNonceType(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerProfileController.cs b/Authorize.NET/Api/Controllers/getCustomerProfileController.cs index 515423fa..0440766d 100644 --- a/Authorize.NET/Api/Controllers/getCustomerProfileController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerProfileController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerProfileController : ApiOperationBase { + public class GetCustomerProfileController : ApiOperationBase + { + + public GetCustomerProfileController(getCustomerProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getCustomerProfileController(getCustomerProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerProfileIdsController.cs b/Authorize.NET/Api/Controllers/getCustomerProfileIdsController.cs index a2381ac3..f0145108 100644 --- a/Authorize.NET/Api/Controllers/getCustomerProfileIdsController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerProfileIdsController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerProfileIdsController : ApiOperationBase { + public class GetCustomerProfileIdsController : ApiOperationBase + { + + public GetCustomerProfileIdsController(getCustomerProfileIdsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getCustomerProfileIdsController(getCustomerProfileIdsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getCustomerShippingAddressController.cs b/Authorize.NET/Api/Controllers/getCustomerShippingAddressController.cs index 9a191a98..227883f5 100644 --- a/Authorize.NET/Api/Controllers/getCustomerShippingAddressController.cs +++ b/Authorize.NET/Api/Controllers/getCustomerShippingAddressController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getCustomerShippingAddressController : ApiOperationBase { + public class GetCustomerShippingAddressController : ApiOperationBase + { + + public GetCustomerShippingAddressController(getCustomerShippingAddressRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getCustomerShippingAddressController(getCustomerShippingAddressRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs b/Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs index 41790d75..ee06ac51 100644 --- a/Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs +++ b/Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getHostedPaymentPageController : ApiOperationBase { + public class GetHostedPaymentPageController : ApiOperationBase + { + + public GetHostedPaymentPageController(getHostedPaymentPageRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getHostedPaymentPageController(getHostedPaymentPageRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.getHostedPaymentPageRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.GetHostedPaymentPageRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getHostedProfilePageController.cs b/Authorize.NET/Api/Controllers/getHostedProfilePageController.cs index 521ec477..beccad63 100644 --- a/Authorize.NET/Api/Controllers/getHostedProfilePageController.cs +++ b/Authorize.NET/Api/Controllers/getHostedProfilePageController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getHostedProfilePageController : ApiOperationBase { + public class GetHostedProfilePageController : ApiOperationBase + { + + public GetHostedProfilePageController(getHostedProfilePageRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getHostedProfilePageController(getHostedProfilePageRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getMerchantDetailsController.cs b/Authorize.NET/Api/Controllers/getMerchantDetailsController.cs index ac46e7c9..127695af 100644 --- a/Authorize.NET/Api/Controllers/getMerchantDetailsController.cs +++ b/Authorize.NET/Api/Controllers/getMerchantDetailsController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getMerchantDetailsController : ApiOperationBase { + public class GetMerchantDetailsController : ApiOperationBase + { + + public GetMerchantDetailsController(getMerchantDetailsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getMerchantDetailsController(getMerchantDetailsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.getMerchantDetailsRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.GetMerchantDetailsRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getSettledBatchListController.cs b/Authorize.NET/Api/Controllers/getSettledBatchListController.cs index e5255545..9dac47ff 100644 --- a/Authorize.NET/Api/Controllers/getSettledBatchListController.cs +++ b/Authorize.NET/Api/Controllers/getSettledBatchListController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getSettledBatchListController : ApiOperationBase { + public class GetSettledBatchListController : ApiOperationBase + { + + public GetSettledBatchListController(getSettledBatchListRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getSettledBatchListController(getSettledBatchListRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.getSettledBatchListRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.GetSettledBatchListRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getTransactionDetailsController.cs b/Authorize.NET/Api/Controllers/getTransactionDetailsController.cs index a5f7a264..b046b3b6 100644 --- a/Authorize.NET/Api/Controllers/getTransactionDetailsController.cs +++ b/Authorize.NET/Api/Controllers/getTransactionDetailsController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getTransactionDetailsController : ApiOperationBase { + public class GetTransactionDetailsController : ApiOperationBase + { + + public GetTransactionDetailsController(getTransactionDetailsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getTransactionDetailsController(getTransactionDetailsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getTransactionListController.cs b/Authorize.NET/Api/Controllers/getTransactionListController.cs index aedb4b21..4e8f4664 100644 --- a/Authorize.NET/Api/Controllers/getTransactionListController.cs +++ b/Authorize.NET/Api/Controllers/getTransactionListController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getTransactionListController : ApiOperationBase { + public class GetTransactionListController : ApiOperationBase + { + + public GetTransactionListController(getTransactionListRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getTransactionListController(getTransactionListRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs b/Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs index 63b64407..4ed88b8f 100644 --- a/Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs +++ b/Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getTransactionListForCustomerController : ApiOperationBase { + public class GetTransactionListForCustomerController : ApiOperationBase + { + + public GetTransactionListForCustomerController(getTransactionListForCustomerRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getTransactionListForCustomerController(getTransactionListForCustomerRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.getTransactionListForCustomerRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.GetTransactionListForCustomerRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/getUnsettledTransactionListController.cs b/Authorize.NET/Api/Controllers/getUnsettledTransactionListController.cs index f0b326aa..db647514 100644 --- a/Authorize.NET/Api/Controllers/getUnsettledTransactionListController.cs +++ b/Authorize.NET/Api/Controllers/getUnsettledTransactionListController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class getUnsettledTransactionListController : ApiOperationBase { + public class GetUnsettledTransactionListController : ApiOperationBase + { + + public GetUnsettledTransactionListController(getUnsettledTransactionListRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public getUnsettledTransactionListController(getUnsettledTransactionListRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/isAliveController.cs b/Authorize.NET/Api/Controllers/isAliveController.cs index 3acb88bc..c3acf13c 100644 --- a/Authorize.NET/Api/Controllers/isAliveController.cs +++ b/Authorize.NET/Api/Controllers/isAliveController.cs @@ -1,28 +1,28 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class isAliveController : ApiOperationBase - { + public class IsAliveController : ApiOperationBase + { + + public IsAliveController(ANetApiRequest apiRequest) + : base(apiRequest) + { + } - public isAliveController(ANetApiRequest apiRequest) - : base(apiRequest) - { - } + override protected void ValidateRequest() + { + var request = GetApiRequest(); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - } + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.isAliveRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.IsAliveRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/logoutController.cs b/Authorize.NET/Api/Controllers/logoutController.cs index 2de1067c..8d0e5ee3 100644 --- a/Authorize.NET/Api/Controllers/logoutController.cs +++ b/Authorize.NET/Api/Controllers/logoutController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class logoutController : ApiOperationBase { + public class LogoutController : ApiOperationBase + { + + public LogoutController(logoutRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public logoutController(logoutRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.logoutRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.LogoutRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/mobileDeviceLoginController.cs b/Authorize.NET/Api/Controllers/mobileDeviceLoginController.cs index da367d07..0d03bfc3 100644 --- a/Authorize.NET/Api/Controllers/mobileDeviceLoginController.cs +++ b/Authorize.NET/Api/Controllers/mobileDeviceLoginController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class mobileDeviceLoginController : ApiOperationBase { + public class MobileDeviceLoginController : ApiOperationBase + { + + public MobileDeviceLoginController(mobileDeviceLoginRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public mobileDeviceLoginController(mobileDeviceLoginRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs b/Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs index ae02a4eb..cb6ce825 100644 --- a/Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs +++ b/Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class mobileDeviceRegistrationController : ApiOperationBase { + public class MobileDeviceRegistrationController : ApiOperationBase + { + + public MobileDeviceRegistrationController(mobileDeviceRegistrationRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public mobileDeviceRegistrationController(mobileDeviceRegistrationRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.mobileDeviceRegistrationRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.MobileDeviceRegistrationRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/securePaymentContainerController.cs b/Authorize.NET/Api/Controllers/securePaymentContainerController.cs index 72e1c66a..fe6c9c3b 100644 --- a/Authorize.NET/Api/Controllers/securePaymentContainerController.cs +++ b/Authorize.NET/Api/Controllers/securePaymentContainerController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class securePaymentContainerController : ApiOperationBase { + public class SecurePaymentContainerController : ApiOperationBase + { - public securePaymentContainerController(securePaymentContainerRequest apiRequest) : base(apiRequest) { - } + public SecurePaymentContainerController(securePaymentContainerRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + override protected void ValidateRequest() + { + var request = GetApiRequest(); - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.securePaymentContainerRequest(request); - } - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.SecurePaymentContainerRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/sendCustomerTransactionReceiptController.cs b/Authorize.NET/Api/Controllers/sendCustomerTransactionReceiptController.cs index adc959be..c26f5d2e 100644 --- a/Authorize.NET/Api/Controllers/sendCustomerTransactionReceiptController.cs +++ b/Authorize.NET/Api/Controllers/sendCustomerTransactionReceiptController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class sendCustomerTransactionReceiptController : ApiOperationBase { + public class SendCustomerTransactionReceiptController : ApiOperationBase + { + + public SendCustomerTransactionReceiptController(sendCustomerTransactionReceiptRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public sendCustomerTransactionReceiptController(sendCustomerTransactionReceiptRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/transactionController.cs b/Authorize.NET/Api/Controllers/transactionController.cs index e8728105..3b112b2c 100644 --- a/Authorize.NET/Api/Controllers/transactionController.cs +++ b/Authorize.NET/Api/Controllers/transactionController.cs @@ -1,36 +1,35 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class transactionController - //: ApiOperationBase - { + public class TransactionController + //: ApiOperationBase + { - public transactionController(transactionRequestType apiRequest) - //: base(apiRequest) - { - } + public TransactionController(transactionRequestType apiRequest) + //: base(apiRequest) + { + } - //override - protected void ValidateRequest() { - //var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //override + protected void ValidateRequest() + { + //var request = GetApiRequest(); - //protected override void BeforeExecute() - protected void BeforeExecute() - { - //var request = GetApiRequest(); - //RequestFactoryWithSpecified.transactionRequestType(request); - } - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + //protected override void BeforeExecute() + protected void BeforeExecute() + { + //var request = GetApiRequest(); + //RequestFactoryWithSpecified.transactionRequestType(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/transactionResponseEmvController.cs b/Authorize.NET/Api/Controllers/transactionResponseEmvController.cs index eced293f..ff403f8d 100644 --- a/Authorize.NET/Api/Controllers/transactionResponseEmvController.cs +++ b/Authorize.NET/Api/Controllers/transactionResponseEmvController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class transactionResponseEmvController : ApiOperationBase { + public class TransactionResponseEmvController : ApiOperationBase + { + + public TransactionResponseEmvController(transactionResponseEmvRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public transactionResponseEmvController(transactionResponseEmvRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.transactionResponseEmvType(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.transactionResponseEmvType(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs b/Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs index d6174c84..8db08c9a 100644 --- a/Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs +++ b/Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class updateCustomerPaymentProfileController : ApiOperationBase { + public class UpdateCustomerPaymentProfileController : ApiOperationBase + { - public updateCustomerPaymentProfileController(updateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) { - } + public UpdateCustomerPaymentProfileController(UpdateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + override protected void ValidateRequest() + { + var request = GetApiRequest(); - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.updateCustomerPaymentProfileRequest(request); - } - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.UpdateCustomerPaymentProfileRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateCustomerProfileController.cs b/Authorize.NET/Api/Controllers/updateCustomerProfileController.cs index 6469dcae..23944206 100644 --- a/Authorize.NET/Api/Controllers/updateCustomerProfileController.cs +++ b/Authorize.NET/Api/Controllers/updateCustomerProfileController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class updateCustomerProfileController : ApiOperationBase { + public class UpdateCustomerProfileController : ApiOperationBase + { + + public UpdateCustomerProfileController(updateCustomerProfileRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public updateCustomerProfileController(updateCustomerProfileRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.updateCustomerProfileRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.UpdateCustomerProfileRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateCustomerShippingAddressController.cs b/Authorize.NET/Api/Controllers/updateCustomerShippingAddressController.cs index 52abb5d1..68f5c0c2 100644 --- a/Authorize.NET/Api/Controllers/updateCustomerShippingAddressController.cs +++ b/Authorize.NET/Api/Controllers/updateCustomerShippingAddressController.cs @@ -1,24 +1,27 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class updateCustomerShippingAddressController : ApiOperationBase { + public class UpdateCustomerShippingAddressController : ApiOperationBase + { + + public UpdateCustomerShippingAddressController(updateCustomerShippingAddressRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public updateCustomerShippingAddressController(updateCustomerShippingAddressRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateHeldTransactionController.cs b/Authorize.NET/Api/Controllers/updateHeldTransactionController.cs index 2a958168..9bfeeab2 100644 --- a/Authorize.NET/Api/Controllers/updateHeldTransactionController.cs +++ b/Authorize.NET/Api/Controllers/updateHeldTransactionController.cs @@ -1,30 +1,32 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class updateHeldTransactionController : ApiOperationBase { + public class UpdateHeldTransactionController : ApiOperationBase + { - public updateHeldTransactionController(updateHeldTransactionRequest apiRequest) : base(apiRequest) { - } + public UpdateHeldTransactionController(updateHeldTransactionRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + override protected void ValidateRequest() + { + var request = GetApiRequest(); - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.updateHeldTransactionRequest(request); - } - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.UpdateHeldTransactionRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs b/Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs index 364919e0..22033599 100644 --- a/Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs +++ b/Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs @@ -1,30 +1,33 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class updateMerchantDetailsController : ApiOperationBase { + public class UpdateMerchantDetailsController : ApiOperationBase + { + + public UpdateMerchantDetailsController(updateMerchantDetailsRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public updateMerchantDetailsController(updateMerchantDetailsRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } + //validate not-required fields + } - protected override void BeforeExecute() - { - var request = GetApiRequest(); - RequestFactoryWithSpecified.updateMerchantDetailsRequest(request); - } - } + protected override void BeforeExecute() + { + var request = GetApiRequest(); + RequestFactoryWithSpecified.UpdateMerchantDetailsRequest(request); + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/updateSplitTenderGroupController.cs b/Authorize.NET/Api/Controllers/updateSplitTenderGroupController.cs index 6f14fbb6..c2dc44e4 100644 --- a/Authorize.NET/Api/Controllers/updateSplitTenderGroupController.cs +++ b/Authorize.NET/Api/Controllers/updateSplitTenderGroupController.cs @@ -1,24 +1,27 @@ -namespace AuthorizeNet.Api.Controllers -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers +{ #pragma warning disable 1591 - public class updateSplitTenderGroupController : ApiOperationBase { + public class UpdateSplitTenderGroupController : ApiOperationBase + { + + public UpdateSplitTenderGroupController(updateSplitTenderGroupRequest apiRequest) : base(apiRequest) + { + } + + override protected void ValidateRequest() + { + var request = GetApiRequest(); - public updateSplitTenderGroupController(updateSplitTenderGroupRequest apiRequest) : base(apiRequest) { - } + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/Api/Controllers/validateCustomerPaymentProfileController.cs b/Authorize.NET/Api/Controllers/validateCustomerPaymentProfileController.cs index cc1f81cd..ac06d345 100644 --- a/Authorize.NET/Api/Controllers/validateCustomerPaymentProfileController.cs +++ b/Authorize.NET/Api/Controllers/validateCustomerPaymentProfileController.cs @@ -1,24 +1,26 @@ -namespace AuthorizeNet.Api.Controllers +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +namespace AuthorizeNet.Api.Controllers { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; #pragma warning disable 1591 - public class validateCustomerPaymentProfileController : ApiOperationBase { + public class ValidateCustomerPaymentProfileController : ApiOperationBase + { - public validateCustomerPaymentProfileController(validateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) { - } + public ValidateCustomerPaymentProfileController(validateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) + { + } - override protected void ValidateRequest() { - var request = GetApiRequest(); - - //validate required fields - //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); - //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); - - //validate not-required fields - } - } + override protected void ValidateRequest() + { + var request = GetApiRequest(); + + //validate required fields + //if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null"); + //if ( null == request.Paging) throw new ArgumentException("Paging cannot be null"); + + //validate not-required fields + } + } #pragma warning restore 1591 } \ No newline at end of file diff --git a/Authorize.NET/AuthorizeNET.csproj b/Authorize.NET/AuthorizeNET.csproj index 809a0741..659d051a 100644 --- a/Authorize.NET/AuthorizeNET.csproj +++ b/Authorize.NET/AuthorizeNET.csproj @@ -1,133 +1,29 @@ - - + - Debug - AnyCPU - 9.0.30729 - 2.0 - {5D52EAEC-42FB-4313-83B8-69E2F55EBF14} Library - Properties - AuthorizeNet - AuthorizeNet - v4.5 - 512 - - - - - - 3.5 - AnyCPU - true - full - false bin/Debug/ - DEBUG;TRACE - prompt - 4 bin/Debug/AuthorizeNet.XML 0219,1591,1635 - false - AnyCPU - pdbonly - true bin/Release - TRACE - prompt - 4 bin/Release/AuthorizeNet.XML - false + + + netstandard2.0 + false + disable + latest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + + - - - \ No newline at end of file diff --git a/Authorize.NET/Environment.cs b/Authorize.NET/Environment.cs index fb2c503a..baf701b0 100644 --- a/Authorize.NET/Environment.cs +++ b/Authorize.NET/Environment.cs @@ -1,60 +1,65 @@ -namespace AuthorizeNet -{ - using System; - using System.Configuration; - using System.Linq; +using System; +using System.Configuration; +using System.Linq; - /*================================================================================ - * +namespace AuthorizeNet +{ + /*================================================================================ + * * Determines the target environment to post transactions. * - * SANDBOX should be used for testing. Transactions submitted to the sandbox - * will not result in an actual card payment. Instead, the sandbox simulates + * SANDBOX should be used for testing. Transactions submitted to the sandbox + * will not result in an actual card payment. Instead, the sandbox simulates * the response. Use the Testing Guide to generate specific gateway responses. * * PRODUCTION connects to the production gateway environment. * *===============================================================================*/ - public class Environment { - public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net"); - public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net"); - public static readonly Environment LOCAL_VM = new Environment(null, null, null); - public static readonly Environment HOSTED_VM = new Environment(null, null, null); - public static Environment CUSTOM = new Environment(null, null, null); + public class Environment + { + public static readonly Environment SANDBOX = new("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net"); + public static readonly Environment PRODUCTION = new("https://secure2.authorize.net", "https://api2.authorize.net", "https://cardpresent.authorize.net"); + public static readonly Environment LOCAL_VM = new(null, null, null); + public static readonly Environment HOSTED_VM = new(null, null, null); + public static Environment CUSTOM = new(null, null, null); - private String _baseUrl; - private String _xmlBaseUrl; - private String _cardPresentUrl; + private String _baseUrl; + private String _xmlBaseUrl; + private String _cardPresentUrl; - private Environment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { - _baseUrl = baseUrl; - _xmlBaseUrl = xmlBaseUrl; - _cardPresentUrl = cardPresentUrl; - } + private Environment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) + { + _baseUrl = baseUrl; + _xmlBaseUrl = xmlBaseUrl; + _cardPresentUrl = cardPresentUrl; + } - /** + /** * @return the baseUrl */ - public String getBaseUrl() { - return _baseUrl; - } + public String GetBaseUrl() + { + return _baseUrl; + } - /** + /** * @return the xmlBaseUrl */ - public String getXmlBaseUrl() { - return _xmlBaseUrl; - } + public String GetXmlBaseUrl() + { + return _xmlBaseUrl; + } - /** + /** * @return the cardPresentUrl */ - public String getCardPresentUrl() { - return _cardPresentUrl; - } + public String GetCardPresentUrl() + { + return _cardPresentUrl; + } - /** + /** * If a custom environment needs to be supported, this convenience create * method can be used to pass in a custom baseUrl. * @@ -62,12 +67,13 @@ public String getCardPresentUrl() { * @param xmlBaseUrl * @return Environment object */ - public static Environment createEnvironment(String baseUrl, String xmlBaseUrl) { + public static Environment CreateEnvironment(String baseUrl, String xmlBaseUrl) + { - return createEnvironment( baseUrl, xmlBaseUrl, null); - } + return CreateEnvironment(baseUrl, xmlBaseUrl, null); + } - /** + /** * If a custom environment needs to be supported, this convenience create * method can be used to pass in a custom baseUrl. * @@ -77,72 +83,74 @@ public static Environment createEnvironment(String baseUrl, String xmlBaseUrl) { * * @return Environment object */ - public static Environment createEnvironment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { - var environment = Environment.CUSTOM; - environment._baseUrl = baseUrl; - environment._xmlBaseUrl = xmlBaseUrl; - environment._cardPresentUrl = cardPresentUrl; - - return environment; - } - - /** + public static Environment CreateEnvironment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) + { + var environment = CUSTOM; + environment._baseUrl = baseUrl; + environment._xmlBaseUrl = xmlBaseUrl; + environment._cardPresentUrl = cardPresentUrl; + + return environment; + } + + /** * Reads a integer value from property file and/or the environment * Values in property file supersede the values set in environment * @param propertyName name of the integer property to read * @return int property value */ - public static int getIntProperty( String propertyName) - { - var stringValue = GetProperty(propertyName); - var value = (AuthorizeNet.Util.StringUtils.ParseInt(stringValue)); - - return value; - } - - /** + public static int GetIntProperty(String propertyName) + { + var stringValue = GetProperty(propertyName); + var value = (Util.StringUtils.ParseInt(stringValue)); + + return value; + } + + /** * Reads a boolean value from property file and/or the environment * Values in property file supersede the values set in environment * @param propertyName name of the boolean property to read * @return boolean property value */ - public static bool getBooleanProperty( String propertyName) - { - var value = false; - var stringValue = GetProperty(propertyName); - if ( null != stringValue) - { - Boolean.TryParse(stringValue.Trim(), out value); - } - - return value; - } - - /// - /// Reads the value from property file and/or the environment - /// Values in property file supersede the values set in environmen - /// - /// propertyName name of the property to read - /// String property value - public static String GetProperty(String propertyName) { - String stringValue = null; - - String propValue = null; - if ( ConfigurationManager.AppSettings.AllKeys.Contains(propertyName)) - { - propValue = ConfigurationManager.AppSettings[propertyName]; - } - - var envValue = System.Environment.GetEnvironmentVariable(propertyName); - if ( null != propValue && propValue.Trim().Length > 0 ) - { - stringValue = propValue; - } - else if ( null != envValue && envValue.Trim().Length > 0 ) - { - stringValue = envValue; - } - return stringValue; - } - } + public static bool GetBooleanProperty(String propertyName) + { + var value = false; + var stringValue = GetProperty(propertyName); + if (null != stringValue) + { + Boolean.TryParse(stringValue.Trim(), out value); + } + + return value; + } + + /// + /// Reads the value from property file and/or the environment + /// Values in property file supersede the values set in environmen + /// + /// propertyName name of the property to read + /// String property value + public static String GetProperty(String propertyName) + { + String stringValue = null; + + String propValue = null; + if (ConfigurationManager.AppSettings.AllKeys.Contains(propertyName)) + { + propValue = ConfigurationManager.AppSettings[propertyName]; + } + + var envValue = System.Environment.GetEnvironmentVariable(propertyName); + if (null != propValue && propValue.Trim().Length > 0) + { + stringValue = propValue; + } + else if (null != envValue && envValue.Trim().Length > 0) + { + stringValue = envValue; + } + return stringValue; + } + } } \ No newline at end of file diff --git a/Authorize.NET/Util/EnumHelper.cs b/Authorize.NET/Util/EnumHelper.cs index 332c27de..fb30d292 100644 --- a/Authorize.NET/Util/EnumHelper.cs +++ b/Authorize.NET/Util/EnumHelper.cs @@ -1,31 +1,31 @@ -namespace AuthorizeNet.Util -{ - using System; - using System.ComponentModel; +using System; +using System.ComponentModel; +namespace AuthorizeNet.Util +{ #pragma warning disable 1591 - //@deprecated since version 1.9.8 - //@deprecated Since it is not using by New model Code - [Obsolete("Since the classes using it are deprecated", false)] - public class EnumHelper - { + //@deprecated since version 1.9.8 + //@deprecated Since it is not using by New model Code + [Obsolete("Since the classes using it are deprecated", false)] + public class EnumHelper + { - public static string GetEnumDescription(Enum value) - { - string description = value.ToString(); + public static string GetEnumDescription(Enum value) + { + string description = value.ToString(); - var fi = value.GetType().GetField(value.ToString()); + var fi = value.GetType().GetField(value.ToString()); - var attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false); - // ReSharper disable ConditionIsAlwaysTrueOrFalse - if (null != attributes && attributes.Length > 0) - // ReSharper restore ConditionIsAlwaysTrueOrFalse - { - description = attributes[0].Description; - } + var attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false); + // ReSharper disable ConditionIsAlwaysTrueOrFalse + if (null != attributes && attributes.Length > 0) + // ReSharper restore ConditionIsAlwaysTrueOrFalse + { + description = attributes[0].Description; + } - return description; - } - } + return description; + } + } #pragma warning restore 1591 } diff --git a/Authorize.NET/Util/HtmlHelper.cs b/Authorize.NET/Util/HtmlHelper.cs index 0dc2fc54..03785abb 100644 --- a/Authorize.NET/Util/HtmlHelper.cs +++ b/Authorize.NET/Util/HtmlHelper.cs @@ -1,23 +1,23 @@ using System; -using System.Text; namespace AuthorizeNet.Util { - //@deprecated since version 1.9.8 - //@deprecated Since it is not using by New model Code - [Obsolete("Since the classes using it are deprecated", false)] - class HtmlHelper - { - /// - /// This will issue a full HTML document with a built-in script, which will redirect the browser away from - /// Authorize.NET to the URL you pass in. Be sure the toURL is absolute. This can be used in your DPM Replay Response Endpoint - /// - /// - /// - public static string RelayResponseRedirecter(string toUrl) { - - return string.Format("", toUrl); - - } - } + //@deprecated since version 1.9.8 + //@deprecated Since it is not using by New model Code + [Obsolete("Since the classes using it are deprecated", false)] + class HtmlHelper + { + /// + /// This will issue a full HTML document with a built-in script, which will redirect the browser away from + /// Authorize.NET to the URL you pass in. Be sure the toURL is absolute. This can be used in your DPM Replay Response Endpoint + /// + /// + /// + public static string RelayResponseRedirecter(string toUrl) + { + + return string.Format("", toUrl); + + } + } } diff --git a/Authorize.NET/Util/HttpUtility.cs b/Authorize.NET/Util/HttpUtility.cs index c0cac7dd..e60b96ca 100644 --- a/Authorize.NET/Util/HttpUtility.cs +++ b/Authorize.NET/Util/HttpUtility.cs @@ -1,177 +1,176 @@ +using System; +using System.IO; +using System.Net; +using System.Text; +using System.Xml; +using System.Xml.Serialization; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; + namespace AuthorizeNet.Util { - using System; - using System.IO; - using System.Net; - using System.Text; - using System.Xml; - using System.Xml.Serialization; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; - #pragma warning disable 1591 - public static class HttpUtility { - - //Max response size allowed: 64 MB - private const int MaxResponseLength = 67108864; - private static readonly Log Logger = LogFactory.getLog(typeof(HttpUtility)); - private static bool _proxySet;// = false; - - static readonly bool UseProxy = AuthorizeNet.Environment.getBooleanProperty(Constants.HttpsUseProxy); - static readonly String ProxyHost = AuthorizeNet.Environment.GetProperty(Constants.HttpsProxyHost); - static readonly int ProxyPort = AuthorizeNet.Environment.getIntProperty(Constants.HttpsProxyPort); - - private static Uri GetPostUrl(AuthorizeNet.Environment env) - { - var postUrl = new Uri(env.getXmlBaseUrl() + "/xml/v1/request.api"); - Logger.debug(string.Format("Creating PostRequest Url: '{0}'", postUrl)); - - return postUrl; - } - - public static ANetApiResponse PostData(AuthorizeNet.Environment env, TQ request) - where TQ : ANetApiRequest - where TS : ANetApiResponse - { - ANetApiResponse response = null; - if (null == request) - { - throw new ArgumentNullException("request"); - } - //Logger.debug(string.Format("MerchantInfo->LoginId/TransactionKey: '{0}':'{1}'->{2}", - //request.merchantAuthentication.name, request.merchantAuthentication.ItemElementName, request.merchantAuthentication.Item)); - - // Set Tls to Tls1.2 - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; - - var postUrl = GetPostUrl(env); - var webRequest = (HttpWebRequest) WebRequest.Create(postUrl); - webRequest.Method = "POST"; - webRequest.ContentType = "text/xml"; - webRequest.KeepAlive = true; - webRequest.Proxy = SetProxyIfRequested(webRequest.Proxy); - - //set the http connection timeout - var httpConnectionTimeout = AuthorizeNet.Environment.getIntProperty(Constants.HttpConnectionTimeout); - webRequest.Timeout = (httpConnectionTimeout != 0 ? httpConnectionTimeout : Constants.HttpConnectionDefaultTimeout); - - //set the time out to read/write from stream - var httpReadWriteTimeout = AuthorizeNet.Environment.getIntProperty(Constants.HttpReadWriteTimeout); - webRequest.ReadWriteTimeout = (httpReadWriteTimeout != 0 ? httpReadWriteTimeout : Constants.HttpReadWriteDefaultTimeout); - - var requestType = typeof (TQ); - var serializer = new XmlSerializer(requestType); - using (var writer = new XmlTextWriter(webRequest.GetRequestStream(), Encoding.UTF8)) - { - serializer.Serialize(writer, request); - } - - // Get the response - String responseAsString = null; - Logger.debug(string.Format("Retreiving Response from Url: '{0}'", postUrl)); - - using (var webResponse = webRequest.GetResponse()) - { - Logger.debug(string.Format("Received Response: '{0}'", webResponse)); - - using (var responseStream = webResponse.GetResponseStream()) - { - if (null != responseStream) - { - var result = new StringBuilder(); - - using (var reader = new StreamReader(responseStream)) - { - while (!reader.EndOfStream) - { - try - { - result.Append((char)reader.Read()); - } - catch (Exception) - { - throw new Exception("Cannot read response."); - } - - if (result.Length >= MaxResponseLength) - { - throw new Exception("response is too long."); - } - } - - responseAsString = result.Length > 0 ? result.ToString() : null; - } - Logger.debug(string.Format("Response from Stream: '{0}'", responseAsString)); - } - } - } - if (null != responseAsString) - { - using (var memoryStreamForResponseAsString = new MemoryStream(Encoding.UTF8.GetBytes(responseAsString))) - { - var responseType = typeof (TS); - var deSerializer = new XmlSerializer(responseType); - - Object deSerializedObject; - try - { - // try deserializing to the expected response type - deSerializedObject = deSerializer.Deserialize(memoryStreamForResponseAsString); - } - catch (Exception) - { - // probably a bad response, try if this is an error response - memoryStreamForResponseAsString.Seek(0, SeekOrigin.Begin); //start from beginning of stream - var genericDeserializer = new XmlSerializer(typeof (ANetApiResponse)); - deSerializedObject = genericDeserializer.Deserialize(memoryStreamForResponseAsString); - } - - //if error response - if (deSerializedObject is ErrorResponse) - { - response = deSerializedObject as ErrorResponse; - } - else - { - //actual response of type expected - if (deSerializedObject is TS) - { - response = deSerializedObject as TS; - } - else if (deSerializedObject is ANetApiResponse) //generic response - { - response = deSerializedObject as ANetApiResponse; - } - } - } - } - - return response; - } - - public static IWebProxy SetProxyIfRequested(IWebProxy proxy) - { - var newProxy = proxy as WebProxy; - - if (UseProxy) - { - var proxyUri = new Uri(string.Format("{0}://{1}:{2}", Constants.ProxyProtocol, ProxyHost, ProxyPort)); - if (!_proxySet) - { - Logger.info(string.Format("Setting up proxy to URL: '{0}'", proxyUri)); - _proxySet = true; - } - if (null == proxy || null == newProxy) - { - newProxy = new WebProxy(proxyUri); - } - - newProxy.UseDefaultCredentials = true; - newProxy.BypassProxyOnLocal = true; - } - return (newProxy ?? proxy); - } - } + public static class HttpUtility + { + + //Max response size allowed: 64 MB + private const int MaxResponseLength = 67108864; + private static readonly Log Logger = LogFactory.GetLog(typeof(HttpUtility)); + private static bool _proxySet;// = false; + + static readonly bool UseProxy = Environment.GetBooleanProperty(Constants.HttpsUseProxy); + static readonly String ProxyHost = Environment.GetProperty(Constants.HttpsProxyHost); + static readonly int ProxyPort = Environment.GetIntProperty(Constants.HttpsProxyPort); + + private static Uri GetPostUrl(Environment env) + { + var postUrl = new Uri(env.GetXmlBaseUrl() + "/xml/v1/request.api"); + Logger.Debug(string.Format("Creating PostRequest Url: '{0}'", postUrl)); + + return postUrl; + } + + public static ANetApiResponse PostData(Environment env, TQ request) + where TQ : ANetApiRequest + where TS : ANetApiResponse + { + ANetApiResponse response = null; + if (null == request) + { + throw new ArgumentNullException("request"); + } + //Logger.debug(string.Format("MerchantInfo->LoginId/TransactionKey: '{0}':'{1}'->{2}", + //request.merchantAuthentication.name, request.merchantAuthentication.ItemElementName, request.merchantAuthentication.Item)); + + // Set Tls to Tls1.2 + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; + + var postUrl = GetPostUrl(env); + var webRequest = (HttpWebRequest)WebRequest.Create(postUrl); + webRequest.Method = "POST"; + webRequest.ContentType = "text/xml"; + webRequest.KeepAlive = true; + webRequest.Proxy = SetProxyIfRequested(webRequest.Proxy); + + //set the http connection timeout + var httpConnectionTimeout = Environment.GetIntProperty(Constants.HttpConnectionTimeout); + webRequest.Timeout = (httpConnectionTimeout != 0 ? httpConnectionTimeout : Constants.HttpConnectionDefaultTimeout); + + //set the time out to read/write from stream + var httpReadWriteTimeout = Environment.GetIntProperty(Constants.HttpReadWriteTimeout); + webRequest.ReadWriteTimeout = (httpReadWriteTimeout != 0 ? httpReadWriteTimeout : Constants.HttpReadWriteDefaultTimeout); + + var requestType = typeof(TQ); + var serializer = new XmlSerializer(requestType); + using (var writer = new XmlTextWriter(webRequest.GetRequestStream(), Encoding.UTF8)) + { + serializer.Serialize(writer, request); + } + + // Get the response + String responseAsString = null; + Logger.Debug(string.Format("Retreiving Response from Url: '{0}'", postUrl)); + + using (var webResponse = webRequest.GetResponse()) + { + Logger.Debug(string.Format("Received Response: '{0}'", webResponse)); + + using var responseStream = webResponse.GetResponseStream(); + if (null != responseStream) + { + var result = new StringBuilder(); + + using (var reader = new StreamReader(responseStream)) + { + while (!reader.EndOfStream) + { + try + { + result.Append((char)reader.Read()); + } + catch (Exception) + { + throw new Exception("Cannot read response."); + } + + if (result.Length >= MaxResponseLength) + { + throw new Exception("response is too long."); + } + } + + responseAsString = result.Length > 0 ? result.ToString() : null; + } + Logger.Debug(string.Format("Response from Stream: '{0}'", responseAsString)); + } + } + if (null != responseAsString) + { + using var memoryStreamForResponseAsString = new MemoryStream(Encoding.UTF8.GetBytes(responseAsString)); + var responseType = typeof(TS); + var deSerializer = new XmlSerializer(responseType); + + Object deSerializedObject; + try + { + // try deserializing to the expected response type + deSerializedObject = deSerializer.Deserialize(memoryStreamForResponseAsString); + } + catch (Exception) + { + // probably a bad response, try if this is an error response + memoryStreamForResponseAsString.Seek(0, SeekOrigin.Begin); //start from beginning of stream + var genericDeserializer = new XmlSerializer(typeof(ANetApiResponse)); + deSerializedObject = genericDeserializer.Deserialize(memoryStreamForResponseAsString); + } + + //if error response + if (deSerializedObject is ErrorResponse) + { + response = deSerializedObject as ErrorResponse; + } + else + { + //actual response of type expected + if (deSerializedObject is TS) + { + response = deSerializedObject as TS; + } + else if (deSerializedObject is ANetApiResponse) //generic response + { + response = deSerializedObject as ANetApiResponse; + } + } + } + + return response; + } + + public static IWebProxy SetProxyIfRequested(IWebProxy proxy) + { + WebProxy newProxy; + if (UseProxy) + { + var proxyUri = new Uri(string.Format("{0}://{1}:{2}", Constants.ProxyProtocol, ProxyHost, ProxyPort)); + if (!_proxySet) + { + Logger.Info(string.Format("Setting up proxy to URL: '{0}'", proxyUri)); + _proxySet = true; + } + newProxy = new WebProxy(proxyUri) + { + UseDefaultCredentials = true, + BypassProxyOnLocal = true + }; + } + else + { + newProxy = proxy as WebProxy; + } + return newProxy; + } + } #pragma warning restore 1591 diff --git a/Authorize.NET/Util/LogHelper.cs b/Authorize.NET/Util/LogHelper.cs index 1c9407d9..46098a65 100644 --- a/Authorize.NET/Util/LogHelper.cs +++ b/Authorize.NET/Util/LogHelper.cs @@ -1,91 +1,96 @@ +using System; +using System.Diagnostics; +using System.Globalization; + namespace AuthorizeNet.Util { - using System; - using System.Diagnostics; - using System.Globalization; + /// + /// + /// + /// + public static class LogHelper + { + + static LogHelper() + { + } - /// - /// - /// - /// - public static class LogHelper { + public static void Debug(Log logger, string format, params object[] arguments) + { + var logMessage = GetMessage(logger, format, arguments); + if (null != logMessage) { logger.Debug(logMessage); } + } - static LogHelper() { - } + public static void Error(Log logger, string format, params object[] arguments) + { + var logMessage = GetMessage(logger, format, arguments); + if (null != logMessage) { logger.Error(logMessage); } + } - public static void debug(Log logger, string format, params object[] arguments) { - string logMessage = getMessage(logger, format, arguments); - if ( null != logMessage) { logger.debug(logMessage); } - } + public static void Info(Log logger, string format, params object[] arguments) + { + var logMessage = GetMessage(logger, format, arguments); + if (null != logMessage) { logger.Info(logMessage); } + } - public static void error(Log logger, string format, params object[] arguments) { - string logMessage = getMessage(logger, format, arguments); - if ( null != logMessage) { logger.error(logMessage); } - } - - public static void info(Log logger, string format, params object[] arguments) { - string logMessage = getMessage(logger, format, arguments); - if ( null != logMessage) { logger.info(logMessage); } - } + public static void Warn(Log logger, string format, params object[] arguments) + { + var logMessage = GetMessage(logger, format, arguments); + if (null != logMessage) { logger.Warn(logMessage); } + } - public static void warn(Log logger, string format, params object[] arguments) { - string logMessage = getMessage(logger, format, arguments); - if ( null != logMessage) { logger.warn(logMessage); } - } + private static string GetMessage(Log logger, string format, params object[] arguments) + { + string logMessage = null; - private static string getMessage(Log logger, string format, params object[] arguments) { - string logMessage = null; - - if ( null != logger && null != format && 0 < format.Trim().Length) { - logMessage = string.Format(CultureInfo.InvariantCulture, format, arguments); - //do encoding etc here or output neutralization as necessary - } - return logMessage; - } - } + if (null != logger && null != format && 0 < format.Trim().Length) + { + logMessage = string.Format(CultureInfo.InvariantCulture, format, arguments); + //do encoding etc here or output neutralization as necessary + } + return logMessage; + } + } - public class Log - { - private static TraceSource traceSource = new TraceSource("AnetDotNetSdkTrace"); + public class Log + { + private static readonly TraceSource traceSource = new("AnetDotNetSdkTrace"); - public void error(string logMessage) { Trace(TraceEventType.Error, logMessage); } - public void info(string logMessage) { Trace(TraceEventType.Information, logMessage); } - public void debug(string logMessage) { Trace(TraceEventType.Verbose, logMessage); } - public void warn(string logMessage) { Trace(TraceEventType.Warning, logMessage); } + public void Error(string logMessage) => Trace(TraceEventType.Error, logMessage); + public void Info(string logMessage) => Trace(TraceEventType.Information, logMessage); + public void Debug(string logMessage) => Trace(TraceEventType.Verbose, logMessage); + public void Warn(string logMessage) => Trace(TraceEventType.Warning, logMessage); - public void error(object logMessage) { error(logMessage.ToString()); } - public void info(object logMessage) { info(logMessage.ToString()); } - public void debug(object logMessage) { debug(logMessage.ToString()); } - public void warn(object logMessage) { warn(logMessage.ToString()); } + public void Error(object logMessage) => this.Error(logMessage.ToString()); + public void Info(object logMessage) => this.Info(logMessage.ToString()); + public void Debug(object logMessage) => this.Debug(logMessage.ToString()); + public void Warn(object logMessage) => this.Warn(logMessage.ToString()); - public static void Trace(TraceEventType eventType, string message) - { - try - { - if (traceSource.Switch.ShouldTrace(eventType)) - { - string tracemessage = string.Format("{0}\t[{1}]\t{2}", DateTime.Now.ToString("MM/dd/yy HH:mm:ss"), eventType, message); - foreach (TraceListener listener in traceSource.Listeners) - { - listener.WriteLine(tracemessage); - listener.Flush(); - } - } - } - catch (Exception) - { + public static void Trace(TraceEventType eventType, string message) + { + try + { + if (traceSource.Switch.ShouldTrace(eventType)) + { + var tracemessage = string.Format("{0}\t[{1}]\t{2}", DateTime.Now.ToString("MM/dd/yy HH:mm:ss"), eventType, message); + foreach (TraceListener listener in traceSource.Listeners) + { + listener.WriteLine(tracemessage); + listener.Flush(); + } + } + } + catch (Exception) + { - } - } - } + } + } + } - public class LogFactory - { - private static readonly Log Logger = new Log(); - public static Log getLog(Type classType) - { - return Logger; - } - } + public class LogFactory + { + private static readonly Log Logger = new(); + public static Log GetLog(Type classType) => Logger; + } } \ No newline at end of file diff --git a/Authorize.NET/Util/SensitiveDataConfigType.cs b/Authorize.NET/Util/SensitiveDataConfigType.cs index 46c2824c..27d7dbf8 100644 --- a/Authorize.NET/Util/SensitiveDataConfigType.cs +++ b/Authorize.NET/Util/SensitiveDataConfigType.cs @@ -1,39 +1,39 @@ namespace AuthorizeNet.Util { - public class SensitiveTag - { - public string tagName { get; set; } - public string pattern { get; set; } - public string replacement { get; set; } - public bool disableMask { get; set; } + public class SensitiveTag + { + public string TagName { get; set; } + public string Pattern { get; set; } + public string Replacement { get; set; } + public bool DisableMask { get; set; } - public SensitiveTag(string tagName, string pattern, string replacement, bool disableMask) - { - this.tagName = tagName; - this.pattern = pattern; - this.replacement = replacement; - this.disableMask = disableMask; - } - } + public SensitiveTag(string tagName, string pattern, string replacement, bool disableMask) + { + this.TagName = tagName; + this.Pattern = pattern; + this.Replacement = replacement; + this.DisableMask = disableMask; + } + } - public static class SensitiveDataConfigType - { - public static SensitiveTag[] sensitiveTags = new SensitiveTag[] - { - new SensitiveTag("cardCode", "", "XXX", false), - new SensitiveTag("cardNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false), - new SensitiveTag("expirationDate", "", "XXX", false), - new SensitiveTag("accountNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false), - new SensitiveTag("nameOnAccount", "", "XXX", false), - new SensitiveTag("transactionKey", "", "XXX", false) - }; + public static class SensitiveDataConfigType + { + public static SensitiveTag[] sensitiveTags = new SensitiveTag[] + { + new SensitiveTag("cardCode", "", "XXX", false), + new SensitiveTag("cardNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false), + new SensitiveTag("expirationDate", "", "XXX", false), + new SensitiveTag("accountNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false), + new SensitiveTag("nameOnAccount", "", "XXX", false), + new SensitiveTag("transactionKey", "", "XXX", false) + }; - public static string[] sensitiveStringRegexes = new string[] { - "4\\p{N}{3}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", - "4\\p{N}{3}([\\ \\-]?)(?:\\p{N}{4}\\1){2}\\p{N}(?:\\p{N}{3})?", - "5[1-5]\\p{N}{2}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", - "6(?:011|22(?:1(?=[\\ \\-]?(?:2[6-9]|[3-9]))|[2-8]|9(?=[\\ \\-]?(?:[01]|2[0-5])))|4[4-9]\\p{N}|5\\p{N}\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", - "35(?:2[89]|[3-8]\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", - "3[47]\\p{N}\\p{N}([\\ \\-]?)\\p{N}{6}\\1\\p{N}{5}"}; - } + public static string[] sensitiveStringRegexes = new string[] { + "4\\p{N}{3}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", + "4\\p{N}{3}([\\ \\-]?)(?:\\p{N}{4}\\1){2}\\p{N}(?:\\p{N}{3})?", + "5[1-5]\\p{N}{2}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", + "6(?:011|22(?:1(?=[\\ \\-]?(?:2[6-9]|[3-9]))|[2-8]|9(?=[\\ \\-]?(?:[01]|2[0-5])))|4[4-9]\\p{N}|5\\p{N}\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", + "35(?:2[89]|[3-8]\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}", + "3[47]\\p{N}\\p{N}([\\ \\-]?)\\p{N}{6}\\1\\p{N}{5}"}; + } } diff --git a/Authorize.NET/Util/SensitiveDataConsoleLogger.cs b/Authorize.NET/Util/SensitiveDataConsoleLogger.cs index a5973e9c..0ce50b8e 100644 --- a/Authorize.NET/Util/SensitiveDataConsoleLogger.cs +++ b/Authorize.NET/Util/SensitiveDataConsoleLogger.cs @@ -1,13 +1,15 @@ -namespace AuthorizeNet.Util -{ - using System; +using System; - public class SensitiveDataConsoleLogger : SensitiveDataTextLogger - { - public SensitiveDataConsoleLogger() : base (Console.Out) { - } +namespace AuthorizeNet.Util +{ + public class SensitiveDataConsoleLogger : SensitiveDataTextLogger + { + public SensitiveDataConsoleLogger() : base(Console.Out) + { + } - public SensitiveDataConsoleLogger(bool useErrorStream) : base (useErrorStream ? Console.Error : Console.Out) { - } - } + public SensitiveDataConsoleLogger(bool useErrorStream) : base(useErrorStream ? Console.Error : Console.Out) + { + } + } } diff --git a/Authorize.NET/Util/SensitiveDataTextLogger.cs b/Authorize.NET/Util/SensitiveDataTextLogger.cs index e5d76915..af2cf698 100644 --- a/Authorize.NET/Util/SensitiveDataTextLogger.cs +++ b/Authorize.NET/Util/SensitiveDataTextLogger.cs @@ -1,94 +1,94 @@ -namespace AuthorizeNet.Util -{ - using System; - using System.Diagnostics; - using System.Text.RegularExpressions; +using System; +using System.Diagnostics; +using System.Text.RegularExpressions; - public class SensitiveDataTextLogger : TextWriterTraceListener - { - private static string[] cardPatterns; - private static string[] tagPatterns; - private static string[] tagReplacements; +namespace AuthorizeNet.Util +{ + public class SensitiveDataTextLogger : TextWriterTraceListener + { + private static string[] cardPatterns; + private static string[] tagPatterns; + private static string[] tagReplacements; - static SensitiveDataTextLogger() - { - LoadSensitiveDataConfig(); - } - public SensitiveDataTextLogger(System.IO.Stream stream) : base(stream) - { - } + static SensitiveDataTextLogger() + { + LoadSensitiveDataConfig(); + } + public SensitiveDataTextLogger(System.IO.Stream stream) : base(stream) + { + } - public SensitiveDataTextLogger(System.IO.Stream stream, string name) : base(stream, name) - { - } + public SensitiveDataTextLogger(System.IO.Stream stream, string name) : base(stream, name) + { + } - public SensitiveDataTextLogger(string FileName, string name) : base(FileName, name) - { - } + public SensitiveDataTextLogger(string FileName, string name) : base(FileName, name) + { + } - public SensitiveDataTextLogger(string FileName) : base(FileName) - { - } + public SensitiveDataTextLogger(string FileName) : base(FileName) + { + } - public SensitiveDataTextLogger(System.IO.TextWriter writer, string name) : base(writer, name) - { - } + public SensitiveDataTextLogger(System.IO.TextWriter writer, string name) : base(writer, name) + { + } - public SensitiveDataTextLogger(System.IO.TextWriter writer) : base(writer) - { - } + public SensitiveDataTextLogger(System.IO.TextWriter writer) : base(writer) + { + } - private static void LoadSensitiveDataConfig() - { - cardPatterns = SensitiveDataConfigType.sensitiveStringRegexes; + private static void LoadSensitiveDataConfig() + { + cardPatterns = SensitiveDataConfigType.sensitiveStringRegexes; - int noOfSensitiveTags = SensitiveDataConfigType.sensitiveTags.Length; - tagPatterns = new string[noOfSensitiveTags]; - tagReplacements = new string[noOfSensitiveTags]; + int noOfSensitiveTags = SensitiveDataConfigType.sensitiveTags.Length; + tagPatterns = new string[noOfSensitiveTags]; + tagReplacements = new string[noOfSensitiveTags]; - for (int i = 0; i < noOfSensitiveTags; i++) - { - String tagName = SensitiveDataConfigType.sensitiveTags[i].tagName; - String pattern = SensitiveDataConfigType.sensitiveTags[i].pattern; - String replacement = SensitiveDataConfigType.sensitiveTags[i].replacement; + for (int i = 0; i < noOfSensitiveTags; i++) + { + String tagName = SensitiveDataConfigType.sensitiveTags[i].TagName; + String pattern = SensitiveDataConfigType.sensitiveTags[i].Pattern; + String replacement = SensitiveDataConfigType.sensitiveTags[i].Replacement; - if (!String.IsNullOrEmpty(pattern)) - tagPatterns[i] = "<" + tagName + ">" + pattern + ""; - else - tagPatterns[i] = "<" + tagName + ">" + ".+" + ""; - tagReplacements[i] = "<" + tagName + ">" + replacement + ""; - } - } + if (!string.IsNullOrEmpty(pattern)) + tagPatterns[i] = "<" + tagName + ">" + pattern + ""; + else + tagPatterns[i] = "<" + tagName + ">" + ".+" + ""; + tagReplacements[i] = "<" + tagName + ">" + replacement + ""; + } + } - public override void Write(string Msg) - { - base.Write(Msg); - base.Flush(); - } - public override void WriteLine(string Msg) - { - string maskXmlMessage = maskSensitiveXmlString(Msg); - base.WriteLine(maskCreditCards(maskXmlMessage)); - base.Flush(); - } + public override void Write(string Msg) + { + base.Write(Msg); + base.Flush(); + } + public override void WriteLine(string Msg) + { + string maskXmlMessage = MaskSensitiveXmlString(Msg); + base.WriteLine(MaskCreditCards(maskXmlMessage)); + base.Flush(); + } - public static String maskCreditCards(String str) - { - for (int i = 0; i < cardPatterns.Length; i++) - { - str = Regex.Replace(str, cardPatterns[i], "XXXX"); - } - return str; - } + public static String MaskCreditCards(String str) + { + for (int i = 0; i < cardPatterns.Length; i++) + { + str = Regex.Replace(str, cardPatterns[i], "XXXX"); + } + return str; + } - public static String maskSensitiveXmlString(String str) - { - for (int i = 0; i < tagPatterns.Length; i++) - { - str = Regex.Replace(str, tagPatterns[i], tagReplacements[i]); - } - return str; - } - } + public static String MaskSensitiveXmlString(String str) + { + for (int i = 0; i < tagPatterns.Length; i++) + { + str = Regex.Replace(str, tagPatterns[i], tagReplacements[i]); + } + return str; + } + } } diff --git a/Authorize.NET/Util/XmlUtility.cs b/Authorize.NET/Util/XmlUtility.cs index d14d72bd..b367bd40 100644 --- a/Authorize.NET/Util/XmlUtility.cs +++ b/Authorize.NET/Util/XmlUtility.cs @@ -1,73 +1,72 @@ +using System; +using System.IO; +using System.Xml.Serialization; + namespace AuthorizeNet.Util { - using System; - using System.IO; - using System.Xml.Serialization; - #pragma warning disable 1591 - public static class XmlUtility { + public static class XmlUtility + { + + private static readonly Log Logger = LogFactory.GetLog(typeof(XmlUtility)); - private static readonly Log Logger = LogFactory.getLog(typeof(XmlUtility)); + public static string GetXml(T entity) //where T: object //MarshalByRefObject //Serializable + { + string xmlString; - public static string GetXml(T entity) //where T: object //MarshalByRefObject //Serializable - { - string xmlString; + var requestType = typeof(T); + try + { + var serializer = new XmlSerializer(requestType); + using var writer = new Utf8StringWriter(); - var requestType = typeof (T); - try - { - var serializer = new XmlSerializer(requestType); - using (var writer = new Utf8StringWriter()) - { + serializer.Serialize(writer, entity); + xmlString = writer.ToString(); + } + catch (Exception e) + { + LogHelper.Error(Logger, "Error:'{0}' when serializing object:'{1}' to xml", e.Message, requestType); + throw; + } - serializer.Serialize(writer, entity); - xmlString = writer.ToString(); - } - } - catch (Exception e) - { - LogHelper.error(Logger, "Error:'{0}' when serializing object:'{1}' to xml", e.Message, requestType); - throw; - } - - return xmlString; - } + return xmlString; + } - public static T Create(string xml) //where T: object //MarshalByRefObject - { - var entity = default(T); - //make sure we have not null and not-empty string to de-serialize - if ( null != xml && 0 != xml.Trim().Length) - { - var responseType = typeof (T); - try - { - object deSerializedobject; - var serializer = new XmlSerializer(responseType); - using (var reader = new StringReader(xml)) - { - deSerializedobject = serializer.Deserialize(reader); - } + public static T Create(string xml) //where T: object //MarshalByRefObject + { + var entity = default(T); + //make sure we have not null and not-empty string to de-serialize + if (null != xml && 0 != xml.Trim().Length) + { + var responseType = typeof(T); + try + { + object deSerializedobject; + var serializer = new XmlSerializer(responseType); + using (var reader = new StringReader(xml)) + { + deSerializedobject = serializer.Deserialize(reader); + } - if (deSerializedobject is T) - { - entity = (T) deSerializedobject; - } - } - catch (Exception e) - { - LogHelper.error(Logger, "Error:'{0}' when deserializing the into object:'{1}' from xml:'{2}'", e.Message, responseType, xml); - throw; - } - } + if (deSerializedobject is T t) + { + entity = t; + } + } + catch (Exception e) + { + LogHelper.Error(Logger, "Error:'{0}' when deserializing the into object:'{1}' from xml:'{2}'", e.Message, responseType, xml); + throw; + } + } - return entity; - } - } + return entity; + } + } - public sealed class Utf8StringWriter : StringWriter - { - public override System.Text.Encoding Encoding { get { return System.Text.Encoding.UTF8; } } - } + public sealed class Utf8StringWriter : StringWriter + { + public override System.Text.Encoding Encoding { get { return System.Text.Encoding.UTF8; } } + } #pragma warning disable 1591 } \ No newline at end of file diff --git a/Authorize.NET/Utility/AnetApiSchema.generated.cs b/Authorize.NET/Utility/AnetApiSchema.generated.cs index 80ebbd53..cf88d6d1 100644 --- a/Authorize.NET/Utility/AnetApiSchema.generated.cs +++ b/Authorize.NET/Utility/AnetApiSchema.generated.cs @@ -8,5698 +8,5948 @@ // //------------------------------------------------------------------------------ -// +// // This source code was auto-generated by xsd, Version=2.0.50727.3038. -// -namespace AuthorizeNet.APICore { - using System.Xml.Serialization; - - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class decryptPaymentDataRequest : ANetApiRequest { - - /// - public opaqueDataType opaqueData; - - /// - public string callId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class opaqueDataType { - - /// - public string dataDescriptor; - - /// - public string dataValue; - - /// - public string dataKey; - - /// - public System.DateTime expirationTimeStamp; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool expirationTimeStampSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class processorType { - - /// - public string name; - - /// - public int id; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("cardType")] - public string[] cardTypes; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auDetailsType { - - /// - public long customerProfileID; - - /// - public long customerPaymentProfileID; - - /// - public string firstName; - - /// - public string lastName; - - /// - public string updateTimeUTC; - - /// - public string auReasonCode; - - /// - public string reasonDescription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auDeleteType : auDetailsType { - - /// - public creditCardMaskedType creditCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardMaskedType { - - /// - public string cardNumber; - - /// - public string expirationDate; - - /// - public string cardType; - - /// - public cardArt cardArt; - - /// - public string issuerNumber; - - /// - public bool isPaymentToken; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isPaymentTokenSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class cardArt { - - /// - public string cardBrand; - - /// - public string cardImageHeight; - - /// - public string cardImageUrl; - - /// - public string cardImageWidth; - - /// - public string cardType; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auUpdateType : auDetailsType { - - /// - public creditCardMaskedType newCreditCard; - - /// - public creditCardMaskedType oldCreditCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class auResponseType { - - /// - public string auReasonCode; - - /// - public long profileCount; - - /// - public string reasonDescription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileListItemType { - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public int customerPaymentProfileId; - - /// - public int customerProfileId; - - /// - public customerAddressType billTo; - - /// - public paymentMaskedType payment; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerAddressType : nameAndAddressType { - - /// - public string phoneNumber; - - /// - public string faxNumber; - - /// - public string email; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class nameAndAddressType { - - /// - public string firstName; - - /// - public string lastName; - - /// - public string company; - - /// - public string address; - - /// - public string city; - - /// - public string state; - - /// - public string zip; - - /// - public string country; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerAddressExType : customerAddressType { - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentMaskedType { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))] - [System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))] - public object Item; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class bankAccountMaskedType { - - /// - public bankAccountTypeEnum accountType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool accountTypeSpecified; - - /// - public string routingNumber; - - /// - public string accountNumber; - - /// - public string nameOnAccount; - - /// - public echeckTypeEnum echeckType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool echeckTypeSpecified; - - /// - public string bankName; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum bankAccountTypeEnum { - - /// - checking, - - /// - savings, - - /// - businessChecking, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum echeckTypeEnum { - - /// - PPD, - - /// - WEB, - - /// - CCD, - - /// - TEL, - - /// - ARC, - - /// - BOC, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class tokenMaskedType { - - /// - public string tokenSource; - - /// - public string tokenNumber; - - /// - public string expirationDate; - - /// - public string tokenRequestorId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class CustomerPaymentProfileSorting { - - /// - public CustomerPaymentProfileOrderFieldEnum orderBy; - - /// - public bool orderDescending; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum CustomerPaymentProfileOrderFieldEnum { - - /// - id, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileSummaryType { - - /// - public string customerProfileId; - - /// - public string description; - - /// - public string merchantCustomerId; - - /// - public string email; - - /// - public System.DateTime createdDate; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class SubscriptionDetail { - - /// - public int id; - - /// - public string name; - - /// - public ARBSubscriptionStatusEnum status; - - /// - public System.DateTime createTimeStampUTC; - - /// - public string firstName; - - /// - public string lastName; - - /// - public int totalOccurrences; - - /// - public int pastOccurrences; - - /// - public paymentMethodEnum paymentMethod; - - /// - public string accountNumber; - - /// - public string invoice; - - /// - public decimal amount; - - /// - public string currencyCode; - - /// - public int customerProfileId; - - /// - public int customerPaymentProfileId; - - /// - public int customerShippingProfileId; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool customerShippingProfileIdSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBSubscriptionStatusEnum { - - /// - active, - - /// - expired, - - /// - suspended, - - /// - canceled, - - /// - terminated, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum paymentMethodEnum { - - /// - creditCard, - - /// - eCheck, - - /// - payPal, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBGetSubscriptionListSorting { - - /// - public ARBGetSubscriptionListOrderFieldEnum orderBy; - - /// - public bool orderDescending; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBGetSubscriptionListOrderFieldEnum { - - /// - id, - - /// - name, - - /// - status, - - /// - createTimeStampUTC, - - /// - lastName, - - /// - firstName, - - /// - accountNumber, - - /// - amount, - - /// - pastOccurrences, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class Paging { - - /// - public int limit; - - /// - public int offset; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class TransactionListSorting { - - /// - public TransactionListOrderFieldEnum orderBy; - - /// - public bool orderDescending; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum TransactionListOrderFieldEnum { - - /// - id, - - /// - submitTimeUTC, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class heldTransactionRequestType { - - /// - public afdsTransactionEnum action; - - /// - public string refTransId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum afdsTransactionEnum { - - /// - approve, - - /// - decline, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class createProfileResponse { - - /// - public messagesType messages; - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerPaymentProfileIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerShippingAddressIdList; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class messagesType { - - /// - public messageTypeEnum resultCode; - - /// - [System.Xml.Serialization.XmlElementAttribute("message")] - public messagesTypeMessage[] message; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum messageTypeEnum { - - /// - Ok, - - /// - Error, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class messagesTypeMessage { - - /// - public string code; - - /// - public string text; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponse { - - /// - public string responseCode; - - /// - public string rawResponseCode; - - /// - public string authCode; - - /// - public string avsResultCode; - - /// - public string cvvResultCode; - - /// - public string cavvResultCode; - - /// - public string transId; - - /// - public string refTransID; - - /// - public string transHash; - - /// - public string testRequest; - - /// - public string accountNumber; - - /// - public string entryMode; - - /// - public string accountType; - - /// - public string splitTenderId; - - /// - public transactionResponsePrePaidCard prePaidCard; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable=false)] - public transactionResponseMessage[] messages; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable=false)] - public transactionResponseError[] errors; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable=false)] - public transactionResponseSplitTenderPayment[] splitTenderPayments; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public userField[] userFields; - - /// - public nameAndAddressType shipTo; - - /// - public transactionResponseSecureAcceptance secureAcceptance; - - /// - public transactionResponseEmvResponse emvResponse; - - /// - public string transHashSha2; - - /// - public customerProfileIdType profile; - - /// - public string networkTransId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponsePrePaidCard { - - /// - public string requestedAmount; - - /// - public string approvedAmount; - - /// - public string balanceOnCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseMessage { - - /// - public string code; - - /// - public string description; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseError { - - /// - public string errorCode; - - /// - public string errorText; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseSplitTenderPayment { - - /// - public string transId; - - /// - public string responseCode; - - /// - public string responseToCustomer; - - /// - public string authCode; - - /// - public string accountNumber; - - /// - public string accountType; - - /// - public string requestedAmount; - - /// - public string approvedAmount; - - /// - public string balanceOnCard; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class userField { - - /// - public string name; - - /// - public string value; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseSecureAcceptance { - - /// - public string SecureAcceptanceUrl; - - /// - public string PayerID; - - /// - public string PayerEmail; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionResponseEmvResponse { - - /// - public string tlvData; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)] - public emvTag[] tags; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class emvTag { - - /// - public string name; - - /// - public string value; - - /// - public string formatted; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileIdType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class returnedItemType { - - /// - public string id; - - /// - public System.DateTime dateUTC; - - /// - public System.DateTime dateLocal; - - /// - public string code; - - /// - public string description; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionDetailsType { - - /// - public string transId; - - /// - public string refTransId; - - /// - public string splitTenderId; - - /// - public System.DateTime submitTimeUTC; - - /// - public System.DateTime submitTimeLocal; - - /// - public string transactionType; - - /// - public string transactionStatus; - - /// - public int responseCode; - - /// - public int responseReasonCode; - - /// - public subscriptionPaymentType subscription; - - /// - public string responseReasonDescription; - - /// - public string authCode; - - /// - public string AVSResponse; - - /// - public string cardCodeResponse; - - /// - public string CAVVResponse; - - /// - public string FDSFilterAction; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable=false)] - public FDSFilterType[] FDSFilters; - - /// - public batchDetailsType batch; - - /// - public orderExType order; - - /// - public decimal requestedAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool requestedAmountSpecified; - - /// - public decimal authAmount; - - /// - public decimal settleAmount; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType shipping; - - /// - public extendedAmountType duty; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)] - public lineItemType[] lineItems; - - /// - public decimal prepaidBalanceRemaining; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool prepaidBalanceRemainingSpecified; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public paymentMaskedType payment; - - /// - public customerDataType customer; - - /// - public customerAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public bool recurringBilling; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool recurringBillingSpecified; - - /// - public string customerIP; - - /// - public string product; - - /// - public string entryMode; - - /// - public string marketType; - - /// - public string mobileDeviceId; - - /// - public string customerSignature; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable=false)] - public returnedItemType[] returnedItems; - - /// - public solutionType solution; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)] - public transactionDetailsTypeTag[] emvDetails; - - /// - public customerProfileIdType profile; - - /// - public extendedAmountType surcharge; - - /// - public string employeeId; - - /// - public extendedAmountType tip; - - /// - public otherTaxType otherTax; - - /// - public nameAndAddressType shipFrom; - - /// - public string networkTransId; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - - /// - public string authorizationIndicator; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subscriptionPaymentType { - - /// - public int id; - - /// - public int payNum; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class FDSFilterType { - - /// - public string name; - - /// - public string action; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class batchDetailsType { - - /// - public string batchId; - - /// - public System.DateTime settlementTimeUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool settlementTimeUTCSpecified; - - /// - public System.DateTime settlementTimeLocal; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool settlementTimeLocalSpecified; - - /// - public string settlementState; - - /// - public string paymentMethod; - - /// - public string marketType; - - /// - public string product; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable=false)] - public batchStatisticType[] statistics; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class batchStatisticType { - - /// - public string accountType; - - /// - public decimal chargeAmount; - - /// - public int chargeCount; - - /// - public decimal refundAmount; - - /// - public int refundCount; - - /// - public int voidCount; - - /// - public int declineCount; - - /// - public int errorCount; - - /// - public decimal returnedItemAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool returnedItemAmountSpecified; - - /// - public int returnedItemCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool returnedItemCountSpecified; - - /// - public decimal chargebackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargebackAmountSpecified; - - /// - public int chargebackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargebackCountSpecified; - - /// - public int correctionNoticeCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool correctionNoticeCountSpecified; - - /// - public decimal chargeChargeBackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeChargeBackAmountSpecified; - - /// - public int chargeChargeBackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeChargeBackCountSpecified; - - /// - public decimal refundChargeBackAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundChargeBackAmountSpecified; - - /// - public int refundChargeBackCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundChargeBackCountSpecified; - - /// - public decimal chargeReturnedItemsAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeReturnedItemsAmountSpecified; - - /// - public int chargeReturnedItemsCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool chargeReturnedItemsCountSpecified; - - /// - public decimal refundReturnedItemsAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundReturnedItemsAmountSpecified; - - /// - public int refundReturnedItemsCount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool refundReturnedItemsCountSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class orderExType : orderType { - - /// - public string purchaseOrderNumber; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class orderType { - - /// - public string invoiceNumber; - - /// - public string description; - - /// - public decimal discountAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountAmountSpecified; - - /// - public bool taxIsAfterDiscount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIsAfterDiscountSpecified; - - /// - public string totalTaxTypeCode; - - /// - public string purchaserVATRegistrationNumber; - - /// - public string merchantVATRegistrationNumber; - - /// - public string vatInvoiceReferenceNumber; - - /// - public string purchaserCode; - - /// - public string summaryCommodityCode; - - /// - [System.Xml.Serialization.XmlElementAttribute(DataType="date")] - public System.DateTime purchaseOrderDateUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool purchaseOrderDateUTCSpecified; - - /// - public string supplierOrderReference; - - /// - public string authorizedContactName; - - /// - public string cardAcceptorRefNumber; - - /// - public string amexDataTAA1; - - /// - public string amexDataTAA2; - - /// - public string amexDataTAA3; - - /// - public string amexDataTAA4; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class extendedAmountType { - - /// - public decimal amount; - - /// - public string name; - - /// - public string description; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class lineItemType { - - /// - public string itemId; - - /// - public string name; - - /// - public string description; - - /// - public decimal quantity; - - /// - public decimal unitPrice; - - /// - public bool taxable; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxableSpecified; - - /// - public string unitOfMeasure; - - /// - public string typeOfSupply; - - /// - public decimal taxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxRateSpecified; - - /// - public decimal taxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxAmountSpecified; - - /// - public decimal nationalTax; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool nationalTaxSpecified; - - /// - public decimal localTax; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool localTaxSpecified; - - /// - public decimal vatRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatRateSpecified; - - /// - public string alternateTaxId; - - /// - public string alternateTaxType; - - /// - public string alternateTaxTypeApplied; - - /// - public decimal alternateTaxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxRateSpecified; - - /// - public decimal alternateTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxAmountSpecified; - - /// - public decimal totalAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalAmountSpecified; - - /// - public string commodityCode; - - /// - public string productCode; - - /// - public string productSKU; - - /// - public decimal discountRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountRateSpecified; - - /// - public decimal discountAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool discountAmountSpecified; - - /// - public bool taxIncludedInTotal; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIncludedInTotalSpecified; - - /// - public bool taxIsAfterDiscount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxIsAfterDiscountSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerDataType { - - /// - public customerTypeEnum type; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool typeSpecified; - - /// - public string id; - - /// - public string email; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum customerTypeEnum { - - /// - individual, - - /// - business, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class driversLicenseType { - - /// - public string number; - - /// - public string state; - - /// - public string dateOfBirth; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class solutionType { - - /// - public string id; - - /// - public string name; - - /// - public string vendorName; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionDetailsTypeTag { - - /// - public string tagId; - - /// - public string data; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class otherTaxType { - - /// - public decimal nationalTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool nationalTaxAmountSpecified; - - /// - public decimal localTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool localTaxAmountSpecified; - - /// - public decimal alternateTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool alternateTaxAmountSpecified; - - /// - public string alternateTaxId; - - /// - public decimal vatTaxRate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatTaxRateSpecified; - - /// - public decimal vatTaxAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool vatTaxAmountSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransactionType { - - /// - [System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))] - [System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))] - public object Item; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAuthCaptureType : profileTransOrderType { - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransOrderType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public orderExType order; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public bool recurringBilling; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool recurringBillingSpecified; - - /// - public string cardCode; - - /// - public string splitTenderId; - - /// - public processingOptions processingOptions; - - /// - public subsequentAuthInformation subsequentAuthInformation; - - /// - public authorizationIndicatorType authorizationIndicatorType; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class processingOptions { - - /// - public bool isFirstRecurringPayment; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isFirstRecurringPaymentSpecified; - - /// - public bool isFirstSubsequentAuth; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isFirstSubsequentAuthSpecified; - - /// - public bool isSubsequentAuth; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isSubsequentAuthSpecified; - - /// - public bool isStoredCredentials; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isStoredCredentialsSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subsequentAuthInformation { - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - - /// - public merchantInitTransReasonEnum reason; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool reasonSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum merchantInitTransReasonEnum { - - /// - resubmission, - - /// - delayedCharge, - - /// - reauthorization, - - /// - noShow, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class authorizationIndicatorType { - - /// - public authIndicatorEnum authorizationIndicator; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool authorizationIndicatorSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum authIndicatorEnum { - - /// - pre, - - /// - final, - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAmountType { - - /// - public decimal amount; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType shipping; - - /// - public extendedAmountType duty; - - /// - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public lineItemType[] lineItems; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransRefundType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string creditCardNumberMasked; - - /// - public string bankRoutingNumberMasked; - - /// - public string bankAccountNumberMasked; - - /// - public orderExType order; - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransPriorAuthCaptureType : profileTransAmountType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransCaptureOnlyType : profileTransOrderType { - - /// - public string approvalCode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransAuthOnlyType : profileTransOrderType { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class profileTransVoidType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentProfile { - - /// - public string paymentProfileId; - - /// - public string cardCode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfilePaymentType { - - /// - public bool createProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool createProfileSpecified; - - /// - public string customerProfileId; - - /// - public paymentProfile paymentProfile; - - /// - public string shippingProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionRequestType { - - /// - public string transactionType; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public string currencyCode; - - /// - public paymentType payment; - - /// - public customerProfilePaymentType profile; - - /// - public solutionType solution; - - /// - public string callId; - - /// - public string terminalNumber; - - /// - public string authCode; - - /// - public string refTransId; - - /// - public string splitTenderId; - - /// - public orderType order; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)] - public lineItemType[] lineItems; - - /// - public extendedAmountType tax; - - /// - public extendedAmountType duty; - - /// - public extendedAmountType shipping; - - /// - public bool taxExempt; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool taxExemptSpecified; - - /// - public string poNumber; - - /// - public customerDataType customer; - - /// - public customerAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public string customerIP; - - /// - public ccAuthenticationType cardholderAuthentication; - - /// - public transRetailInfoType retail; - - /// - public string employeeId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] transactionSettings; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public userField[] userFields; - - /// - public extendedAmountType surcharge; - - /// - public string merchantDescriptor; - - /// - public subMerchantType subMerchant; - - /// - public extendedAmountType tip; - - /// - public processingOptions processingOptions; - - /// - public subsequentAuthInformation subsequentAuthInformation; - - /// - public otherTaxType otherTax; - - /// - public nameAndAddressType shipFrom; - - /// - public authorizationIndicatorType authorizationIndicatorType; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentType { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))] - [System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))] - [System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))] - [System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))] - [System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))] - [System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))] - public object Item; - - /// - public string dataSource; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class bankAccountType { - - /// - public bankAccountTypeEnum accountType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool accountTypeSpecified; - - /// - public string routingNumber; - - /// - public string accountNumber; - - /// - public string nameOnAccount; - - /// - public echeckTypeEnum echeckType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool echeckTypeSpecified; - - /// - public string bankName; - - /// - public string checkNumber; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardType : creditCardSimpleType { - - /// - public string cardCode; - - /// - public bool isPaymentToken; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isPaymentTokenSpecified; - - /// - public string cryptogram; - - /// - public string tokenRequestorName; - - /// - public string tokenRequestorId; - - /// - public string tokenRequestorEci; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardSimpleType { - - /// - public string cardNumber; - - /// - public string expirationDate; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentEmvType { - - /// - public object emvData; - - /// - public object emvDescriptor; - - /// - public object emvVersion; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class encryptedTrackDataType { - - /// - public KeyBlock FormOfPayment; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyBlock { - - /// - public KeyValue Value; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyValue { - - /// - public EncodingType Encoding; - - /// - public EncryptionAlgorithmType EncryptionAlgorithm; - - /// - public KeyManagementScheme Scheme; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum EncodingType { - - /// - Base64, - - /// - Hex, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum EncryptionAlgorithmType { - - /// - TDES, - - /// - AES, - - /// - RSA, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementScheme { - - /// - public KeyManagementSchemeDUKPT DUKPT; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPT { - - /// - public OperationType Operation; - - /// - public KeyManagementSchemeDUKPTMode Mode; - - /// - public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo; - - /// - public KeyManagementSchemeDUKPTEncryptedData EncryptedData; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum OperationType { - - /// - DECRYPT, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTMode { - - /// - public string PIN; - - /// - public string Data; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTDeviceInfo { - - /// - public string Description; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class KeyManagementSchemeDUKPTEncryptedData { - - /// - public string Value; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class payPalType { - - /// - public string successUrl; - - /// - public string cancelUrl; - - /// - public string paypalLc; - - /// - public string paypalHdrImg; - - /// - public string paypalPayflowcolor; - - /// - public string payerID; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class creditCardTrackType { - - /// - [System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))] - [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] - public string Item; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public ItemChoiceType1 ItemElementName; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)] - public enum ItemChoiceType1 { - - /// - track1, - - /// - track2, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ccAuthenticationType { - - /// - public string authenticationIndicator; - - /// - public string cardholderAuthenticationValue; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transRetailInfoType { - - /// - [System.ComponentModel.DefaultValueAttribute("2")] - public string marketType; - - /// - public string deviceType; - - /// - public string customerSignature; - - /// - public string terminalNumber; - - public transRetailInfoType() { - this.marketType = "2"; - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class settingType { - - /// - public string settingName; - - /// - public string settingValue; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subMerchantType { - - /// - public string identifier; - - /// - public string doingBusinessAs; - - /// - public string paymentServiceProviderName; - - /// - public string paymentServiceFacilitator; - - /// - public string streetAddress; - - /// - public string phone; - - /// - public string email; - - /// - public string postalCode; - - /// - public string city; - - /// - public string regionCode; - - /// - public string countryCode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class mobileDeviceType { - - /// - public string mobileDeviceId; - - /// - public string description; - - /// - public string phoneNumber; - - /// - public string devicePlatform; - - /// - public deviceActivationEnum deviceActivation; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool deviceActivationSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum deviceActivationEnum { - - /// - Activate, - - /// - Disable, - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileBaseType { - - /// - public customerTypeEnum customerType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool customerTypeSpecified; - - /// - public customerAddressType billTo; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public paymentMaskedType payment; - - /// - public driversLicenseMaskedType driversLicense; - - /// - public string taxId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - - /// - public string originalNetworkTransId; - - /// - public decimal originalAuthAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool originalAuthAmountSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class driversLicenseMaskedType { - - /// - public string number; - - /// - public string state; - - /// - public string dateOfBirth; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileType : customerPaymentProfileBaseType { - - /// - public paymentType payment; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public subsequentAuthInformation subsequentAuthInformation; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerPaymentProfileExType : customerPaymentProfileType { - - /// - public string customerPaymentProfileId; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileBaseType { - - /// - public string merchantCustomerId; - - /// - public string description; - - /// - public string email; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileExType : customerProfileBaseType { - - /// - public string customerProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileMaskedType : customerProfileExType { - - /// - [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] - public customerPaymentProfileMaskedType[] paymentProfiles; - - /// - [System.Xml.Serialization.XmlElementAttribute("shipToList")] - public customerAddressExType[] shipToList; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum customerProfileTypeEnum { - - /// - regular, - - /// - guest, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileInfoExType : customerProfileExType { - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class subscriptionCustomerProfileType : customerProfileExType { - - /// - public customerPaymentProfileMaskedType paymentProfile; - - /// - public customerAddressExType shippingProfile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerProfileType : customerProfileBaseType { - - /// - [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] - public customerPaymentProfileType[] paymentProfiles; - - /// - [System.Xml.Serialization.XmlElementAttribute("shipToList")] - public customerAddressType[] shipToList; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBSubscriptionMaskedType { - - /// - public string name; - - /// - public paymentScheduleType paymentSchedule; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public decimal trialAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialAmountSpecified; - - /// - public ARBSubscriptionStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - - /// - public subscriptionCustomerProfileType profile; - - /// - public orderType order; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public arbTransaction[] arbTransactions; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentScheduleType { - - /// - public paymentScheduleTypeInterval interval; - - /// - [System.Xml.Serialization.XmlElementAttribute(DataType="date")] - public System.DateTime startDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool startDateSpecified; - - /// - public short totalOccurrences; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalOccurrencesSpecified; - - /// - public short trialOccurrences; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialOccurrencesSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentScheduleTypeInterval { - - /// - public short length; - - /// - public ARBSubscriptionUnitEnum unit; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBSubscriptionUnitEnum { - - /// - days, - - /// - months, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class arbTransaction { - - /// - public string transId; - - /// - public string response; - - /// - public System.DateTime submitTimeUTC; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool submitTimeUTCSpecified; - - /// - public int payNum; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool payNumSpecified; - - /// - public int attemptNum; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool attemptNumSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class securePaymentContainerErrorType { - - /// - public string code; - - /// - public string description; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class customerType { - - /// - public customerTypeEnum type; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool typeSpecified; - - /// - public string id; - - /// - public string email; - - /// - public string phoneNumber; - - /// - public string faxNumber; - - /// - public driversLicenseType driversLicense; - - /// - public string taxId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentSimpleType { - - /// - [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] - [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))] - public object Item; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class merchantContactType { - - /// - public string merchantName; - - /// - public string merchantAddress; - - /// - public string merchantCity; - - /// - public string merchantState; - - /// - public string merchantZip; - - /// - public string merchantPhone; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ContactDetailType { - - /// - public string email; - - /// - public string firstName; - - /// - public string lastName; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class permissionType { - - /// - public string permissionName; - } - - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ArrayOfSetting { - - /// - [System.Xml.Serialization.XmlElementAttribute("setting")] - public settingType[] setting; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class emailSettingsType : ArrayOfSetting { - - /// - [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")] - public string version; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class fraudInformationType { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable=false)] - public string[] fraudFilterList; - - /// - public string fraudAction; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class transactionSummaryType { - - /// - public string transId; - - /// - public System.DateTime submitTimeUTC; - - /// - public System.DateTime submitTimeLocal; - - /// - public string transactionStatus; - - /// - public string invoiceNumber; - - /// - public string firstName; - - /// - public string lastName; - - /// - public string accountType; - - /// - public string accountNumber; - - /// - public decimal settleAmount; - - /// - public string marketType; - - /// - public string product; - - /// - public string mobileDeviceId; - - /// - public subscriptionPaymentType subscription; - - /// - public bool hasReturnedItems; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool hasReturnedItemsSpecified; - - /// - public fraudInformationType fraudInformation; - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ARBSubscriptionType { - - /// - public string name; - - /// - public paymentScheduleType paymentSchedule; - - /// - public decimal amount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool amountSpecified; - - /// - public decimal trialAmount; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool trialAmountSpecified; - - /// - public paymentType payment; - - /// - public orderType order; - - /// - public customerType customer; - - /// - public nameAndAddressType billTo; - - /// - public nameAndAddressType shipTo; - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class webCheckOutDataTypeToken { - - /// - public string cardNumber; - - /// - public string expirationDate; - - /// - public string cardCode; - - /// - public string zip; - - /// - public string fullName; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class webCheckOutDataType { - - /// - public webCheckOutTypeEnum type; - - /// - public string id; - - /// - public webCheckOutDataTypeToken token; - - /// - public bankAccountType bankToken; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum webCheckOutTypeEnum { - - /// - PAN, - - /// - TOKEN, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class paymentDetails { - - /// - public string currency; - - /// - public string promoCode; - - /// - public string misc; - - /// - public string giftWrap; - - /// - public string discount; - - /// - public string tax; - - /// - public string shippingHandling; - - /// - public string subTotal; - - /// - public string orderID; - - /// - public string amount; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class fingerPrintType { - - /// - public string hashValue; - - /// - public string sequence; - - /// - public string timestamp; - - /// - public string currencyCode; - - /// - public string amount; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class impersonationAuthenticationType { - - /// - public string partnerLoginId; - - /// - public string partnerTransactionKey; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class merchantAuthenticationType { - - /// - public string name; - - /// - [System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))] - [System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))] - [System.Xml.Serialization.XmlElementAttribute("password", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))] - [System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))] - [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] - public object Item; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public ItemChoiceType ItemElementName; - - /// - public string mobileDeviceId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)] - public enum ItemChoiceType { - - /// - accessToken, - - /// - clientKey, - - /// - fingerPrint, - - /// - impersonationAuthentication, - - /// - password, - - /// - sessionToken, - - /// - transactionKey, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public partial class ANetApiRequest { - - /// - public merchantAuthenticationType merchantAuthentication; - - /// - public string clientId; - - /// - public string refId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class decryptPaymentDataResponse : ANetApiResponse { - - /// - public customerAddressType shippingInfo; - - /// - public customerAddressType billingInfo; - - /// - public creditCardMaskedType cardInfo; - - /// - public paymentDetails paymentDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ANetApiResponse { - - /// - public string refId; - - /// - public messagesType messages; - - /// - public string sessionToken; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class securePaymentContainerRequest : ANetApiRequest { - - /// - public webCheckOutDataType data; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class securePaymentContainerResponse : ANetApiResponse { - - /// - public opaqueDataType opaqueData; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class isAliveRequest { - - /// - public string refId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class isAliveResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class authenticateTestRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class authenticateTestResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCreateSubscriptionRequest : ANetApiRequest { - - /// - public ARBSubscriptionType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCreateSubscriptionResponse : ANetApiResponse { - - /// - public string subscriptionId; - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBUpdateSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - - /// - public ARBSubscriptionType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBUpdateSubscriptionResponse : ANetApiResponse { - - /// - public customerProfileIdType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCancelSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBCancelSubscriptionResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest { - - /// - public string subscriptionId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse { - - /// - public ARBSubscriptionStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileRequest : ANetApiRequest { - - /// - public customerProfileType profile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum validationModeEnum { - - /// - none, - - /// - testMode, - - /// - liveMode, - - /// - oldLiveMode, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerPaymentProfileIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] customerShippingAddressIdList; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] - public string[] validationDirectResponseList; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerPaymentProfileType paymentProfile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string validationDirectResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerAddressType address; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerShippingAddressResponse : ANetApiResponse { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest { - - /// - public string transId; - - /// - public customerProfileBaseType customer; - - /// - public string customerProfileId; - - /// - public bool defaultPaymentProfile; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultPaymentProfileSpecified; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - - /// - public customerProfileTypeEnum profileType; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool profileTypeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string merchantCustomerId; - - /// - public string email; - - /// - public bool unmaskExpirationDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool unmaskExpirationDateSpecified; - - /// - public bool includeIssuerInfo; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeIssuerInfoSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileResponse : ANetApiResponse { - - /// - public customerProfileMaskedType profile; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public bool unmaskExpirationDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool unmaskExpirationDateSpecified; - - /// - public bool includeIssuerInfo; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeIssuerInfoSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public customerPaymentProfileMaskedType paymentProfile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerShippingAddressResponse : ANetApiResponse { - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - - /// - public customerAddressExType address; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)] - public string[] subscriptionIds; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerProfileRequest : ANetApiRequest { - - /// - public customerProfileExType profile; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerPaymentProfileExType paymentProfile; - - /// - public validationModeEnum validationMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool validationModeSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string validationDirectResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public customerAddressExType address; - - /// - public bool defaultShippingAddress; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool defaultShippingAddressSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateCustomerShippingAddressResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerShippingAddressRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerAddressId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class deleteCustomerShippingAddressResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileTransactionRequest : ANetApiRequest { - - /// - public profileTransactionType transaction; - - /// - public string extraOptions; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createCustomerProfileTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - - /// - public string directResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class validateCustomerPaymentProfileRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public string customerShippingAddressId; - - /// - public string cardCode; - - /// - public validationModeEnum validationMode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class validateCustomerPaymentProfileResponse : ANetApiResponse { - - /// - public string directResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileIdsRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerProfileIdsResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)] - public string[] ids; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateSplitTenderGroupRequest : ANetApiRequest { - - /// - public string splitTenderId; - - /// - public splitTenderStatusEnum splitTenderStatus; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum splitTenderStatusEnum { - - /// - completed, - - /// - held, - - /// - voided, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateSplitTenderGroupResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionDetailsRequest : ANetApiRequest { - - /// - public string transId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionDetailsResponse : ANetApiResponse { - - /// - public transactionDetailsType transaction; - - /// - public string clientId; - - /// - public string transrefId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createTransactionRequest : ANetApiRequest { - - /// - public transactionRequestType transactionRequest; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class createTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - - /// - public createProfileResponse profileResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateHeldTransactionRequest : ANetApiRequest { - - /// - public heldTransactionRequestType heldTransactionRequest; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateHeldTransactionResponse : ANetApiResponse { - - /// - public transactionResponse transactionResponse; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getBatchStatisticsRequest : ANetApiRequest { - - /// - public string batchId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getBatchStatisticsResponse : ANetApiResponse { - - /// - public batchDetailsType batch; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getSettledBatchListRequest : ANetApiRequest { - - /// - public bool includeStatistics; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeStatisticsSpecified; - - /// - public System.DateTime firstSettlementDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool firstSettlementDateSpecified; - - /// - public System.DateTime lastSettlementDate; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool lastSettlementDateSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getSettledBatchListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable=false)] - public batchDetailsType[] batchList; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListRequest : ANetApiRequest { - - /// - public string batchId; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)] - public transactionSummaryType[] transactions; - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedProfilePageRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] hostedProfileSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedProfilePageResponse : ANetApiResponse { - - /// - public string token; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getUnsettledTransactionListRequest : ANetApiRequest { - - /// - public TransactionGroupStatusEnum status; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool statusSpecified; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum TransactionGroupStatusEnum { - - /// - any, - - /// - pendingApproval, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedPaymentPageRequest : ANetApiRequest { - - /// - public transactionRequestType transactionRequest; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)] - public settingType[] hostedPaymentSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getHostedPaymentPageResponse : ANetApiResponse { - - /// - public string token; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getUnsettledTransactionListResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)] - public transactionSummaryType[] transactions; - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceRegistrationRequest : ANetApiRequest { - - /// - public mobileDeviceType mobileDevice; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceRegistrationResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceLoginRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class mobileDeviceLoginResponse : ANetApiResponse { - - /// - public merchantContactType merchantContact; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable=false)] - public permissionType[] userPermissions; - - /// - public transRetailInfoType merchantAccount; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class logoutRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class logoutResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest { - - /// - public string transId; - - /// - public string customerEmail; - - /// - public emailSettingsType emailSettings; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionListRequest : ANetApiRequest { - - /// - public ARBGetSubscriptionListSearchTypeEnum searchType; - - /// - public ARBGetSubscriptionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum ARBGetSubscriptionListSearchTypeEnum { - - /// - cardExpiringThisMonth, - - /// - subscriptionActive, - - /// - subscriptionExpiringThisMonth, - - /// - subscriptionInactive, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionListResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")] - public SubscriptionDetail[] subscriptionDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class EnumCollection { - - /// - public customerProfileSummaryType customerProfileSummaryType; - - /// - public paymentSimpleType paymentSimpleType; - - /// - public accountTypeEnum accountTypeEnum; - - /// - public cardTypeEnum cardTypeEnum; - - /// - public FDSFilterActionEnum FDSFilterActionEnum; - - /// - public permissionsEnum permissionsEnum; - - /// - public settingNameEnum settingNameEnum; - - /// - public settlementStateEnum settlementStateEnum; - - /// - public transactionStatusEnum transactionStatusEnum; - - /// - public transactionTypeEnum transactionTypeEnum; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum accountTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - AmericanExpress, - - /// - Discover, - - /// - JCB, - - /// - DinersClub, - - /// - eCheck, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum cardTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - AmericanExpress, - - /// - Discover, - - /// - JCB, - - /// - DinersClub, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum FDSFilterActionEnum { - - /// - reject, - - /// - decline, - - /// - hold, - - /// - authAndHold, - - /// - report, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum permissionsEnum { - - /// - API_Merchant_BasicReporting, - - /// - Submit_Charge, - - /// - Submit_Refund, - - /// - Submit_Update, - - /// - Mobile_Admin, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum settingNameEnum { - - /// - emailCustomer, - - /// - merchantEmail, - - /// - allowPartialAuth, - - /// - headerEmailReceipt, - - /// - footerEmailReceipt, - - /// - recurringBilling, - - /// - duplicateWindow, - - /// - testRequest, - - /// - hostedProfileReturnUrl, - - /// - hostedProfileReturnUrlText, - - /// - hostedProfilePageBorderVisible, - - /// - hostedProfileIFrameCommunicatorUrl, - - /// - hostedProfileHeadingBgColor, - - /// - hostedProfileValidationMode, - - /// - hostedProfileBillingAddressRequired, - - /// - hostedProfileCardCodeRequired, - - /// - hostedProfileBillingAddressOptions, - - /// - hostedProfileManageOptions, - - /// - hostedPaymentIFrameCommunicatorUrl, - - /// - hostedPaymentButtonOptions, - - /// - hostedPaymentReturnOptions, - - /// - hostedPaymentOrderOptions, - - /// - hostedPaymentPaymentOptions, - - /// - hostedPaymentBillingAddressOptions, - - /// - hostedPaymentShippingAddressOptions, - - /// - hostedPaymentSecurityOptions, - - /// - hostedPaymentCustomerOptions, - - /// - hostedPaymentStyleOptions, - - /// - typeEmailReceipt, - - /// - hostedProfilePaymentOptions, - - /// - hostedProfileSaveButtonText, - - /// - hostedPaymentVisaCheckoutOptions, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum settlementStateEnum { - - /// - settledSuccessfully, - - /// - settlementError, - - /// - pendingSettlement, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum transactionStatusEnum { - - /// - authorizedPendingCapture, - - /// - capturedPendingSettlement, - - /// - communicationError, - - /// - refundSettledSuccessfully, - - /// - refundPendingSettlement, - - /// - approvedReview, - - /// - declined, - - /// - couldNotVoid, - - /// - expired, - - /// - generalError, - - /// - pendingFinalSettlement, - - /// - pendingSettlement, - - /// - failedReview, - - /// - settledSuccessfully, - - /// - settlementError, - - /// - underReview, - - /// - updatingSettlement, - - /// - voided, - - /// - FDSPendingReview, - - /// - FDSAuthorizedPendingReview, - - /// - returnedItem, - - /// - chargeback, - - /// - chargebackReversal, - - /// - authorizedPendingRelease, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum transactionTypeEnum { - - /// - authOnlyTransaction, - - /// - authCaptureTransaction, - - /// - captureOnlyTransaction, - - /// - refundTransaction, - - /// - priorAuthCaptureTransaction, - - /// - voidTransaction, - - /// - getDetailsTransaction, - - /// - authOnlyContinueTransaction, - - /// - authCaptureContinueTransaction, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileListRequest : ANetApiRequest { - - /// - public CustomerPaymentProfileSearchTypeEnum searchType; - - /// - public string month; - - /// - public CustomerPaymentProfileSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum CustomerPaymentProfileSearchTypeEnum { - - /// - cardsExpiringInMonth, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileListResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")] - public customerPaymentProfileListItemType[] paymentProfiles; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionRequest : ANetApiRequest { - - /// - public string subscriptionId; - - /// - public bool includeTransactions; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool includeTransactionsSpecified; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class ARBGetSubscriptionResponse : ANetApiResponse { - - /// - public ARBSubscriptionMaskedType subscription; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getTransactionListForCustomerRequest : ANetApiRequest { - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - - /// - public TransactionListSorting sorting; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobSummaryRequest : ANetApiRequest { - - /// - public string month; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobSummaryResponse : ANetApiResponse { - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable=false)] - public auResponseType[] auSummary; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobDetailsRequest : ANetApiRequest { - - /// - public string month; - - /// - public AUJobTypeEnum modifiedTypeFilter; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool modifiedTypeFilterSpecified; - - /// - public Paging paging; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum AUJobTypeEnum { - - /// - all, - - /// - updates, - - /// - deletes, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getAUJobDetailsResponse : ANetApiResponse { - - /// - public int totalNumInResultSet; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool totalNumInResultSetSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)] - [System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)] - public auDetailsType[] auDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getMerchantDetailsRequest : ANetApiRequest { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getMerchantDetailsResponse : ANetApiResponse { - - /// - public bool isTestMode; - - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool isTestModeSpecified; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("processor")] - public processorType[] processors; - - /// - public string merchantName; - - /// - public string gatewayId; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("marketType")] - public string[] marketTypes; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("productCode")] - public string[] productCodes; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")] - public System.Nullable[] paymentMethods; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("currency")] - public string[] currencies; - - /// - public string publicClientKey; - - /// - public customerAddressType businessInformation; - - /// - public string merchantTimeZone; - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable=false)] - public ContactDetailType[] contactDetails; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - public enum paymentMethodsTypeEnum { - - /// - Visa, - - /// - MasterCard, - - /// - Discover, - - /// - AmericanExpress, - - /// - DinersClub, - - /// - JCB, - - /// - EnRoute, - - /// - Echeck, - - /// - Paypal, - - /// - VisaCheckout, - - /// - ApplePay, - - /// - AndroidPay, - - /// - GooglePay, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateMerchantDetailsRequest : ANetApiRequest { - - /// - public bool isTestMode; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class updateMerchantDetailsResponse : ANetApiResponse { - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest { - - /// - public string connectedAccessToken; - - /// - public string customerProfileId; - - /// - public string customerPaymentProfileId; - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")] - [System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)] - public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse { - - /// - public opaqueDataType opaqueData; - } +// +namespace AuthorizeNet.APICore +{ + using System.Xml.Serialization; + + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class decryptPaymentDataRequest : ANetApiRequest + { + + /// + public opaqueDataType opaqueData; + + /// + public string callId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class opaqueDataType + { + + /// + public string dataDescriptor; + + /// + public string dataValue; + + /// + public string dataKey; + + /// + public System.DateTime expirationTimeStamp; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool expirationTimeStampSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class processorType + { + + /// + public string name; + + /// + public int id; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("cardType")] + public string[] cardTypes; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auDetailsType + { + + /// + public long customerProfileID; + + /// + public long customerPaymentProfileID; + + /// + public string firstName; + + /// + public string lastName; + + /// + public string updateTimeUTC; + + /// + public string auReasonCode; + + /// + public string reasonDescription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auDeleteType : auDetailsType + { + + /// + public creditCardMaskedType creditCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardMaskedType + { + + /// + public string cardNumber; + + /// + public string expirationDate; + + /// + public string cardType; + + /// + public cardArt cardArt; + + /// + public string issuerNumber; + + /// + public bool isPaymentToken; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isPaymentTokenSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class cardArt + { + + /// + public string cardBrand; + + /// + public string cardImageHeight; + + /// + public string cardImageUrl; + + /// + public string cardImageWidth; + + /// + public string cardType; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auUpdateType : auDetailsType + { + + /// + public creditCardMaskedType newCreditCard; + + /// + public creditCardMaskedType oldCreditCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class auResponseType + { + + /// + public string auReasonCode; + + /// + public long profileCount; + + /// + public string reasonDescription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileListItemType + { + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public int customerPaymentProfileId; + + /// + public int customerProfileId; + + /// + public customerAddressType billTo; + + /// + public paymentMaskedType payment; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerAddressType : nameAndAddressType + { + + /// + public string phoneNumber; + + /// + public string faxNumber; + + /// + public string email; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class nameAndAddressType + { + + /// + public string firstName; + + /// + public string lastName; + + /// + public string company; + + /// + public string address; + + /// + public string city; + + /// + public string state; + + /// + public string zip; + + /// + public string country; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerAddressExType : customerAddressType + { + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentMaskedType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))] + [System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))] + public object Item; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class bankAccountMaskedType + { + + /// + public bankAccountTypeEnum accountType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool accountTypeSpecified; + + /// + public string routingNumber; + + /// + public string accountNumber; + + /// + public string nameOnAccount; + + /// + public echeckTypeEnum echeckType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool echeckTypeSpecified; + + /// + public string bankName; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum bankAccountTypeEnum + { + + /// + checking, + + /// + savings, + + /// + businessChecking, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum echeckTypeEnum + { + + /// + PPD, + + /// + WEB, + + /// + CCD, + + /// + TEL, + + /// + ARC, + + /// + BOC, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class tokenMaskedType + { + + /// + public string tokenSource; + + /// + public string tokenNumber; + + /// + public string expirationDate; + + /// + public string tokenRequestorId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class CustomerPaymentProfileSorting + { + + /// + public CustomerPaymentProfileOrderFieldEnum orderBy; + + /// + public bool orderDescending; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum CustomerPaymentProfileOrderFieldEnum + { + + /// + id, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileSummaryType + { + + /// + public string customerProfileId; + + /// + public string description; + + /// + public string merchantCustomerId; + + /// + public string email; + + /// + public System.DateTime createdDate; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class SubscriptionDetail + { + + /// + public int id; + + /// + public string name; + + /// + public ARBSubscriptionStatusEnum status; + + /// + public System.DateTime createTimeStampUTC; + + /// + public string firstName; + + /// + public string lastName; + + /// + public int totalOccurrences; + + /// + public int pastOccurrences; + + /// + public paymentMethodEnum paymentMethod; + + /// + public string accountNumber; + + /// + public string invoice; + + /// + public decimal amount; + + /// + public string currencyCode; + + /// + public int customerProfileId; + + /// + public int customerPaymentProfileId; + + /// + public int customerShippingProfileId; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool customerShippingProfileIdSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBSubscriptionStatusEnum + { + + /// + active, + + /// + expired, + + /// + suspended, + + /// + canceled, + + /// + terminated, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum paymentMethodEnum + { + + /// + creditCard, + + /// + eCheck, + + /// + payPal, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBGetSubscriptionListSorting + { + + /// + public ARBGetSubscriptionListOrderFieldEnum orderBy; + + /// + public bool orderDescending; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBGetSubscriptionListOrderFieldEnum + { + + /// + id, + + /// + name, + + /// + status, + + /// + createTimeStampUTC, + + /// + lastName, + + /// + firstName, + + /// + accountNumber, + + /// + amount, + + /// + pastOccurrences, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class Paging + { + + /// + public int limit; + + /// + public int offset; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class TransactionListSorting + { + + /// + public TransactionListOrderFieldEnum orderBy; + + /// + public bool orderDescending; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum TransactionListOrderFieldEnum + { + + /// + id, + + /// + submitTimeUTC, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class heldTransactionRequestType + { + + /// + public afdsTransactionEnum action; + + /// + public string refTransId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum afdsTransactionEnum + { + + /// + approve, + + /// + decline, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class createProfileResponse + { + + /// + public messagesType messages; + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerPaymentProfileIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerShippingAddressIdList; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class messagesType + { + + /// + public messageTypeEnum resultCode; + + /// + [System.Xml.Serialization.XmlElementAttribute("message")] + public messagesTypeMessage[] message; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum messageTypeEnum + { + + /// + Ok, + + /// + Error, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class messagesTypeMessage + { + + /// + public string code; + + /// + public string text; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponse + { + + /// + public string responseCode; + + /// + public string rawResponseCode; + + /// + public string authCode; + + /// + public string avsResultCode; + + /// + public string cvvResultCode; + + /// + public string cavvResultCode; + + /// + public string transId; + + /// + public string refTransID; + + /// + public string transHash; + + /// + public string testRequest; + + /// + public string accountNumber; + + /// + public string entryMode; + + /// + public string accountType; + + /// + public string splitTenderId; + + /// + public transactionResponsePrePaidCard prePaidCard; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable = false)] + public transactionResponseMessage[] messages; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable = false)] + public transactionResponseError[] errors; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable = false)] + public transactionResponseSplitTenderPayment[] splitTenderPayments; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public userField[] userFields; + + /// + public nameAndAddressType shipTo; + + /// + public transactionResponseSecureAcceptance secureAcceptance; + + /// + public transactionResponseEmvResponse emvResponse; + + /// + public string transHashSha2; + + /// + public customerProfileIdType profile; + + /// + public string networkTransId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponsePrePaidCard + { + + /// + public string requestedAmount; + + /// + public string approvedAmount; + + /// + public string balanceOnCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseMessage + { + + /// + public string code; + + /// + public string description; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseError + { + + /// + public string errorCode; + + /// + public string errorText; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseSplitTenderPayment + { + + /// + public string transId; + + /// + public string responseCode; + + /// + public string responseToCustomer; + + /// + public string authCode; + + /// + public string accountNumber; + + /// + public string accountType; + + /// + public string requestedAmount; + + /// + public string approvedAmount; + + /// + public string balanceOnCard; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class userField + { + + /// + public string name; + + /// + public string value; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseSecureAcceptance + { + + /// + public string SecureAcceptanceUrl; + + /// + public string PayerID; + + /// + public string PayerEmail; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionResponseEmvResponse + { + + /// + public string tlvData; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable = false)] + public emvTag[] tags; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class emvTag + { + + /// + public string name; + + /// + public string value; + + /// + public string formatted; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileIdType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class returnedItemType + { + + /// + public string id; + + /// + public System.DateTime dateUTC; + + /// + public System.DateTime dateLocal; + + /// + public string code; + + /// + public string description; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionDetailsType + { + + /// + public string transId; + + /// + public string refTransId; + + /// + public string splitTenderId; + + /// + public System.DateTime submitTimeUTC; + + /// + public System.DateTime submitTimeLocal; + + /// + public string transactionType; + + /// + public string transactionStatus; + + /// + public int responseCode; + + /// + public int responseReasonCode; + + /// + public subscriptionPaymentType subscription; + + /// + public string responseReasonDescription; + + /// + public string authCode; + + /// + public string AVSResponse; + + /// + public string cardCodeResponse; + + /// + public string CAVVResponse; + + /// + public string FDSFilterAction; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable = false)] + public FDSFilterType[] FDSFilters; + + /// + public batchDetailsType batch; + + /// + public orderExType order; + + /// + public decimal requestedAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool requestedAmountSpecified; + + /// + public decimal authAmount; + + /// + public decimal settleAmount; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType shipping; + + /// + public extendedAmountType duty; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable = false)] + public lineItemType[] lineItems; + + /// + public decimal prepaidBalanceRemaining; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool prepaidBalanceRemainingSpecified; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public paymentMaskedType payment; + + /// + public customerDataType customer; + + /// + public customerAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public bool recurringBilling; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool recurringBillingSpecified; + + /// + public string customerIP; + + /// + public string product; + + /// + public string entryMode; + + /// + public string marketType; + + /// + public string mobileDeviceId; + + /// + public string customerSignature; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable = false)] + public returnedItemType[] returnedItems; + + /// + public solutionType solution; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable = false)] + public transactionDetailsTypeTag[] emvDetails; + + /// + public customerProfileIdType profile; + + /// + public extendedAmountType surcharge; + + /// + public string employeeId; + + /// + public extendedAmountType tip; + + /// + public otherTaxType otherTax; + + /// + public nameAndAddressType shipFrom; + + /// + public string networkTransId; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + + /// + public string authorizationIndicator; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subscriptionPaymentType + { + + /// + public int id; + + /// + public int payNum; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class FDSFilterType + { + + /// + public string name; + + /// + public string action; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class batchDetailsType + { + + /// + public string batchId; + + /// + public System.DateTime settlementTimeUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool settlementTimeUTCSpecified; + + /// + public System.DateTime settlementTimeLocal; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool settlementTimeLocalSpecified; + + /// + public string settlementState; + + /// + public string paymentMethod; + + /// + public string marketType; + + /// + public string product; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable = false)] + public batchStatisticType[] statistics; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class batchStatisticType + { + + /// + public string accountType; + + /// + public decimal chargeAmount; + + /// + public int chargeCount; + + /// + public decimal refundAmount; + + /// + public int refundCount; + + /// + public int voidCount; + + /// + public int declineCount; + + /// + public int errorCount; + + /// + public decimal returnedItemAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool returnedItemAmountSpecified; + + /// + public int returnedItemCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool returnedItemCountSpecified; + + /// + public decimal chargebackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargebackAmountSpecified; + + /// + public int chargebackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargebackCountSpecified; + + /// + public int correctionNoticeCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool correctionNoticeCountSpecified; + + /// + public decimal chargeChargeBackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeChargeBackAmountSpecified; + + /// + public int chargeChargeBackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeChargeBackCountSpecified; + + /// + public decimal refundChargeBackAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundChargeBackAmountSpecified; + + /// + public int refundChargeBackCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundChargeBackCountSpecified; + + /// + public decimal chargeReturnedItemsAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeReturnedItemsAmountSpecified; + + /// + public int chargeReturnedItemsCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool chargeReturnedItemsCountSpecified; + + /// + public decimal refundReturnedItemsAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundReturnedItemsAmountSpecified; + + /// + public int refundReturnedItemsCount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool refundReturnedItemsCountSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class orderExType : orderType + { + + /// + public string purchaseOrderNumber; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class orderType + { + + /// + public string invoiceNumber; + + /// + public string description; + + /// + public decimal discountAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountAmountSpecified; + + /// + public bool taxIsAfterDiscount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIsAfterDiscountSpecified; + + /// + public string totalTaxTypeCode; + + /// + public string purchaserVATRegistrationNumber; + + /// + public string merchantVATRegistrationNumber; + + /// + public string vatInvoiceReferenceNumber; + + /// + public string purchaserCode; + + /// + public string summaryCommodityCode; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "date")] + public System.DateTime purchaseOrderDateUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool purchaseOrderDateUTCSpecified; + + /// + public string supplierOrderReference; + + /// + public string authorizedContactName; + + /// + public string cardAcceptorRefNumber; + + /// + public string amexDataTAA1; + + /// + public string amexDataTAA2; + + /// + public string amexDataTAA3; + + /// + public string amexDataTAA4; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class extendedAmountType + { + + /// + public decimal amount; + + /// + public string name; + + /// + public string description; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class lineItemType + { + + /// + public string itemId; + + /// + public string name; + + /// + public string description; + + /// + public decimal quantity; + + /// + public decimal unitPrice; + + /// + public bool taxable; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxableSpecified; + + /// + public string unitOfMeasure; + + /// + public string typeOfSupply; + + /// + public decimal taxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxRateSpecified; + + /// + public decimal taxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxAmountSpecified; + + /// + public decimal nationalTax; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool nationalTaxSpecified; + + /// + public decimal localTax; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool localTaxSpecified; + + /// + public decimal vatRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatRateSpecified; + + /// + public string alternateTaxId; + + /// + public string alternateTaxType; + + /// + public string alternateTaxTypeApplied; + + /// + public decimal alternateTaxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxRateSpecified; + + /// + public decimal alternateTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxAmountSpecified; + + /// + public decimal totalAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalAmountSpecified; + + /// + public string commodityCode; + + /// + public string productCode; + + /// + public string productSKU; + + /// + public decimal discountRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountRateSpecified; + + /// + public decimal discountAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool discountAmountSpecified; + + /// + public bool taxIncludedInTotal; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIncludedInTotalSpecified; + + /// + public bool taxIsAfterDiscount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxIsAfterDiscountSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerDataType + { + + /// + public customerTypeEnum type; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool typeSpecified; + + /// + public string id; + + /// + public string email; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum customerTypeEnum + { + + /// + individual, + + /// + business, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class driversLicenseType + { + + /// + public string number; + + /// + public string state; + + /// + public string dateOfBirth; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class solutionType + { + + /// + public string id; + + /// + public string name; + + /// + public string vendorName; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionDetailsTypeTag + { + + /// + public string tagId; + + /// + public string data; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class otherTaxType + { + + /// + public decimal nationalTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool nationalTaxAmountSpecified; + + /// + public decimal localTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool localTaxAmountSpecified; + + /// + public decimal alternateTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool alternateTaxAmountSpecified; + + /// + public string alternateTaxId; + + /// + public decimal vatTaxRate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatTaxRateSpecified; + + /// + public decimal vatTaxAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool vatTaxAmountSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransactionType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))] + [System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))] + public object Item; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAuthCaptureType : profileTransOrderType + { + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransOrderType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public orderExType order; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public bool recurringBilling; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool recurringBillingSpecified; + + /// + public string cardCode; + + /// + public string splitTenderId; + + /// + public processingOptions processingOptions; + + /// + public subsequentAuthInformation subsequentAuthInformation; + + /// + public authorizationIndicatorType authorizationIndicatorType; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class processingOptions + { + + /// + public bool isFirstRecurringPayment; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isFirstRecurringPaymentSpecified; + + /// + public bool isFirstSubsequentAuth; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isFirstSubsequentAuthSpecified; + + /// + public bool isSubsequentAuth; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isSubsequentAuthSpecified; + + /// + public bool isStoredCredentials; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isStoredCredentialsSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subsequentAuthInformation + { + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + + /// + public merchantInitTransReasonEnum reason; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool reasonSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum merchantInitTransReasonEnum + { + + /// + resubmission, + + /// + delayedCharge, + + /// + reauthorization, + + /// + noShow, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class authorizationIndicatorType + { + + /// + public authIndicatorEnum authorizationIndicator; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool authorizationIndicatorSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum authIndicatorEnum + { + + /// + pre, + + /// + final, + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAmountType + { + + /// + public decimal amount; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType shipping; + + /// + public extendedAmountType duty; + + /// + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public lineItemType[] lineItems; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransRefundType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string creditCardNumberMasked; + + /// + public string bankRoutingNumberMasked; + + /// + public string bankAccountNumberMasked; + + /// + public orderExType order; + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransPriorAuthCaptureType : profileTransAmountType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransCaptureOnlyType : profileTransOrderType + { + + /// + public string approvalCode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransAuthOnlyType : profileTransOrderType + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class profileTransVoidType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentProfile + { + + /// + public string paymentProfileId; + + /// + public string cardCode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfilePaymentType + { + + /// + public bool createProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool createProfileSpecified; + + /// + public string customerProfileId; + + /// + public paymentProfile paymentProfile; + + /// + public string shippingProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionRequestType + { + + /// + public string transactionType; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public string currencyCode; + + /// + public paymentType payment; + + /// + public customerProfilePaymentType profile; + + /// + public solutionType solution; + + /// + public string callId; + + /// + public string terminalNumber; + + /// + public string authCode; + + /// + public string refTransId; + + /// + public string splitTenderId; + + /// + public orderType order; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable = false)] + public lineItemType[] lineItems; + + /// + public extendedAmountType tax; + + /// + public extendedAmountType duty; + + /// + public extendedAmountType shipping; + + /// + public bool taxExempt; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool taxExemptSpecified; + + /// + public string poNumber; + + /// + public customerDataType customer; + + /// + public customerAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public string customerIP; + + /// + public ccAuthenticationType cardholderAuthentication; + + /// + public transRetailInfoType retail; + + /// + public string employeeId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] transactionSettings; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public userField[] userFields; + + /// + public extendedAmountType surcharge; + + /// + public string merchantDescriptor; + + /// + public subMerchantType subMerchant; + + /// + public extendedAmountType tip; + + /// + public processingOptions processingOptions; + + /// + public subsequentAuthInformation subsequentAuthInformation; + + /// + public otherTaxType otherTax; + + /// + public nameAndAddressType shipFrom; + + /// + public authorizationIndicatorType authorizationIndicatorType; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))] + [System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))] + [System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))] + [System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))] + [System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))] + [System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))] + public object Item; + + /// + public string dataSource; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class bankAccountType + { + + /// + public bankAccountTypeEnum accountType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool accountTypeSpecified; + + /// + public string routingNumber; + + /// + public string accountNumber; + + /// + public string nameOnAccount; + + /// + public echeckTypeEnum echeckType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool echeckTypeSpecified; + + /// + public string bankName; + + /// + public string checkNumber; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardType : creditCardSimpleType + { + + /// + public string cardCode; + + /// + public bool isPaymentToken; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isPaymentTokenSpecified; + + /// + public string cryptogram; + + /// + public string tokenRequestorName; + + /// + public string tokenRequestorId; + + /// + public string tokenRequestorEci; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardSimpleType + { + + /// + public string cardNumber; + + /// + public string expirationDate; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentEmvType + { + + /// + public object emvData; + + /// + public object emvDescriptor; + + /// + public object emvVersion; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class encryptedTrackDataType + { + + /// + public KeyBlock FormOfPayment; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyBlock + { + + /// + public KeyValue Value; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyValue + { + + /// + public EncodingType Encoding; + + /// + public EncryptionAlgorithmType EncryptionAlgorithm; + + /// + public KeyManagementScheme Scheme; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum EncodingType + { + + /// + Base64, + + /// + Hex, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum EncryptionAlgorithmType + { + + /// + TDES, + + /// + AES, + + /// + RSA, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementScheme + { + + /// + public KeyManagementSchemeDUKPT DUKPT; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPT + { + + /// + public OperationType Operation; + + /// + public KeyManagementSchemeDUKPTMode Mode; + + /// + public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo; + + /// + public KeyManagementSchemeDUKPTEncryptedData EncryptedData; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum OperationType + { + + /// + DECRYPT, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTMode + { + + /// + public string PIN; + + /// + public string Data; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTDeviceInfo + { + + /// + public string Description; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class KeyManagementSchemeDUKPTEncryptedData + { + + /// + public string Value; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class payPalType + { + + /// + public string successUrl; + + /// + public string cancelUrl; + + /// + public string paypalLc; + + /// + public string paypalHdrImg; + + /// + public string paypalPayflowcolor; + + /// + public string payerID; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class creditCardTrackType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public string Item; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType1 ItemElementName; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema = false)] + public enum ItemChoiceType1 + { + + /// + track1, + + /// + track2, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ccAuthenticationType + { + + /// + public string authenticationIndicator; + + /// + public string cardholderAuthenticationValue; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transRetailInfoType + { + + /// + [System.ComponentModel.DefaultValueAttribute("2")] + public string marketType; + + /// + public string deviceType; + + /// + public string customerSignature; + + /// + public string terminalNumber; + + public transRetailInfoType() + { + this.marketType = "2"; + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class settingType + { + + /// + public string settingName; + + /// + public string settingValue; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subMerchantType + { + + /// + public string identifier; + + /// + public string doingBusinessAs; + + /// + public string paymentServiceProviderName; + + /// + public string paymentServiceFacilitator; + + /// + public string streetAddress; + + /// + public string phone; + + /// + public string email; + + /// + public string postalCode; + + /// + public string city; + + /// + public string regionCode; + + /// + public string countryCode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class mobileDeviceType + { + + /// + public string mobileDeviceId; + + /// + public string description; + + /// + public string phoneNumber; + + /// + public string devicePlatform; + + /// + public deviceActivationEnum deviceActivation; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deviceActivationSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum deviceActivationEnum + { + + /// + Activate, + + /// + Disable, + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileBaseType + { + + /// + public customerTypeEnum customerType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool customerTypeSpecified; + + /// + public customerAddressType billTo; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public paymentMaskedType payment; + + /// + public driversLicenseMaskedType driversLicense; + + /// + public string taxId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + + /// + public string originalNetworkTransId; + + /// + public decimal originalAuthAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool originalAuthAmountSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class driversLicenseMaskedType + { + + /// + public string number; + + /// + public string state; + + /// + public string dateOfBirth; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileType : customerPaymentProfileBaseType + { + + /// + public paymentType payment; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public subsequentAuthInformation subsequentAuthInformation; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerPaymentProfileExType : customerPaymentProfileType + { + + /// + public string customerPaymentProfileId; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileBaseType + { + + /// + public string merchantCustomerId; + + /// + public string description; + + /// + public string email; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileExType : customerProfileBaseType + { + + /// + public string customerProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileMaskedType : customerProfileExType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] + public customerPaymentProfileMaskedType[] paymentProfiles; + + /// + [System.Xml.Serialization.XmlElementAttribute("shipToList")] + public customerAddressExType[] shipToList; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum customerProfileTypeEnum + { + + /// + regular, + + /// + guest, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileInfoExType : customerProfileExType + { + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class subscriptionCustomerProfileType : customerProfileExType + { + + /// + public customerPaymentProfileMaskedType paymentProfile; + + /// + public customerAddressExType shippingProfile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerProfileType : customerProfileBaseType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("paymentProfiles")] + public customerPaymentProfileType[] paymentProfiles; + + /// + [System.Xml.Serialization.XmlElementAttribute("shipToList")] + public customerAddressType[] shipToList; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBSubscriptionMaskedType + { + + /// + public string name; + + /// + public paymentScheduleType paymentSchedule; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public decimal trialAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialAmountSpecified; + + /// + public ARBSubscriptionStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + + /// + public subscriptionCustomerProfileType profile; + + /// + public orderType order; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public arbTransaction[] arbTransactions; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentScheduleType + { + + /// + public paymentScheduleTypeInterval interval; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "date")] + public System.DateTime startDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool startDateSpecified; + + /// + public short totalOccurrences; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalOccurrencesSpecified; + + /// + public short trialOccurrences; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialOccurrencesSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentScheduleTypeInterval + { + + /// + public short length; + + /// + public ARBSubscriptionUnitEnum unit; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBSubscriptionUnitEnum + { + + /// + days, + + /// + months, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class arbTransaction + { + + /// + public string transId; + + /// + public string response; + + /// + public System.DateTime submitTimeUTC; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool submitTimeUTCSpecified; + + /// + public int payNum; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool payNumSpecified; + + /// + public int attemptNum; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool attemptNumSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class securePaymentContainerErrorType + { + + /// + public string code; + + /// + public string description; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class customerType + { + + /// + public customerTypeEnum type; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool typeSpecified; + + /// + public string id; + + /// + public string email; + + /// + public string phoneNumber; + + /// + public string faxNumber; + + /// + public driversLicenseType driversLicense; + + /// + public string taxId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentSimpleType + { + + /// + [System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))] + [System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))] + public object Item; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class merchantContactType + { + + /// + public string merchantName; + + /// + public string merchantAddress; + + /// + public string merchantCity; + + /// + public string merchantState; + + /// + public string merchantZip; + + /// + public string merchantPhone; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ContactDetailType + { + + /// + public string email; + + /// + public string firstName; + + /// + public string lastName; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class permissionType + { + + /// + public string permissionName; + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ArrayOfSetting + { + + /// + [System.Xml.Serialization.XmlElementAttribute("setting")] + public settingType[] setting; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class emailSettingsType : ArrayOfSetting + { + + /// + [System.Xml.Serialization.XmlAttributeAttribute(DataType = "integer")] + public string version; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class fraudInformationType + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable = false)] + public string[] fraudFilterList; + + /// + public string fraudAction; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class transactionSummaryType + { + + /// + public string transId; + + /// + public System.DateTime submitTimeUTC; + + /// + public System.DateTime submitTimeLocal; + + /// + public string transactionStatus; + + /// + public string invoiceNumber; + + /// + public string firstName; + + /// + public string lastName; + + /// + public string accountType; + + /// + public string accountNumber; + + /// + public decimal settleAmount; + + /// + public string marketType; + + /// + public string product; + + /// + public string mobileDeviceId; + + /// + public subscriptionPaymentType subscription; + + /// + public bool hasReturnedItems; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool hasReturnedItemsSpecified; + + /// + public fraudInformationType fraudInformation; + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ARBSubscriptionType + { + + /// + public string name; + + /// + public paymentScheduleType paymentSchedule; + + /// + public decimal amount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool amountSpecified; + + /// + public decimal trialAmount; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool trialAmountSpecified; + + /// + public paymentType payment; + + /// + public orderType order; + + /// + public customerType customer; + + /// + public nameAndAddressType billTo; + + /// + public nameAndAddressType shipTo; + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class webCheckOutDataTypeToken + { + + /// + public string cardNumber; + + /// + public string expirationDate; + + /// + public string cardCode; + + /// + public string zip; + + /// + public string fullName; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class webCheckOutDataType + { + + /// + public webCheckOutTypeEnum type; + + /// + public string id; + + /// + public webCheckOutDataTypeToken token; + + /// + public bankAccountType bankToken; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum webCheckOutTypeEnum + { + + /// + PAN, + + /// + TOKEN, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class paymentDetails + { + + /// + public string currency; + + /// + public string promoCode; + + /// + public string misc; + + /// + public string giftWrap; + + /// + public string discount; + + /// + public string tax; + + /// + public string shippingHandling; + + /// + public string subTotal; + + /// + public string orderID; + + /// + public string amount; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class fingerPrintType + { + + /// + public string hashValue; + + /// + public string sequence; + + /// + public string timestamp; + + /// + public string currencyCode; + + /// + public string amount; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class impersonationAuthenticationType + { + + /// + public string partnerLoginId; + + /// + public string partnerTransactionKey; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class merchantAuthenticationType + { + + /// + public string name; + + /// + [System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))] + [System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))] + [System.Xml.Serialization.XmlElementAttribute("password", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public object Item; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType ItemElementName; + + /// + public string mobileDeviceId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema = false)] + public enum ItemChoiceType + { + + /// + accessToken, + + /// + clientKey, + + /// + fingerPrint, + + /// + impersonationAuthentication, + + /// + password, + + /// + sessionToken, + + /// + transactionKey, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public partial class ANetApiRequest + { + + /// + public merchantAuthenticationType merchantAuthentication; + + /// + public string clientId; + + /// + public string refId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class decryptPaymentDataResponse : ANetApiResponse + { + + /// + public customerAddressType shippingInfo; + + /// + public customerAddressType billingInfo; + + /// + public creditCardMaskedType cardInfo; + + /// + public paymentDetails paymentDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ANetApiResponse + { + + /// + public string refId; + + /// + public messagesType messages; + + /// + public string sessionToken; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class securePaymentContainerRequest : ANetApiRequest + { + + /// + public webCheckOutDataType data; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class securePaymentContainerResponse : ANetApiResponse + { + + /// + public opaqueDataType opaqueData; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class isAliveRequest + { + + /// + public string refId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class isAliveResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class authenticateTestRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class authenticateTestResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCreateSubscriptionRequest : ANetApiRequest + { + + /// + public ARBSubscriptionType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCreateSubscriptionResponse : ANetApiResponse + { + + /// + public string subscriptionId; + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBUpdateSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + + /// + public ARBSubscriptionType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBUpdateSubscriptionResponse : ANetApiResponse + { + + /// + public customerProfileIdType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCancelSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBCancelSubscriptionResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest + { + + /// + public string subscriptionId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse + { + + /// + public ARBSubscriptionStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileRequest : ANetApiRequest + { + + /// + public customerProfileType profile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum validationModeEnum + { + + /// + none, + + /// + testMode, + + /// + liveMode, + + /// + oldLiveMode, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerPaymentProfileIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] customerShippingAddressIdList; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable = false)] + public string[] validationDirectResponseList; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerPaymentProfileType paymentProfile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string validationDirectResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerAddressType address; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerShippingAddressResponse : ANetApiResponse + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest + { + + /// + public string transId; + + /// + public customerProfileBaseType customer; + + /// + public string customerProfileId; + + /// + public bool defaultPaymentProfile; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultPaymentProfileSpecified; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + + /// + public customerProfileTypeEnum profileType; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool profileTypeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string merchantCustomerId; + + /// + public string email; + + /// + public bool unmaskExpirationDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unmaskExpirationDateSpecified; + + /// + public bool includeIssuerInfo; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeIssuerInfoSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileResponse : ANetApiResponse + { + + /// + public customerProfileMaskedType profile; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public bool unmaskExpirationDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unmaskExpirationDateSpecified; + + /// + public bool includeIssuerInfo; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeIssuerInfoSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public customerPaymentProfileMaskedType paymentProfile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerShippingAddressResponse : ANetApiResponse + { + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + + /// + public customerAddressExType address; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] subscriptionIds; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerProfileRequest : ANetApiRequest + { + + /// + public customerProfileExType profile; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class UpdateCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerPaymentProfileExType paymentProfile; + + /// + public validationModeEnum validationMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool validationModeSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class UpdateCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string validationDirectResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public customerAddressExType address; + + /// + public bool defaultShippingAddress; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool defaultShippingAddressSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateCustomerShippingAddressResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerShippingAddressRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerAddressId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class deleteCustomerShippingAddressResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileTransactionRequest : ANetApiRequest + { + + /// + public profileTransactionType transaction; + + /// + public string extraOptions; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createCustomerProfileTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + + /// + public string directResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class validateCustomerPaymentProfileRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public string customerShippingAddressId; + + /// + public string cardCode; + + /// + public validationModeEnum validationMode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class validateCustomerPaymentProfileResponse : ANetApiResponse + { + + /// + public string directResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileIdsRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerProfileIdsResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable = false)] + public string[] ids; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateSplitTenderGroupRequest : ANetApiRequest + { + + /// + public string splitTenderId; + + /// + public splitTenderStatusEnum splitTenderStatus; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum splitTenderStatusEnum + { + + /// + completed, + + /// + held, + + /// + voided, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateSplitTenderGroupResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionDetailsRequest : ANetApiRequest + { + + /// + public string transId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionDetailsResponse : ANetApiResponse + { + + /// + public transactionDetailsType transaction; + + /// + public string clientId; + + /// + public string transrefId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createTransactionRequest : ANetApiRequest + { + + /// + public transactionRequestType transactionRequest; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class createTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + + /// + public createProfileResponse profileResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateHeldTransactionRequest : ANetApiRequest + { + + /// + public heldTransactionRequestType heldTransactionRequest; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateHeldTransactionResponse : ANetApiResponse + { + + /// + public transactionResponse transactionResponse; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getBatchStatisticsRequest : ANetApiRequest + { + + /// + public string batchId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getBatchStatisticsResponse : ANetApiResponse + { + + /// + public batchDetailsType batch; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getSettledBatchListRequest : ANetApiRequest + { + + /// + public bool includeStatistics; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeStatisticsSpecified; + + /// + public System.DateTime firstSettlementDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool firstSettlementDateSpecified; + + /// + public System.DateTime lastSettlementDate; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool lastSettlementDateSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getSettledBatchListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable = false)] + public batchDetailsType[] batchList; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListRequest : ANetApiRequest + { + + /// + public string batchId; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable = false)] + public transactionSummaryType[] transactions; + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedProfilePageRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] hostedProfileSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedProfilePageResponse : ANetApiResponse + { + + /// + public string token; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getUnsettledTransactionListRequest : ANetApiRequest + { + + /// + public TransactionGroupStatusEnum status; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum TransactionGroupStatusEnum + { + + /// + any, + + /// + pendingApproval, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedPaymentPageRequest : ANetApiRequest + { + + /// + public transactionRequestType transactionRequest; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable = false)] + public settingType[] hostedPaymentSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getHostedPaymentPageResponse : ANetApiResponse + { + + /// + public string token; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getUnsettledTransactionListResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable = false)] + public transactionSummaryType[] transactions; + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceRegistrationRequest : ANetApiRequest + { + + /// + public mobileDeviceType mobileDevice; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceRegistrationResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceLoginRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class mobileDeviceLoginResponse : ANetApiResponse + { + + /// + public merchantContactType merchantContact; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable = false)] + public permissionType[] userPermissions; + + /// + public transRetailInfoType merchantAccount; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class logoutRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class logoutResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest + { + + /// + public string transId; + + /// + public string customerEmail; + + /// + public emailSettingsType emailSettings; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionListRequest : ANetApiRequest + { + + /// + public ARBGetSubscriptionListSearchTypeEnum searchType; + + /// + public ARBGetSubscriptionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum ARBGetSubscriptionListSearchTypeEnum + { + + /// + cardExpiringThisMonth, + + /// + subscriptionActive, + + /// + subscriptionExpiringThisMonth, + + /// + subscriptionInactive, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionListResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")] + public SubscriptionDetail[] subscriptionDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class EnumCollection + { + + /// + public customerProfileSummaryType customerProfileSummaryType; + + /// + public paymentSimpleType paymentSimpleType; + + /// + public accountTypeEnum accountTypeEnum; + + /// + public cardTypeEnum cardTypeEnum; + + /// + public FDSFilterActionEnum FDSFilterActionEnum; + + /// + public permissionsEnum permissionsEnum; + + /// + public settingNameEnum settingNameEnum; + + /// + public settlementStateEnum settlementStateEnum; + + /// + public transactionStatusEnum transactionStatusEnum; + + /// + public transactionTypeEnum transactionTypeEnum; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum accountTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + AmericanExpress, + + /// + Discover, + + /// + JCB, + + /// + DinersClub, + + /// + eCheck, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum cardTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + AmericanExpress, + + /// + Discover, + + /// + JCB, + + /// + DinersClub, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum FDSFilterActionEnum + { + + /// + reject, + + /// + decline, + + /// + hold, + + /// + authAndHold, + + /// + report, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum permissionsEnum + { + + /// + API_Merchant_BasicReporting, + + /// + Submit_Charge, + + /// + Submit_Refund, + + /// + Submit_Update, + + /// + Mobile_Admin, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum settingNameEnum + { + + /// + emailCustomer, + + /// + merchantEmail, + + /// + allowPartialAuth, + + /// + headerEmailReceipt, + + /// + footerEmailReceipt, + + /// + recurringBilling, + + /// + duplicateWindow, + + /// + testRequest, + + /// + hostedProfileReturnUrl, + + /// + hostedProfileReturnUrlText, + + /// + hostedProfilePageBorderVisible, + + /// + hostedProfileIFrameCommunicatorUrl, + + /// + hostedProfileHeadingBgColor, + + /// + hostedProfileValidationMode, + + /// + hostedProfileBillingAddressRequired, + + /// + hostedProfileCardCodeRequired, + + /// + hostedProfileBillingAddressOptions, + + /// + hostedProfileManageOptions, + + /// + hostedPaymentIFrameCommunicatorUrl, + + /// + hostedPaymentButtonOptions, + + /// + hostedPaymentReturnOptions, + + /// + hostedPaymentOrderOptions, + + /// + hostedPaymentPaymentOptions, + + /// + hostedPaymentBillingAddressOptions, + + /// + hostedPaymentShippingAddressOptions, + + /// + hostedPaymentSecurityOptions, + + /// + hostedPaymentCustomerOptions, + + /// + hostedPaymentStyleOptions, + + /// + typeEmailReceipt, + + /// + hostedProfilePaymentOptions, + + /// + hostedProfileSaveButtonText, + + /// + hostedPaymentVisaCheckoutOptions, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum settlementStateEnum + { + + /// + settledSuccessfully, + + /// + settlementError, + + /// + pendingSettlement, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum transactionStatusEnum + { + + /// + authorizedPendingCapture, + + /// + capturedPendingSettlement, + + /// + communicationError, + + /// + refundSettledSuccessfully, + + /// + refundPendingSettlement, + + /// + approvedReview, + + /// + declined, + + /// + couldNotVoid, + + /// + expired, + + /// + generalError, + + /// + pendingFinalSettlement, + + /// + pendingSettlement, + + /// + failedReview, + + /// + settledSuccessfully, + + /// + settlementError, + + /// + underReview, + + /// + updatingSettlement, + + /// + voided, + + /// + FDSPendingReview, + + /// + FDSAuthorizedPendingReview, + + /// + returnedItem, + + /// + chargeback, + + /// + chargebackReversal, + + /// + authorizedPendingRelease, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum transactionTypeEnum + { + + /// + authOnlyTransaction, + + /// + authCaptureTransaction, + + /// + captureOnlyTransaction, + + /// + refundTransaction, + + /// + priorAuthCaptureTransaction, + + /// + voidTransaction, + + /// + getDetailsTransaction, + + /// + authOnlyContinueTransaction, + + /// + authCaptureContinueTransaction, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileListRequest : ANetApiRequest + { + + /// + public CustomerPaymentProfileSearchTypeEnum searchType; + + /// + public string month; + + /// + public CustomerPaymentProfileSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum CustomerPaymentProfileSearchTypeEnum + { + + /// + cardsExpiringInMonth, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileListResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")] + public customerPaymentProfileListItemType[] paymentProfiles; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionRequest : ANetApiRequest + { + + /// + public string subscriptionId; + + /// + public bool includeTransactions; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool includeTransactionsSpecified; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class ARBGetSubscriptionResponse : ANetApiResponse + { + + /// + public ARBSubscriptionMaskedType subscription; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getTransactionListForCustomerRequest : ANetApiRequest + { + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + + /// + public TransactionListSorting sorting; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobSummaryRequest : ANetApiRequest + { + + /// + public string month; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobSummaryResponse : ANetApiResponse + { + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable = false)] + public auResponseType[] auSummary; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobDetailsRequest : ANetApiRequest + { + + /// + public string month; + + /// + public AUJobTypeEnum modifiedTypeFilter; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool modifiedTypeFilterSpecified; + + /// + public Paging paging; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum AUJobTypeEnum + { + + /// + all, + + /// + updates, + + /// + deletes, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getAUJobDetailsResponse : ANetApiResponse + { + + /// + public int totalNumInResultSet; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool totalNumInResultSetSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable = false)] + [System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable = false)] + public auDetailsType[] auDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getMerchantDetailsRequest : ANetApiRequest + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getMerchantDetailsResponse : ANetApiResponse + { + + /// + public bool isTestMode; + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isTestModeSpecified; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("processor")] + public processorType[] processors; + + /// + public string merchantName; + + /// + public string gatewayId; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("marketType")] + public string[] marketTypes; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("productCode")] + public string[] productCodes; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")] + public System.Nullable[] paymentMethods; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("currency")] + public string[] currencies; + + /// + public string publicClientKey; + + /// + public customerAddressType businessInformation; + + /// + public string merchantTimeZone; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable = false)] + public ContactDetailType[] contactDetails; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + public enum paymentMethodsTypeEnum + { + + /// + Visa, + + /// + MasterCard, + + /// + Discover, + + /// + AmericanExpress, + + /// + DinersClub, + + /// + JCB, + + /// + EnRoute, + + /// + Echeck, + + /// + Paypal, + + /// + VisaCheckout, + + /// + ApplePay, + + /// + AndroidPay, + + /// + GooglePay, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateMerchantDetailsRequest : ANetApiRequest + { + + /// + public bool isTestMode; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class updateMerchantDetailsResponse : ANetApiResponse + { + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest + { + + /// + public string connectedAccessToken; + + /// + public string customerProfileId; + + /// + public string customerPaymentProfileId; + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd")] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable = false)] + public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse + { + + /// + public opaqueDataType opaqueData; + } } diff --git a/Authorize.NET/Utility/ApiFields.cs b/Authorize.NET/Utility/ApiFields.cs index b190dc3d..273e8c55 100644 --- a/Authorize.NET/Utility/ApiFields.cs +++ b/Authorize.NET/Utility/ApiFields.cs @@ -1,210 +1,212 @@ -using System; using System.Collections.Generic; namespace AuthorizeNet { - + /// /// These are field names and explanations only /// public class ApiFields { - public const string CardholderAuthenticationValue = "x_cardholder_authentication_value"; - public const string FooterEmailReceipt = "x_footer_email_receipt"; - public const string EncapChar = "x_encap_char"; - public const string HeaderEmailReceipt = "x_header_email_receipt"; - public const string AuthenticationIndicator = "x_authentication_indicator"; - - public const string BankABACode = "x_bank_aba_code"; - public const string BankAcctNum = "x_bank_acct_num"; - public const string BankAcctType = "x_bank_acct_type"; - public const string BankName = "x_bank_name"; - public const string BankAcctName = "x_bank_acct_name"; - public const string EcheckType = "x_echeck_type"; - public const string BankCheckNumber = "x_bank_check_number"; - - - public const string LineItem = "x_line_item"; - public const string ShipToAddress = "x_ship_to_address"; - public const string ShipToCity = "x_ship_to_city"; - public const string ShipToState = "x_ship_to_state"; - public const string ShipToZip = "x_ship_to_zip"; - public const string ShipToCountry = "x_ship_to_country"; - public const string ShipToCompany = "x_ship_to_company"; - public const string ShipToFirstName = "x_ship_to_first_name"; - public const string ShipToLastName = "x_ship_to_last_name"; - public const string TestRequest = "x_test_request"; - - - public const string Type = "x_type"; - public const string Version = "x_version"; - /// + public const string CardholderAuthenticationValue = "x_cardholder_authentication_value"; + public const string FooterEmailReceipt = "x_footer_email_receipt"; + public const string EncapChar = "x_encap_char"; + public const string HeaderEmailReceipt = "x_header_email_receipt"; + public const string AuthenticationIndicator = "x_authentication_indicator"; + + public const string BankABACode = "x_bank_aba_code"; + public const string BankAcctNum = "x_bank_acct_num"; + public const string BankAcctType = "x_bank_acct_type"; + public const string BankName = "x_bank_name"; + public const string BankAcctName = "x_bank_acct_name"; + public const string EcheckType = "x_echeck_type"; + public const string BankCheckNumber = "x_bank_check_number"; + + + public const string LineItem = "x_line_item"; + public const string ShipToAddress = "x_ship_to_address"; + public const string ShipToCity = "x_ship_to_city"; + public const string ShipToState = "x_ship_to_state"; + public const string ShipToZip = "x_ship_to_zip"; + public const string ShipToCountry = "x_ship_to_country"; + public const string ShipToCompany = "x_ship_to_company"; + public const string ShipToFirstName = "x_ship_to_first_name"; + public const string ShipToLastName = "x_ship_to_last_name"; + public const string TestRequest = "x_test_request"; + + + public const string Type = "x_type"; + public const string Version = "x_version"; + /// /// The merchant's unique API Login ID /// public const string ApiLogin = "x_login"; - + /// /// The merchant's unique Transaction Key - /// + /// public const string TransactionKey = "x_tran_key"; - + /// /// True, False /// public const string AllowPartialAuth = "x_allow_partial_Auth"; - + /// /// Whether to return the data in delimited fashion /// public const string DelimitData = "x_delim_data"; - + /// /// If the return from AuthorizeNet is delimited - this is the character to use. Default is pipe /// public const string DelimitCharacter = "x_delim_char"; - - + + /// /// The relay response - leave this set as TRUE /// public const string RelayResponse = "x_relay_response"; - + /// /// The solution ID of your product or integration used for better reporting /// public const string SolutionID = "x_solution_id"; - public ApiFields() { - ApiKeys = new List(); + public ApiFields() + { + ApiKeys = new List + { + "x_login", - ApiKeys.Add("x_login"); + "x_tran_key", - ApiKeys.Add("x_tran_key"); + "x_allow_partial_Auth", - ApiKeys.Add("x_allow_partial_Auth"); + "x_delim_data", - ApiKeys.Add("x_delim_data"); + "x_delim_char", - ApiKeys.Add("x_delim_char"); + "x_relay_response", - ApiKeys.Add("x_relay_response"); + "x_version", - ApiKeys.Add("x_version"); + "x_type", - ApiKeys.Add("x_type"); + "x_method", - ApiKeys.Add("x_method"); + "x_recurring_billing", - ApiKeys.Add("x_recurring_billing"); + "x_amount", - ApiKeys.Add("x_amount"); + "x_card_num", - ApiKeys.Add("x_card_num"); + "x_exp_date", - ApiKeys.Add("x_exp_date"); + "x_card_code", - ApiKeys.Add("x_card_code"); + "x_card_type", - ApiKeys.Add("x_card_type"); + "x_trans_id", - ApiKeys.Add("x_trans_id"); + "x_split_tender", - ApiKeys.Add("x_split_tender"); + "x_auth_code", - ApiKeys.Add("x_auth_code"); + "x_test_request", - ApiKeys.Add("x_test_request"); + "x_duplicate_window", - ApiKeys.Add("x_duplicate_window"); + "x_invoice_num", - ApiKeys.Add("x_invoice_num"); + "x_description", - ApiKeys.Add("x_description"); + "x_first_name", - ApiKeys.Add("x_first_name"); + "x_last_name", - ApiKeys.Add("x_last_name"); + "x_company", - ApiKeys.Add("x_company"); + "x_address", - ApiKeys.Add("x_address"); + "x_city", - ApiKeys.Add("x_city"); + "x_state", - ApiKeys.Add("x_state"); + "x_zip", - ApiKeys.Add("x_zip"); + "x_country", - ApiKeys.Add("x_country"); + "x_phone", - ApiKeys.Add("x_phone"); + "x_fax", - ApiKeys.Add("x_fax"); + "x_email", - ApiKeys.Add("x_email"); + "x_email_customer", - ApiKeys.Add("x_email_customer"); + "x_merchant_email", - ApiKeys.Add("x_merchant_email"); + "x_cust_id", - ApiKeys.Add("x_cust_id"); + "x_customer_ip", - ApiKeys.Add("x_customer_ip"); + "x_ship_to_first_name", - ApiKeys.Add("x_ship_to_first_name"); + "x_ship_to_last_name", - ApiKeys.Add("x_ship_to_last_name"); + "x_ship_to_company", - ApiKeys.Add("x_ship_to_company"); + "x_ship_to_address", - ApiKeys.Add("x_ship_to_address"); + "x_ship_to_city", - ApiKeys.Add("x_ship_to_city"); + "x_ship_to_state", - ApiKeys.Add("x_ship_to_state"); + "x_ship_to_zip", - ApiKeys.Add("x_ship_to_zip"); + "x_ship_to_country", - ApiKeys.Add("x_ship_to_country"); + "x_tax", + "x_freight", + "x_duty", + "x_tax_exempt", + "x_po_num", + "x_solution_id" + }; - ApiKeys.Add("x_tax"); - ApiKeys.Add("x_freight"); - ApiKeys.Add("x_duty"); - ApiKeys.Add("x_tax_exempt"); - ApiKeys.Add("x_po_num"); - ApiKeys.Add("x_solution_id"); + } + + public List ApiKeys + { + get; + set; + } - } - public List ApiKeys { - get; - set; - } - - /// /// Required - The merchant's transaction version /// public const string ApiVersion = "x_version"; - + /// /// The type of transaction: /// AUTH_CAPTURE (default), AUTH_ONLY, CAPTURE_ONLY, CREDIT, PRIOR_AUTH_CAPTURE, VOID /// public const string TransactionType = "x_type"; - + /// /// CC or ECHECK /// public const string Method = "x_method"; - + /// /// The recurring billing status /// public const string RecurringBilling = "x_recurring_billing"; - + /// /// The amount of the transaction /// @@ -221,10 +223,10 @@ public List ApiKeys { /// The three- or four-digit number on the back of a credit card (on the front for American Express). /// public const string CreditCardCode = "x_card_code"; - /// - /// The credit card type or echeck in the case of echeck transactions. - /// - public const string CreditCardType = "x_card_type"; + /// + /// The credit card type or echeck in the case of echeck transactions. + /// + public const string CreditCardType = "x_card_type"; /// /// The payment gateway assigned transaction ID of an original transaction - Required only for CREDIT, PRIOR_ AUTH_ CAPTURE, and VOID transactions /// @@ -245,51 +247,51 @@ public List ApiKeys { /// The window of time after the submission of a transaction that a duplicate transaction can not be submitted /// public const string DuplicateWindowTime = "x_duplicate_window"; - + /// /// The merchant assigned invoice number for the transaction /// public const string InvoiceNumber = "x_invoice_num"; - + /// /// The transaction description /// public const string Description = "x_description"; - + public const string FirstName = "x_first_name"; - + public const string LastName = "x_last_name"; - + public const string Company = "x_company"; - + public const string Address = "x_address"; - + public const string City = "x_city"; - + public const string State = "x_state"; - + public const string Zip = "x_zip"; - + public const string Country = "x_country"; - + public const string Phone = "x_phone"; - + public const string Fax = "x_fax"; - + public const string Email = "x_email"; - public const string EmailCustomer = "x_email_customer"; + public const string EmailCustomer = "x_email_customer"; + + public const string MerchantEmail = "x_merchant_email"; - public const string MerchantEmail = "x_merchant_email"; - /// /// The ID of the Customer as relates to your application /// public const string CustomerID = "x_cust_id"; - public const string CustomerIPAddress = "x_customer_ip"; - + public const string CustomerIPAddress = "x_customer_ip"; + public const string ShipFirstName = "x_ship_to_first_name"; public const string ShipLastName = "x_ship_to_last_name"; @@ -305,24 +307,24 @@ public List ApiKeys { public const string ShipZip = "x_ship_to_zip"; public const string ShipCountry = "x_ship_to_country"; - - + + public const string Tax = "x_tax"; public const string Freight = "x_freight"; public const string Duty = "x_duty"; public const string TaxExempt = "x_tax_exempt"; public const string PONumber = "x_po_num"; - - - - public bool ApiContainsKey (string key) + + + + public bool ApiContainsKey(string key) { - - return ApiKeys.Contains (key); + + return ApiKeys.Contains(key); } - - - + + + } } diff --git a/Authorize.NET/Utility/CryptoRandom.cs b/Authorize.NET/Utility/CryptoRandom.cs index 95caac5a..aa0acd4f 100644 --- a/Authorize.NET/Utility/CryptoRandom.cs +++ b/Authorize.NET/Utility/CryptoRandom.cs @@ -1,67 +1,63 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Security.Cryptography; namespace AuthorizeNet { - /// - /// Source Code from MSDN article http://msdn.microsoft.com/en-us/magazine/cc163367.aspx - /// - public class CryptoRandom - { - private RNGCryptoServiceProvider _rng = - new RNGCryptoServiceProvider(); - private byte[] _uint32Buffer = new byte[4]; - - public CryptoRandom() { } - public CryptoRandom(Int32 ignoredSeed) { } - - public Int32 Next() - { - _rng.GetBytes(_uint32Buffer); - return BitConverter.ToInt32(_uint32Buffer, 0) & 0x7FFFFFFF; - } - - public Int32 Next(Int32 maxValue) - { - if (maxValue < 0) - throw new ArgumentOutOfRangeException("maxValue"); - return Next(0, maxValue); - } - - public Int32 Next(Int32 minValue, Int32 maxValue) - { - if (minValue > maxValue) - throw new ArgumentOutOfRangeException("minValue"); - if (minValue == maxValue) return minValue; - Int64 diff = maxValue - minValue; - while (true) - { - _rng.GetBytes(_uint32Buffer); - UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0); - - Int64 max = (1 + (Int64)UInt32.MaxValue); - Int64 remainder = max % diff; - if (rand < max - remainder) - { - return (Int32)(minValue + (rand % diff)); - } - } - } - - public double NextDouble() - { - _rng.GetBytes(_uint32Buffer); - UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0); - return rand / (1.0 + UInt32.MaxValue); - } - - public void NextBytes(byte[] buffer) - { - if (buffer == null) throw new ArgumentNullException("buffer"); - _rng.GetBytes(buffer); - } - } + /// + /// Source Code from MSDN article http://msdn.microsoft.com/en-us/magazine/cc163367.aspx + /// + public class CryptoRandom + { + private readonly RNGCryptoServiceProvider _rng = new(); + private readonly byte[] _uint32Buffer = new byte[4]; + + public CryptoRandom() { } + public CryptoRandom(Int32 ignoredSeed) { } + + public Int32 Next() + { + _rng.GetBytes(_uint32Buffer); + return BitConverter.ToInt32(_uint32Buffer, 0) & 0x7FFFFFFF; + } + + public Int32 Next(Int32 maxValue) + { + if (maxValue < 0) + throw new ArgumentOutOfRangeException("maxValue"); + return Next(0, maxValue); + } + + public Int32 Next(Int32 minValue, Int32 maxValue) + { + if (minValue > maxValue) + throw new ArgumentOutOfRangeException("minValue"); + if (minValue == maxValue) return minValue; + Int64 diff = maxValue - minValue; + while (true) + { + _rng.GetBytes(_uint32Buffer); + UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0); + + Int64 max = (1 + (Int64)UInt32.MaxValue); + Int64 remainder = max % diff; + if (rand < max - remainder) + { + return (Int32)(minValue + (rand % diff)); + } + } + } + + public double NextDouble() + { + _rng.GetBytes(_uint32Buffer); + UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0); + return rand / (1.0 + UInt32.MaxValue); + } + + public void NextBytes(byte[] buffer) + { + if (buffer == null) throw new ArgumentNullException("buffer"); + _rng.GetBytes(buffer); + } + } } diff --git a/AuthorizeNETtest/Api/ControllerTemplateTest.cst b/AuthorizeNETtest/Api/ControllerTemplateTest.cst index fcc2194e..a3bf598f 100644 --- a/AuthorizeNETtest/Api/ControllerTemplateTest.cst +++ b/AuthorizeNETtest/Api/ControllerTemplateTest.cst @@ -12,13 +12,13 @@ namespace AuthorizeNet.Api.Controllers.MockTest public class APICONTROLLERNAMETest : ApiCoreTestBase { - [TestFixtureSetUp] + [SetUp] public new static void SetUpBeforeClass() { ApiCoreTestBase.SetUpBeforeClass(); } - [TestFixtureTearDown] + [TearDown] public new static void TearDownAfterClass() { ApiCoreTestBase.TearDownAfterClass(); diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBCancelSubscriptionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBCancelSubscriptionControllerTest.cs index 463d2648..58d589f6 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBCancelSubscriptionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBCancelSubscriptionControllerTest.cs @@ -1,69 +1,71 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBCancelSubscriptionTest : ApiCoreTestBase + [TestFixture] + public class ARBCancelSubscriptionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBCancelSubscriptionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBCancelSubscriptionRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new ARBCancelSubscriptionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockARBCancelSubscriptionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBCancelSubscriptionRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new ARBCancelSubscriptionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - LogHelper.info(Logger, "ARBCancelSubscription: "); - } - } + LogHelper.Info(Logger, "ARBCancelSubscription: "); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBCreateSubscriptionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBCreateSubscriptionControllerTest.cs index 52662b93..548cb83e 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBCreateSubscriptionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBCreateSubscriptionControllerTest.cs @@ -1,72 +1,74 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBCreateSubscriptionTest : ApiCoreTestBase + [TestFixture] + public class ARBCreateSubscriptionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBCreateSubscriptionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBCreateSubscriptionRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - subscription = ArbSubscriptionOne, - }; - var mockResponse = new ARBCreateSubscriptionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - subscriptionId = "1234", - }; + [Test] + public void MockARBCreateSubscriptionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBCreateSubscriptionRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + subscription = ArbSubscriptionOne, + }; + var mockResponse = new ARBCreateSubscriptionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + subscriptionId = "1234", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.subscriptionId); - LogHelper.info(Logger, "ARBCreateSubscription: Details:{0}", controllerResponse.subscriptionId); - } - } + Assert.IsNotNull(controllerResponse.subscriptionId); + LogHelper.Info(Logger, "ARBCreateSubscription: Details:{0}", controllerResponse.subscriptionId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionControllerTest.cs index a4e6352d..b32ff55d 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionControllerTest.cs @@ -1,108 +1,107 @@ using AuthorizeNet.Utility; +using System; +using System.Collections.Generic; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; +using NUnit.Framework; namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBGetSubscriptionTest : ApiCoreTestBase + [TestFixture] + public class ARBGetSubscriptionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBGetSubscriptionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBGetSubscriptionRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - subscriptionId = "1234" - }; + [Test] + public void MockARBGetSubscriptionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBGetSubscriptionRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + subscriptionId = "1234" + }; - var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType - { - customerPaymentProfileId = "1234", - }; + var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType + { + customerPaymentProfileId = "1234", + }; - var rnd = new AnetRandom(DateTime.Now.Millisecond); - var SubscriptionMaskedType = new ARBSubscriptionMaskedType() - { - name = "Test", - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 1, - unit = ARBSubscriptionUnitEnum.months, - }, - startDate = DateTime.UtcNow, - totalOccurrences = 12 - }, - amount = 9.99M, - amountSpecified = true, - trialAmount = 100, - trialAmountSpecified = true, - status = ARBSubscriptionStatusEnum.active, - statusSpecified = true, - profile = new subscriptionCustomerProfileType() - { - paymentProfile = customerPaymentProfileMaskedType, + var rnd = new AnetRandom(DateTime.Now.Millisecond); + var SubscriptionMaskedType = new ARBSubscriptionMaskedType() + { + name = "Test", + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 1, + unit = ARBSubscriptionUnitEnum.months, + }, + startDate = DateTime.UtcNow, + totalOccurrences = 12 + }, + amount = 9.99M, + amountSpecified = true, + trialAmount = 100, + trialAmountSpecified = true, + status = ARBSubscriptionStatusEnum.active, + statusSpecified = true, + profile = new subscriptionCustomerProfileType() + { + paymentProfile = customerPaymentProfileMaskedType, - }, - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) } - }; + }, + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) } + }; - var mockResponse = new ARBGetSubscriptionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - subscription = SubscriptionMaskedType - }; + var mockResponse = new ARBGetSubscriptionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + subscription = SubscriptionMaskedType + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.subscription); - LogHelper.info(Logger, "ARBGetSubscription: Details:{0}", controllerResponse.subscription); - } - } + Assert.IsNotNull(controllerResponse.subscription); + LogHelper.Info(Logger, "ARBGetSubscription: Details:{0}", controllerResponse.subscription); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionListControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionListControllerTest.cs index c0c35635..1398ab1e 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionListControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionListControllerTest.cs @@ -1,87 +1,89 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBGetSubscriptionListTest : ApiCoreTestBase + [TestFixture] + public class ARBGetSubscriptionListTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBGetSubscriptionListTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBGetSubscriptionListRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - refId = RefId, - searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, - paging = new Paging { limit = 100, offset = 1 }, - sorting = new ARBGetSubscriptionListSorting - { - orderBy = ARBGetSubscriptionListOrderFieldEnum.id, - orderDescending = false - }, - }; - var subscriptionDetail = new SubscriptionDetail - { - id = 1234, - accountNumber = "1234", - amount = SetValidTransactionAmount(Counter) / 100, - }; - var subscriptionDetails = new List { subscriptionDetail }; - var mockResponse = new ARBGetSubscriptionListResponse - { - refId = "1234", - sessionToken = "sessiontoken", - subscriptionDetails = subscriptionDetails.ToArray(), - totalNumInResultSet = subscriptionDetails.Count, - }; + [Test] + public void MockARBGetSubscriptionListTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBGetSubscriptionListRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + refId = RefId, + searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, + paging = new Paging { limit = 100, offset = 1 }, + sorting = new ARBGetSubscriptionListSorting + { + orderBy = ARBGetSubscriptionListOrderFieldEnum.id, + orderDescending = false + }, + }; + var subscriptionDetail = new SubscriptionDetail + { + id = 1234, + accountNumber = "1234", + amount = SetValidTransactionAmount(Counter) / 100, + }; + var subscriptionDetails = new List { subscriptionDetail }; + var mockResponse = new ARBGetSubscriptionListResponse + { + refId = "1234", + sessionToken = "sessiontoken", + subscriptionDetails = subscriptionDetails.ToArray(), + totalNumInResultSet = subscriptionDetails.Count, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.subscriptionDetails); - LogHelper.info(Logger, "ARBGetSubscriptionList: Count:{0}, Details:{1}", controllerResponse.totalNumInResultSet, controllerResponse.subscriptionDetails); - } - } + Assert.IsNotNull(controllerResponse.subscriptionDetails); + LogHelper.Info(Logger, "ARBGetSubscriptionList: Count:{0}, Details:{1}", controllerResponse.totalNumInResultSet, controllerResponse.subscriptionDetails); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionStatusControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionStatusControllerTest.cs index ae4d1718..461581cf 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionStatusControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionStatusControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBGetSubscriptionStatusTest : ApiCoreTestBase + [TestFixture] + public class ARBGetSubscriptionStatusTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBGetSubscriptionStatusTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBGetSubscriptionStatusRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new ARBGetSubscriptionStatusResponse - { - refId = "1234", - sessionToken = "sessiontoken", - status = ARBSubscriptionStatusEnum.active, - }; + [Test] + public void MockARBGetSubscriptionStatusTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBGetSubscriptionStatusRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new ARBGetSubscriptionStatusResponse + { + refId = "1234", + sessionToken = "sessiontoken", + status = ARBSubscriptionStatusEnum.active, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.status); - LogHelper.info(Logger, "ARBGetSubscriptionStatus: Details:{0}", controllerResponse.status); - } - } + Assert.IsNotNull(controllerResponse.status); + LogHelper.Info(Logger, "ARBGetSubscriptionStatus: Details:{0}", controllerResponse.status); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/ARBUpdateSubscriptionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/ARBUpdateSubscriptionControllerTest.cs index 4755480e..ffa00bcf 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/ARBUpdateSubscriptionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/ARBUpdateSubscriptionControllerTest.cs @@ -1,67 +1,68 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ARBUpdateSubscriptionTest : ApiCoreTestBase + [TestFixture] + public class ARBUpdateSubscriptionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockARBUpdateSubscriptionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ARBUpdateSubscriptionRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new ARBUpdateSubscriptionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockARBUpdateSubscriptionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ARBUpdateSubscriptionRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new ARBUpdateSubscriptionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); - } - } + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/authenticateTestControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/authenticateTestControllerTest.cs index 7615c80f..8c25e969 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/authenticateTestControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/authenticateTestControllerTest.cs @@ -1,70 +1,71 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class authenticateTestTest : ApiCoreTestBase + [TestFixture] + public class AuthenticateTestTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockauthenticateTestTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new authenticateTestRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new authenticateTestResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockauthenticateTestTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new authenticateTestRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new authenticateTestResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.); - LogHelper.info(Logger, "authenticateTest: Details:{0}", controllerResponse); - } - } + // Assert.IsNotNull(controllerResponse.); + LogHelper.Info(Logger, "authenticateTest: Details:{0}", controllerResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerPaymentProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerPaymentProfileControllerTest.cs index c9be0f0e..ca9df8c7 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerPaymentProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerPaymentProfileControllerTest.cs @@ -1,72 +1,74 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createCustomerPaymentProfileTest : ApiCoreTestBase + [TestFixture] + public class CreateCustomerPaymentProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateCustomerPaymentProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new createCustomerPaymentProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new createCustomerPaymentProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - customerPaymentProfileId = "1234", - validationDirectResponse = "mockValidation", - }; + [Test] + public void MockcreateCustomerPaymentProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new createCustomerPaymentProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new createCustomerPaymentProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + customerPaymentProfileId = "1234", + validationDirectResponse = "mockValidation", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.customerPaymentProfileId); - LogHelper.info(Logger, "createCustomerPaymentProfile: Details:{0}", controllerResponse.customerPaymentProfileId); - } - } + Assert.IsNotNull(controllerResponse.customerPaymentProfileId); + LogHelper.Info(Logger, "createCustomerPaymentProfile: Details:{0}", controllerResponse.customerPaymentProfileId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileControllerTest.cs index 78c6cbe7..97e34ee4 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileControllerTest.cs @@ -1,74 +1,76 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createCustomerProfileTest : ApiCoreTestBase + [TestFixture] + public class CreateCustomerProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateCustomerProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new createCustomerProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new createCustomerProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - customerProfileId = "1234", - customerPaymentProfileIdList = new [] {"12345"}, - customerShippingAddressIdList = new[] { "12345" }, - validationDirectResponseList = new string[] {}, - }; + [Test] + public void MockcreateCustomerProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new createCustomerProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new createCustomerProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + customerProfileId = "1234", + customerPaymentProfileIdList = new[] { "12345" }, + customerShippingAddressIdList = new[] { "12345" }, + validationDirectResponseList = new string[] { }, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.customerProfileId); - LogHelper.info(Logger, "createCustomerProfile: Details:{0}", controllerResponse.customerProfileId); - } - } + Assert.IsNotNull(controllerResponse.customerProfileId); + LogHelper.Info(Logger, "createCustomerProfile: Details:{0}", controllerResponse.customerProfileId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileFromTransactionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileFromTransactionControllerTest.cs index 66eaca41..960139f5 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileFromTransactionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileFromTransactionControllerTest.cs @@ -1,74 +1,76 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createCustomerProfileFromTransactionTest : ApiCoreTestBase + [TestFixture] + public class CreateCustomerProfileFromTransactionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateCustomerProfileFromTransactionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new createCustomerProfileFromTransactionRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - transId = CounterStr, - }; - var mockResponse = new createCustomerProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - customerProfileId = CounterStr, - customerPaymentProfileIdList = new [] {CounterStr}, - customerShippingAddressIdList = new [] {CounterStr}, - }; + [Test] + public void MockcreateCustomerProfileFromTransactionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new createCustomerProfileFromTransactionRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + transId = CounterStr, + }; + var mockResponse = new createCustomerProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + customerProfileId = CounterStr, + customerPaymentProfileIdList = new[] { CounterStr }, + customerShippingAddressIdList = new[] { CounterStr }, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.customerProfileId); - LogHelper.info(Logger, "createCustomerProfileFromTransaction: Details:{0}", controllerResponse.customerProfileId); - } - } + Assert.IsNotNull(controllerResponse.customerProfileId); + LogHelper.Info(Logger, "createCustomerProfileFromTransaction: Details:{0}", controllerResponse.customerProfileId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileTransactionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileTransactionControllerTest.cs index 7134923c..bafa8e90 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileTransactionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileTransactionControllerTest.cs @@ -1,79 +1,81 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createCustomerProfileTransactionTest : ApiCoreTestBase + [TestFixture] + public class CreateCustomerProfileTransactionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateCustomerProfileTransactionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new createCustomerProfileTransactionRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - transaction = new profileTransactionType - { - Item = new profileTransAuthCaptureType(), - }, - }; - var transactionResponse = new transactionResponse() - { - accountNumber = "1234", - }; - var mockResponse = new createCustomerProfileTransactionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - transactionResponse = transactionResponse, - }; + [Test] + public void MockcreateCustomerProfileTransactionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new createCustomerProfileTransactionRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + transaction = new profileTransactionType + { + Item = new profileTransAuthCaptureType(), + }, + }; + var transactionResponse = new transactionResponse() + { + accountNumber = "1234", + }; + var mockResponse = new createCustomerProfileTransactionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + transactionResponse = transactionResponse, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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, "createCustomerProfileTransaction: Details:{0}", controllerResponse.transactionResponse); - } - } + Assert.IsNotNull(controllerResponse.transactionResponse); + LogHelper.Info(Logger, "createCustomerProfileTransaction: Details:{0}", controllerResponse.transactionResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerShippingAddressControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerShippingAddressControllerTest.cs index 69caadcd..dcf40971 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerShippingAddressControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createCustomerShippingAddressControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createCustomerShippingAddressTest : ApiCoreTestBase + [TestFixture] + public class CreateCustomerShippingAddressTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateCustomerShippingAddressTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new createCustomerShippingAddressRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new createCustomerShippingAddressResponse - { - refId = "1234", - sessionToken = "sessiontoken", - customerAddressId = "1234", - }; + [Test] + public void MockcreateCustomerShippingAddressTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new createCustomerShippingAddressRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new createCustomerShippingAddressResponse + { + refId = "1234", + sessionToken = "sessiontoken", + customerAddressId = "1234", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.customerAddressId); - LogHelper.info(Logger, "createCustomerShippingAddress: Details:{0}", controllerResponse.customerAddressId); - } - } + Assert.IsNotNull(controllerResponse.customerAddressId); + LogHelper.Info(Logger, "createCustomerShippingAddress: Details:{0}", controllerResponse.customerAddressId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs index 5ef5b361..9bd912bb 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs @@ -1,46 +1,46 @@ +//using System; +//using System.Collections.Generic; +//using AuthorizeNet.Api.Contracts.V1; +//using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +//using AuthorizeNet.Util; +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - //using System; - //using System.Collections.Generic; - //using AuthorizeNet.Api.Contracts.V1; - //using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - //using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createProfileTest : ApiCoreTestBase + [TestFixture] + public class CreateProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateProfileTest() - { - //createProfileRequest does not exist - /* + [Test] + public void MockcreateProfileTest() + { + //createProfileRequest does not exist + /* //define all mocked objects as final var mockController = GetMockController(); var mockRequest = new createProfileRequest @@ -69,6 +69,6 @@ public void MockcreateProfileTest() Assert.IsNotNull(controllerResponse.Yyyyy); LogHelper.info(Logger, "createProfile: Details:{0}", controllerResponse.Yyyyy); */ - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/createTransactionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/createTransactionControllerTest.cs index e1c5a552..12e97555 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/createTransactionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/createTransactionControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class createTransactionTest : ApiCoreTestBase + [TestFixture] + public class CreateTransactionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockcreateTransactionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - 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, - }; + [Test] + public void MockcreateTransactionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + 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(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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); - } - } + Assert.IsNotNull(controllerResponse.transactionResponse); + LogHelper.Info(Logger, "createTransaction: Details:{0}", controllerResponse.transactionResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/decryptPaymentDataControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/decryptPaymentDataControllerTest.cs index 43cac345..ca09cfe0 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/decryptPaymentDataControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/decryptPaymentDataControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class decryptPaymentDataTest : ApiCoreTestBase + [TestFixture] + public class DecryptPaymentDataTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockdecryptPaymentDataTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new decryptPaymentDataRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new decryptPaymentDataResponse - { - refId = "1234", - sessionToken = "sessiontoken", - paymentDetails = new paymentDetails() { amount = "15.50" } - }; + [Test] + public void MockdecryptPaymentDataTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new decryptPaymentDataRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new decryptPaymentDataResponse + { + refId = "1234", + sessionToken = "sessiontoken", + paymentDetails = new paymentDetails() { amount = "15.50" } + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.paymentDetails); - LogHelper.info(Logger, "decryptPaymentData: PaymentDetailsAmount:{0}", controllerResponse.paymentDetails.amount); - } - } + Assert.IsNotNull(controllerResponse.paymentDetails); + LogHelper.Info(Logger, "decryptPaymentData: PaymentDetailsAmount:{0}", controllerResponse.paymentDetails.amount); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerPaymentProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerPaymentProfileControllerTest.cs index 916c786f..0f974a29 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerPaymentProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerPaymentProfileControllerTest.cs @@ -1,68 +1,69 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class deleteCustomerPaymentProfileTest : ApiCoreTestBase + [TestFixture] + public class DeleteCustomerPaymentProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockdeleteCustomerPaymentProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new deleteCustomerPaymentProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new deleteCustomerPaymentProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockdeleteCustomerPaymentProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new deleteCustomerPaymentProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new deleteCustomerPaymentProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerProfileControllerTest.cs index 94e7f127..c65a2837 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerProfileControllerTest.cs @@ -1,68 +1,69 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class deleteCustomerProfileTest : ApiCoreTestBase + [TestFixture] + public class DeleteCustomerProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockdeleteCustomerProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new deleteCustomerProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new deleteCustomerProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockdeleteCustomerProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new deleteCustomerProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new deleteCustomerProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerShippingAddressControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerShippingAddressControllerTest.cs index e87755a4..5fbe28ad 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerShippingAddressControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerShippingAddressControllerTest.cs @@ -1,68 +1,69 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class deleteCustomerShippingAddressTest : ApiCoreTestBase + [TestFixture] + public class DeleteCustomerShippingAddressTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockdeleteCustomerShippingAddressTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new deleteCustomerShippingAddressRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new deleteCustomerShippingAddressResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockdeleteCustomerShippingAddressTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new deleteCustomerShippingAddressRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new deleteCustomerShippingAddressResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getBatchStatisticsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getBatchStatisticsControllerTest.cs index 79303185..e93e029d 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getBatchStatisticsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getBatchStatisticsControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getBatchStatisticsTest : ApiCoreTestBase + [TestFixture] + public class GetBatchStatisticsTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetBatchStatisticsTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getBatchStatisticsRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var batchDetaisType = new batchDetailsType - { - batchId = "1234", - }; - var mockResponse = new getBatchStatisticsResponse - { - refId = "1234", - sessionToken = "sessiontoken", - batch = batchDetaisType, - }; + [Test] + public void MockgetBatchStatisticsTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getBatchStatisticsRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var batchDetaisType = new batchDetailsType + { + batchId = "1234", + }; + var mockResponse = new getBatchStatisticsResponse + { + refId = "1234", + sessionToken = "sessiontoken", + batch = batchDetaisType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.batch); - LogHelper.info(Logger, "getBatchStatistics: Details:{0}", controllerResponse.batch); - } - } + Assert.IsNotNull(controllerResponse.batch); + LogHelper.Info(Logger, "getBatchStatistics: Details:{0}", controllerResponse.batch); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileControllerTest.cs index 2aa5113b..3d588d21 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getCustomerPaymentProfileTest : ApiCoreTestBase + [TestFixture] + public class GetCustomerPaymentProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetCustomerPaymentProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getCustomerPaymentProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType - { - customerPaymentProfileId = "1234", - }; - var mockResponse = new getCustomerPaymentProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - paymentProfile = customerPaymentProfileMaskedType, - }; + [Test] + public void MockgetCustomerPaymentProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getCustomerPaymentProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType + { + customerPaymentProfileId = "1234", + }; + var mockResponse = new getCustomerPaymentProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + paymentProfile = customerPaymentProfileMaskedType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.paymentProfile); - LogHelper.info(Logger, "getCustomerPaymentProfile: Details:{0}", controllerResponse.paymentProfile); - } - } + Assert.IsNotNull(controllerResponse.paymentProfile); + LogHelper.Info(Logger, "getCustomerPaymentProfile: Details:{0}", controllerResponse.paymentProfile); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs index b99e00a7..e553c7ac 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs @@ -1,121 +1,123 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getCustomerPaymentProfileListTest : ApiCoreTestBase + [TestFixture] + public class GetCustomerPaymentProfileListTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } - [SetUp] - public new void SetUp() + string GetRandomString(string title) { - base.SetUp(); - } + return String.Format("{0}{1}", title, Counter); + } - [TearDown] - public new void TearDown() + [Test] + public void MockgetCustomerPaymentProfileListTest() { - base.TearDown(); - } - - string GetRandomString(string title) - { - return String.Format("{0}{1}", title, Counter); - } - - [Test] - public void MockgetCustomerPaymentProfileListTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getCustomerPaymentProfileListRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth, - month = "2020-12" - }; - - var BankAccountMaskedType = new bankAccountMaskedType() - { - accountType = bankAccountTypeEnum.savings, - accountTypeSpecified = true, - routingNumber = "1234", - accountNumber = "1234", - nameOnAccount = "Test", - echeckType = echeckTypeEnum.ARC - }; - - var PaymentMaskedType = new paymentMaskedType() - { - Item = BankAccountMaskedType - }; - - var CustomerAddress = new customerAddressType - { - firstName = GetRandomString("FName"), - lastName = GetRandomString("LName"), - company = GetRandomString("Company"), - address = GetRandomString("StreetAdd"), - city = "Bellevue", - state = "WA", - zip = "98000", - country = "USA", - phoneNumber = FormatToPhone(Counter), - faxNumber = FormatToPhone(Counter + 1), - }; - - var paymentProfile = new customerPaymentProfileListItemType() - { - customerPaymentProfileId = 1234, - customerProfileId = 1234, - billTo = CustomerAddress, - payment = PaymentMaskedType - }; - - var PaymentProfiles = new List { paymentProfile }; - - var mockResponse = new getCustomerPaymentProfileListResponse - { - refId = "1234", - sessionToken = "sessiontoken", - totalNumInResultSet = PaymentProfiles.Count, - paymentProfiles = PaymentProfiles.ToArray() - }; - - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - - SetMockControllerExpectations( - 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.totalNumInResultSet); - Assert.IsNotNull(controllerResponse.paymentProfiles); - - LogHelper.info(Logger, "getCustomerPaymentProfileList: Details:{0}", controllerResponse.paymentProfiles); - } - } + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getCustomerPaymentProfileListRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth, + month = "2020-12" + }; + + var BankAccountMaskedType = new bankAccountMaskedType() + { + accountType = bankAccountTypeEnum.savings, + accountTypeSpecified = true, + routingNumber = "1234", + accountNumber = "1234", + nameOnAccount = "Test", + echeckType = echeckTypeEnum.ARC + }; + + var PaymentMaskedType = new paymentMaskedType() + { + Item = BankAccountMaskedType + }; + + var CustomerAddress = new customerAddressType + { + firstName = GetRandomString("FName"), + lastName = GetRandomString("LName"), + company = GetRandomString("Company"), + address = GetRandomString("StreetAdd"), + city = "Bellevue", + state = "WA", + zip = "98000", + country = "USA", + phoneNumber = FormatToPhone(Counter), + faxNumber = FormatToPhone(Counter + 1), + }; + + var paymentProfile = new customerPaymentProfileListItemType() + { + customerPaymentProfileId = 1234, + customerProfileId = 1234, + billTo = CustomerAddress, + payment = PaymentMaskedType + }; + + var PaymentProfiles = new List { paymentProfile }; + + var mockResponse = new getCustomerPaymentProfileListResponse + { + refId = "1234", + sessionToken = "sessiontoken", + totalNumInResultSet = PaymentProfiles.Count, + paymentProfiles = PaymentProfiles.ToArray() + }; + + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.totalNumInResultSet); + Assert.IsNotNull(controllerResponse.paymentProfiles); + + LogHelper.Info(Logger, "getCustomerPaymentProfileList: Details:{0}", controllerResponse.paymentProfiles); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileControllerTest.cs index 7cf92386..6b8ab880 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getCustomerProfileTest : ApiCoreTestBase + [TestFixture] + public class GetCustomerProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetCustomerProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getCustomerProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var customerProfileMaskedType = new customerProfileMaskedType - { - customerProfileId = "1234", - }; - var mockResponse = new getCustomerProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - profile = customerProfileMaskedType, - }; + [Test] + public void MockgetCustomerProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getCustomerProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var customerProfileMaskedType = new customerProfileMaskedType + { + customerProfileId = "1234", + }; + var mockResponse = new getCustomerProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + profile = customerProfileMaskedType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.profile); - LogHelper.info(Logger, "getCustomerProfile: Details:{0}", controllerResponse.profile); - } - } + Assert.IsNotNull(controllerResponse.profile); + LogHelper.Info(Logger, "getCustomerProfile: Details:{0}", controllerResponse.profile); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileIdsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileIdsControllerTest.cs index ee7f2d91..a805c82b 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileIdsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileIdsControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getCustomerProfileIdsTest : ApiCoreTestBase + [TestFixture] + public class GetCustomerProfileIdsTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetCustomerProfileIdsTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getCustomerProfileIdsRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new getCustomerProfileIdsResponse - { - refId = "1234", - sessionToken = "sessiontoken", - ids = new [] {"1234"}, - }; + [Test] + public void MockgetCustomerProfileIdsTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getCustomerProfileIdsRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new getCustomerProfileIdsResponse + { + refId = "1234", + sessionToken = "sessiontoken", + ids = new[] { "1234" }, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.ids); - LogHelper.info(Logger, "getCustomerProfileIds: Details:{0}", controllerResponse.ids); - } - } + Assert.IsNotNull(controllerResponse.ids); + LogHelper.Info(Logger, "getCustomerProfileIds: Details:{0}", controllerResponse.ids); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerShippingAddressControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerShippingAddressControllerTest.cs index 9ddc4b7a..2f7d5288 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerShippingAddressControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getCustomerShippingAddressControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getCustomerShippingAddressTest : ApiCoreTestBase + [TestFixture] + public class GetCustomerShippingAddressTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetCustomerShippingAddressTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getCustomerShippingAddressRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var customerAddressExType = new customerAddressExType - { - customerAddressId = "1234", - }; - var mockResponse = new getCustomerShippingAddressResponse - { - refId = "1234", - sessionToken = "sessiontoken", - address = customerAddressExType, - }; + [Test] + public void MockgetCustomerShippingAddressTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getCustomerShippingAddressRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var customerAddressExType = new customerAddressExType + { + customerAddressId = "1234", + }; + var mockResponse = new getCustomerShippingAddressResponse + { + refId = "1234", + sessionToken = "sessiontoken", + address = customerAddressExType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.address); - LogHelper.info(Logger, "getCustomerShippingAddress: Details:{0}", controllerResponse.address); - } - } + Assert.IsNotNull(controllerResponse.address); + LogHelper.Info(Logger, "getCustomerShippingAddress: Details:{0}", controllerResponse.address); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getHostedPaymentPageControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getHostedPaymentPageControllerTest.cs index 26560ba8..18152616 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getHostedPaymentPageControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getHostedPaymentPageControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getHostedPaymentPageTest : ApiCoreTestBase + [TestFixture] + public class GetHostedPaymentPageTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetHostedPaymentPageTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getHostedPaymentPageRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new getHostedPaymentPageResponse - { - refId = "1234", - sessionToken = "sessiontoken", - token = "123123" - }; + [Test] + public void MockgetHostedPaymentPageTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getHostedPaymentPageRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new getHostedPaymentPageResponse + { + refId = "1234", + sessionToken = "sessiontoken", + token = "123123" + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.token); - LogHelper.info(Logger, "getHostedPaymentPage: Details:{0}", controllerResponse.token); - } - } + Assert.IsNotNull(controllerResponse.token); + LogHelper.Info(Logger, "getHostedPaymentPage: Details:{0}", controllerResponse.token); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getHostedProfilePageControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getHostedProfilePageControllerTest.cs index 7fcbb1ce..2bc5eaff 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getHostedProfilePageControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getHostedProfilePageControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getHostedProfilePageTest : ApiCoreTestBase + [TestFixture] + public class GetHostedProfilePageTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetHostedProfilePageTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getHostedProfilePageRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new getHostedProfilePageResponse - { - refId = "1234", - sessionToken = "sessiontoken", - token = "token1234", - }; + [Test] + public void MockgetHostedProfilePageTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getHostedProfilePageRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new getHostedProfilePageResponse + { + refId = "1234", + sessionToken = "sessiontoken", + token = "token1234", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.token); - LogHelper.info(Logger, "getHostedProfilePage: Details:{0}", controllerResponse.token); - } - } + Assert.IsNotNull(controllerResponse.token); + LogHelper.Info(Logger, "getHostedProfilePage: Details:{0}", controllerResponse.token); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getMerchantDetailsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getMerchantDetailsControllerTest.cs index 2069a8d8..abe63187 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getMerchantDetailsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getMerchantDetailsControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getMerchantDetailsTest : ApiCoreTestBase + [TestFixture] + public class GetMerchantDetailsTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetMerchantDetailsTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getMerchantDetailsRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new getMerchantDetailsResponse - { - refId = "1234", - sessionToken = "sessiontoken", - gatewayId = "41234" - }; + [Test] + public void MockgetMerchantDetailsTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getMerchantDetailsRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new getMerchantDetailsResponse + { + refId = "1234", + sessionToken = "sessiontoken", + gatewayId = "41234" + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.gatewayId); - LogHelper.info(Logger, "getMerchantDetails: Details:{0}", controllerResponse.gatewayId); - } - } + Assert.IsNotNull(controllerResponse.gatewayId); + LogHelper.Info(Logger, "getMerchantDetails: Details:{0}", controllerResponse.gatewayId); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getSettledBatchListControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getSettledBatchListControllerTest.cs index 9dd5678b..dfae65b0 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getSettledBatchListControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getSettledBatchListControllerTest.cs @@ -1,78 +1,80 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getSettledBatchListTest : ApiCoreTestBase + [TestFixture] + public class GetSettledBatchListTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetSettledBatchListTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getSettledBatchListRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var batchDetailsType = new batchDetailsType[] - { - new batchDetailsType - { - batchId = "1234", - } - }; - var mockResponse = new getSettledBatchListResponse - { - refId = "1234", - sessionToken = "sessiontoken", - batchList = batchDetailsType, - }; + [Test] + public void MockgetSettledBatchListTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getSettledBatchListRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var batchDetailsType = new batchDetailsType[] + { + new batchDetailsType + { + batchId = "1234", + } + }; + var mockResponse = new getSettledBatchListResponse + { + refId = "1234", + sessionToken = "sessiontoken", + batchList = batchDetailsType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.batchList); - LogHelper.info(Logger, "getSettledBatchList: Details:{0}", controllerResponse.batchList); - } - } + Assert.IsNotNull(controllerResponse.batchList); + LogHelper.Info(Logger, "getSettledBatchList: Details:{0}", controllerResponse.batchList); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionDetailsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionDetailsControllerTest.cs index 41eef08f..4598afd1 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionDetailsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionDetailsControllerTest.cs @@ -1,75 +1,77 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getTransactionDetailsTest : ApiCoreTestBase + [TestFixture] + public class GetTransactionDetailsTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetTransactionDetailsTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - 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, - }; + [Test] + public void MockgetTransactionDetailsTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + 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(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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); - } - } + Assert.IsNotNull(controllerResponse.transaction); + LogHelper.Info(Logger, "getTransactionDetails: Details:{0}", controllerResponse.transaction); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListControllerTest.cs index 4b2b84ea..bafc1f8a 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListControllerTest.cs @@ -1,78 +1,80 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getTransactionListTest : ApiCoreTestBase + [TestFixture] + public class GetTransactionListTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetTransactionListTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getTransactionListRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var transactionSummaryType = new transactionSummaryType[] - { - new transactionSummaryType - { - accountNumber = "1234", - } - }; - var mockResponse = new getTransactionListResponse - { - refId = "1234", - sessionToken = "sessiontoken", - transactions = transactionSummaryType, - }; + [Test] + public void MockgetTransactionListTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getTransactionListRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var transactionSummaryType = new transactionSummaryType[] + { + new transactionSummaryType + { + accountNumber = "1234", + } + }; + var mockResponse = new getTransactionListResponse + { + refId = "1234", + sessionToken = "sessiontoken", + transactions = transactionSummaryType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.transactions); - LogHelper.info(Logger, "getTransactionList: Details:{0}", controllerResponse.transactions); - } - } + Assert.IsNotNull(controllerResponse.transactions); + LogHelper.Info(Logger, "getTransactionList: Details:{0}", controllerResponse.transactions); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getUnsettledTransactionListControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getUnsettledTransactionListControllerTest.cs index 0981c264..782d5c74 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getUnsettledTransactionListControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getUnsettledTransactionListControllerTest.cs @@ -1,78 +1,80 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class getUnsettledTransactionListTest : ApiCoreTestBase + [TestFixture] + public class GetUnsettledTransactionListTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockgetUnsettledTransactionListTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new getUnsettledTransactionListRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var transactionSummaryType = new transactionSummaryType[] - { - new transactionSummaryType - { - accountNumber = "1234", - } - }; - var mockResponse = new getUnsettledTransactionListResponse - { - refId = "1234", - sessionToken = "sessiontoken", - transactions = transactionSummaryType, - }; + [Test] + public void MockgetUnsettledTransactionListTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new getUnsettledTransactionListRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var transactionSummaryType = new transactionSummaryType[] + { + new transactionSummaryType + { + accountNumber = "1234", + } + }; + var mockResponse = new getUnsettledTransactionListResponse + { + refId = "1234", + sessionToken = "sessiontoken", + transactions = transactionSummaryType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.transactions); - LogHelper.info(Logger, "getUnsettledTransactionList: Details:{0}", controllerResponse.transactions); - } - } + Assert.IsNotNull(controllerResponse.transactions); + LogHelper.Info(Logger, "getUnsettledTransactionList: Details:{0}", controllerResponse.transactions); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/isAliveControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/isAliveControllerTest.cs index faf96f67..e1d8b250 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/isAliveControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/isAliveControllerTest.cs @@ -1,70 +1,72 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class isAliveTest : ApiCoreTestBase + [TestFixture] + public class IsAliveTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockisAliveTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new ANetApiRequest - { - merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, - }; - var mockResponse = new isAliveResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockisAliveTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new ANetApiRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new isAliveResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.Yyyyy); - LogHelper.info(Logger, "isAlive: Details:{0}", controllerResponse); - } - } + //Assert.IsNotNull(controllerResponse.Yyyyy); + LogHelper.Info(Logger, "isAlive: Details:{0}", controllerResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/logoutControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/logoutControllerTest.cs index c51edab7..8c0fc1a6 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/logoutControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/logoutControllerTest.cs @@ -1,70 +1,72 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class logoutTest : ApiCoreTestBase + [TestFixture] + public class LogoutTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MocklogoutTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new logoutRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new logoutResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MocklogoutTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new logoutRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new logoutResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.); - LogHelper.info(Logger, "logout: Details:{0}", controllerResponse); - } - } + //Assert.IsNotNull(controllerResponse.); + LogHelper.Info(Logger, "logout: Details:{0}", controllerResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceLoginControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceLoginControllerTest.cs index 10464fe5..e65f199e 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceLoginControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceLoginControllerTest.cs @@ -1,76 +1,78 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class mobileDeviceLoginTest : ApiCoreTestBase + [TestFixture] + public class MobileDeviceLoginTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockmobileDeviceLoginTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new mobileDeviceLoginRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var transRetailInfoType = new transRetailInfoType - { - deviceType = "android", - marketType = "marketplace", - }; - var mockResponse = new mobileDeviceLoginResponse - { - refId = "1234", - sessionToken = "sessiontoken", - merchantAccount = transRetailInfoType, - }; + [Test] + public void MockmobileDeviceLoginTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new mobileDeviceLoginRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var transRetailInfoType = new transRetailInfoType + { + deviceType = "android", + marketType = "marketplace", + }; + var mockResponse = new mobileDeviceLoginResponse + { + refId = "1234", + sessionToken = "sessiontoken", + merchantAccount = transRetailInfoType, + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.merchantAccount); - LogHelper.info(Logger, "mobileDeviceLogin: Details:{0}", controllerResponse.merchantAccount); - } - } + Assert.IsNotNull(controllerResponse.merchantAccount); + LogHelper.Info(Logger, "mobileDeviceLogin: Details:{0}", controllerResponse.merchantAccount); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceRegistrationControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceRegistrationControllerTest.cs index 175377c6..073f932b 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceRegistrationControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceRegistrationControllerTest.cs @@ -1,68 +1,68 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class mobileDeviceRegistrationTest : ApiCoreTestBase + [TestFixture] + public class MobileDeviceRegistrationTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockmobileDeviceRegistrationTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new mobileDeviceRegistrationRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new mobileDeviceRegistrationResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockmobileDeviceRegistrationTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + 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(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/securePaymentContainerControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/securePaymentContainerControllerTest.cs index 591c594a..386363e4 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/securePaymentContainerControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/securePaymentContainerControllerTest.cs @@ -1,67 +1,67 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class securePaymentContainerTest : ApiCoreTestBase + [TestFixture] + public class SecurePaymentContainerTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MocksecurePaymentContainerTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new securePaymentContainerRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new securePaymentContainerResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MocksecurePaymentContainerTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new securePaymentContainerRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new securePaymentContainerResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); - } - } + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/sendCustomerTransactionReceiptControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/sendCustomerTransactionReceiptControllerTest.cs index 59ac0c07..25b48439 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/sendCustomerTransactionReceiptControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/sendCustomerTransactionReceiptControllerTest.cs @@ -1,68 +1,68 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class sendCustomerTransactionReceiptTest : ApiCoreTestBase + [TestFixture] + public class SendCustomerTransactionReceiptTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MocksendCustomerTransactionReceiptTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new sendCustomerTransactionReceiptRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new sendCustomerTransactionReceiptResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MocksendCustomerTransactionReceiptTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new sendCustomerTransactionReceiptRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new sendCustomerTransactionReceiptResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs index 1479e9b2..1054ca1f 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs @@ -1,46 +1,46 @@ +//using System; +//using System.Collections.Generic; +//using AuthorizeNet.Api.Contracts.V1; +//using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +//using AuthorizeNet.Util; +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - //using System; - //using System.Collections.Generic; - //using AuthorizeNet.Api.Contracts.V1; - //using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - //using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class transactionTest : ApiCoreTestBase + [TestFixture] + public class TransactionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MocktransactionTest() - { - //object transactionRequest does not exist - /* + [Test] + public void MocktransactionTest() + { + //object transactionRequest does not exist + /* //define all mocked objects as final var mockController = GetMockController(); var mockRequest = new transactionRequest @@ -69,6 +69,6 @@ public void MocktransactionTest() Assert.IsNotNull(controllerResponse.Yyyyy); LogHelper.info(Logger, "transaction: Details:{0}", controllerResponse.Yyyyy); */ - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerPaymentProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerPaymentProfileControllerTest.cs index b601f3ab..978dde1a 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerPaymentProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerPaymentProfileControllerTest.cs @@ -1,71 +1,73 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateCustomerPaymentProfileTest : ApiCoreTestBase + [TestFixture] + public class UpdateCustomerPaymentProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockupdateCustomerPaymentProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateCustomerPaymentProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new updateCustomerPaymentProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - validationDirectResponse = "validatedResp", - }; + [Test] + public void MockupdateCustomerPaymentProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new UpdateCustomerPaymentProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new UpdateCustomerPaymentProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + validationDirectResponse = "validatedResp", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.validationDirectResponse); - LogHelper.info(Logger, "updateCustomerPaymentProfile: Details:{0}", controllerResponse.validationDirectResponse); - } - } + Assert.IsNotNull(controllerResponse.validationDirectResponse); + LogHelper.Info(Logger, "updateCustomerPaymentProfile: Details:{0}", controllerResponse.validationDirectResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerProfileControllerTest.cs index b4442156..17b317a6 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerProfileControllerTest.cs @@ -1,68 +1,68 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateCustomerProfileTest : ApiCoreTestBase + [TestFixture] + public class UpdateCustomerProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockupdateCustomerProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateCustomerProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new updateCustomerProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockupdateCustomerProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new updateCustomerProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new updateCustomerProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerShippingAddressControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerShippingAddressControllerTest.cs index 22301a75..5d32a4cb 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerShippingAddressControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerShippingAddressControllerTest.cs @@ -1,68 +1,69 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateCustomerShippingAddressTest : ApiCoreTestBase + [TestFixture] + public class UpdateCustomerShippingAddressTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockupdateCustomerShippingAddressTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateCustomerShippingAddressRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new updateCustomerShippingAddressResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockupdateCustomerShippingAddressTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new updateCustomerShippingAddressRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new updateCustomerShippingAddressResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateHeldTransactionControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateHeldTransactionControllerTest.cs index 4281be7f..3e1c5174 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateHeldTransactionControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateHeldTransactionControllerTest.cs @@ -1,77 +1,78 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateHeldTransactionTest : ApiCoreTestBase + [TestFixture] + public class UpdateHeldTransactionTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockupdateHeldTransactionTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateHeldTransactionRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; + [Test] + public void MockupdateHeldTransactionTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new updateHeldTransactionRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; - var transactionResponse = new transactionResponse() - { - accountNumber = "1234", - }; + var transactionResponse = new transactionResponse() + { + accountNumber = "1234", + }; - var mockResponse = new updateHeldTransactionResponse - { - refId = "1234", - sessionToken = "sessiontoken", - transactionResponse = transactionResponse - }; + var mockResponse = new updateHeldTransactionResponse + { + refId = "1234", + sessionToken = "sessiontoken", + transactionResponse = transactionResponse + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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, "updateHeldTransaction: Details:{0}", controllerResponse.transactionResponse.accountNumber); - } - } + Assert.IsNotNull(controllerResponse.transactionResponse); + LogHelper.Info(Logger, "updateHeldTransaction: Details:{0}", controllerResponse.transactionResponse.accountNumber); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateMerchantDetailsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateMerchantDetailsControllerTest.cs index 7a87ce67..185da78f 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateMerchantDetailsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateMerchantDetailsControllerTest.cs @@ -1,69 +1,69 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateMerchantDetailsTest : ApiCoreTestBase + [TestFixture] + public class UpdateMerchantDetailsTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [SetUp] + public new void SetUp() + { + base.SetUp(); + } - [SetUp] - public new void SetUp() + [TearDown] + public new void TearDown() { - base.SetUp(); - } + base.TearDown(); + } - [TearDown] - public new void TearDown() + [Test] + public void MockupdateMerchantDetailsTest() { - base.TearDown(); - } + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new updateMerchantDetailsRequest + { + merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new updateMerchantDetailsResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - [Test] - public void MockupdateMerchantDetailsTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateMerchantDetailsRequest - { - merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new updateMerchantDetailsResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - SetMockControllerExpectations( - 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); - - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/updateSplitTenderGroupControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/updateSplitTenderGroupControllerTest.cs index 021a9b27..b845196a 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/updateSplitTenderGroupControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/updateSplitTenderGroupControllerTest.cs @@ -1,68 +1,68 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class updateSplitTenderGroupTest : ApiCoreTestBase + [TestFixture] + public class UpdateSplitTenderGroupTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockupdateSplitTenderGroupTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new updateSplitTenderGroupRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new updateSplitTenderGroupResponse - { - refId = "1234", - sessionToken = "sessiontoken", - }; + [Test] + public void MockupdateSplitTenderGroupTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new updateSplitTenderGroupRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new updateSplitTenderGroupResponse + { + refId = "1234", + sessionToken = "sessiontoken", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(Environment.CUSTOM); + //mockController.MockObject.Execute(); + // or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM); + var controllerResponse = mockController.MockObject.GetApiResponse(); + Assert.IsNotNull(controllerResponse); - } - } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/validateCustomerPaymentProfileControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/validateCustomerPaymentProfileControllerTest.cs index fa66eacf..c9e3ec4a 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/validateCustomerPaymentProfileControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/validateCustomerPaymentProfileControllerTest.cs @@ -1,71 +1,72 @@ +using System; +using System.Collections.Generic; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.MockTest { - using System; - using System.Collections.Generic; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class validateCustomerPaymentProfileTest : ApiCoreTestBase + [TestFixture] + public class ValidateCustomerPaymentProfileTest : ApiCoreTestBase { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() + [SetUp] + public new void SetUp() { - base.SetUp(); - } + base.SetUp(); + } - [TearDown] - public new void TearDown() + [TearDown] + public new void TearDown() { - base.TearDown(); - } + base.TearDown(); + } - [Test] - public void MockvalidateCustomerPaymentProfileTest() - { - //define all mocked objects as final - var mockController = GetMockController(); - var mockRequest = new validateCustomerPaymentProfileRequest - { - merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, - }; - var mockResponse = new validateCustomerPaymentProfileResponse - { - refId = "1234", - sessionToken = "sessiontoken", - directResponse = "direct", - }; + [Test] + public void MockvalidateCustomerPaymentProfileTest() + { + //define all mocked objects as final + var mockController = GetMockController(); + var mockRequest = new validateCustomerPaymentProfileRequest + { + merchantAuthentication = new merchantAuthenticationType { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey }, + }; + var mockResponse = new validateCustomerPaymentProfileResponse + { + refId = "1234", + sessionToken = "sessiontoken", + directResponse = "direct", + }; - var errorResponse = new ANetApiResponse(); - var results = new List(); - const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; + var errorResponse = new ANetApiResponse(); + var results = new List(); + const messageTypeEnum messageTypeOk = messageTypeEnum.Ok; - SetMockControllerExpectations( - 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); + SetMockControllerExpectations( + mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + mockController.MockObject.Execute(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.directResponse); - LogHelper.info(Logger, "validateCustomerPaymentProfile: Details:{0}", controllerResponse.directResponse); - } - } + Assert.IsNotNull(controllerResponse.directResponse); + LogHelper.Info(Logger, "validateCustomerPaymentProfile: Details:{0}", controllerResponse.directResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/ArbSubscriptionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/ArbSubscriptionSampleTest.cs index 9673e9d7..30178fe5 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/ArbSubscriptionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/ArbSubscriptionSampleTest.cs @@ -1,160 +1,165 @@ +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + namespace AuthorizeNet.Api.Controllers.SampleTest { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class ArbSubscriptionSampleTest : ApiCoreTestBase { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() { - base.SetUp(); - } - - [TearDown] - public new void TearDown() { - base.TearDown(); - } - - [Test] - public void SampleCodeGetSubscriptionList() - { - LogHelper.info(Logger, "Sample GetSubscriptionList"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a subscription - var createRequest = new ARBCreateSubscriptionRequest - { - refId = RefId, - subscription = ArbSubscriptionOne, - }; - - var createController = new ARBCreateSubscriptionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - Assert.IsNotNull(createResponse.subscriptionId); - LogHelper.info(Logger, "Created Subscription: {0}", createResponse.subscriptionId); - var subscriptionId = createResponse.subscriptionId; - - //get subscription details - var getRequest = new ARBGetSubscriptionStatusRequest - { - refId = RefId, - subscriptionId = subscriptionId - }; - var getController = new ARBGetSubscriptionStatusController(getRequest); - var getResponse = getController.ExecuteWithApiResponse(); - Assert.IsNotNull(getResponse.status); - Logger.info(String.Format("Subscription Status: {0}", getResponse.status)); - - //get subscription list that contains only the subscription created above. - var listRequest = new ARBGetSubscriptionListRequest - { - refId = RefId, - searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, - sorting = new ARBGetSubscriptionListSorting - { - orderDescending = true, - orderBy = ARBGetSubscriptionListOrderFieldEnum.createTimeStampUTC, - }, - paging = new Paging - { - limit = 500, - offset = 1, - }, - }; - var listController = new ARBGetSubscriptionListController(listRequest); - var listResponse = listController.ExecuteWithApiResponse(); - LogHelper.info(Logger, "Subscription Count: {0}", listResponse.totalNumInResultSet); - Assert.IsTrue(0 < listResponse.totalNumInResultSet); - - //validation of list - var subscriptionsArray = listResponse.subscriptionDetails; - foreach (var aSubscription in subscriptionsArray) - { - Assert.IsTrue(0 < aSubscription.id); - LogHelper.info(Logger, "Subscription Id: {0}, Status:{1}, PaymentMethod: {2}, Amount: {3}, Account:{4}", - aSubscription.id, aSubscription.status, aSubscription.paymentMethod, aSubscription.amount, aSubscription.accountNumber); - } - - //cancel subscription - var cancelRequest = new ARBCancelSubscriptionRequest - { - merchantAuthentication = CustomMerchantAuthenticationType, - refId = RefId, - subscriptionId = subscriptionId - }; - var cancelController = new ARBCancelSubscriptionController(cancelRequest); - var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment); - Assert.IsNotNull(cancelResponse.messages); - Logger.info(String.Format("Subscription Cancelled: {0}", subscriptionId)); - } - - [Test] - public void ARBGetSubscriptionSampleTest() - { - LogHelper.info(Logger, "Sample GetSubscriptionList"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a subscription - var createRequest = new ARBCreateSubscriptionRequest - { - refId = RefId, - subscription = ArbSubscriptionOne, - }; - - var createController = new ARBCreateSubscriptionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - Assert.IsNotNull(createResponse.subscriptionId); - LogHelper.info(Logger, "Created Subscription: {0}", createResponse.subscriptionId); - var subscriptionId = createResponse.subscriptionId; - - //get subscription details - var getRequest = new ARBGetSubscriptionRequest - { - refId = RefId, - subscriptionId = subscriptionId - }; - var getController = new ARBGetSubscriptionController(getRequest); - var getResponse = getController.ExecuteWithApiResponse(); - Assert.IsNotNull(getResponse.subscription); - Logger.info(String.Format("Subscription Name : {0}", getResponse.subscription.name)); - Assert.AreEqual(ArbSubscriptionOne.name, getResponse.subscription.name); - Assert.AreEqual(ArbSubscriptionOne.amountSpecified, getResponse.subscription.amountSpecified); - - //cancel subscription - var cancelRequest = new ARBCancelSubscriptionRequest - { - merchantAuthentication = CustomMerchantAuthenticationType, - refId = RefId, - subscriptionId = subscriptionId - }; - var cancelController = new ARBCancelSubscriptionController(cancelRequest); - var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment); - Assert.IsNotNull(cancelResponse.messages); - Logger.info(String.Format("Subscription Cancelled: {0}", subscriptionId)); - } - } + [TestFixture] + public class ArbSubscriptionSampleTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + [Test] + public void SampleCodeGetSubscriptionList() + { + LogHelper.Info(Logger, "Sample GetSubscriptionList"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a subscription + var createRequest = new ARBCreateSubscriptionRequest + { + refId = RefId, + subscription = ArbSubscriptionOne, + }; + + var createController = new ARBCreateSubscriptionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + Assert.IsNotNull(createResponse.subscriptionId); + LogHelper.Info(Logger, "Created Subscription: {0}", createResponse.subscriptionId); + var subscriptionId = createResponse.subscriptionId; + + //get subscription details + var getRequest = new ARBGetSubscriptionStatusRequest + { + refId = RefId, + subscriptionId = subscriptionId + }; + var getController = new ARBGetSubscriptionStatusController(getRequest); + var getResponse = getController.ExecuteWithApiResponse(); + Assert.IsNotNull(getResponse.status); + Logger.Info(String.Format("Subscription Status: {0}", getResponse.status)); + + //get subscription list that contains only the subscription created above. + var listRequest = new ARBGetSubscriptionListRequest + { + refId = RefId, + searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, + sorting = new ARBGetSubscriptionListSorting + { + orderDescending = true, + orderBy = ARBGetSubscriptionListOrderFieldEnum.createTimeStampUTC, + }, + paging = new Paging + { + limit = 500, + offset = 1, + }, + }; + var listController = new ARBGetSubscriptionListController(listRequest); + var listResponse = listController.ExecuteWithApiResponse(); + LogHelper.Info(Logger, "Subscription Count: {0}", listResponse.totalNumInResultSet); + Assert.IsTrue(0 < listResponse.totalNumInResultSet); + + //validation of list + var subscriptionsArray = listResponse.subscriptionDetails; + foreach (var aSubscription in subscriptionsArray) + { + Assert.IsTrue(0 < aSubscription.id); + LogHelper.Info(Logger, "Subscription Id: {0}, Status:{1}, PaymentMethod: {2}, Amount: {3}, Account:{4}", + aSubscription.id, aSubscription.status, aSubscription.paymentMethod, aSubscription.amount, aSubscription.accountNumber); + } + + //cancel subscription + var cancelRequest = new ARBCancelSubscriptionRequest + { + merchantAuthentication = CustomMerchantAuthenticationType, + refId = RefId, + subscriptionId = subscriptionId + }; + var cancelController = new ARBCancelSubscriptionController(cancelRequest); + var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment); + Assert.IsNotNull(cancelResponse.messages); + Logger.Info(String.Format("Subscription Cancelled: {0}", subscriptionId)); + } + + [Test] + public void ARBGetSubscriptionSampleTest() + { + LogHelper.Info(Logger, "Sample GetSubscriptionList"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a subscription + var createRequest = new ARBCreateSubscriptionRequest + { + refId = RefId, + subscription = ArbSubscriptionOne, + }; + + var createController = new ARBCreateSubscriptionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + Assert.IsNotNull(createResponse.subscriptionId); + LogHelper.Info(Logger, "Created Subscription: {0}", createResponse.subscriptionId); + var subscriptionId = createResponse.subscriptionId; + + //get subscription details + var getRequest = new ARBGetSubscriptionRequest + { + refId = RefId, + subscriptionId = subscriptionId + }; + var getController = new ARBGetSubscriptionController(getRequest); + var getResponse = getController.ExecuteWithApiResponse(); + Assert.IsNotNull(getResponse.subscription); + Logger.Info(String.Format("Subscription Name : {0}", getResponse.subscription.name)); + Assert.AreEqual(ArbSubscriptionOne.name, getResponse.subscription.name); + Assert.AreEqual(ArbSubscriptionOne.amountSpecified, getResponse.subscription.amountSpecified); + + //cancel subscription + var cancelRequest = new ARBCancelSubscriptionRequest + { + merchantAuthentication = CustomMerchantAuthenticationType, + refId = RefId, + subscriptionId = subscriptionId + }; + var cancelController = new ARBCancelSubscriptionController(cancelRequest); + var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment); + Assert.IsNotNull(cancelResponse.messages); + Logger.Info(String.Format("Subscription Cancelled: {0}", subscriptionId)); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs index e528e61f..e9ec8830 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs @@ -1,194 +1,193 @@ -namespace AuthorizeNet.Api.Controllers.SampleTest +using System; +using System.Globalization; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + +namespace AuthorizeNet.Api.Controllers.SampleTest { - using System; - using System.Globalization; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class CreateCustomerProfileFromTransactionSampleTest : ApiCoreTestBase - { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - [Test] - public void SampleCodeCreateCustomerProfileFromTransaction() - { - LogHelper.info(Logger, "Sample createCustomerProfileFromTransaction"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //setup transaction to use - var transactionId = GetTransactionId(); - var createRequest = new createCustomerProfileFromTransactionRequest - { - refId = RefId, - transId = transactionId.ToString(CultureInfo.InvariantCulture), - }; - //execute and get response - var createController = new createCustomerProfileFromTransactionController(createRequest); - var createResponse = createController.ExecuteWithApiResponse(); - - //validate - Assert.NotNull(createResponse); - Assert.NotNull(createResponse.messages); - Assert.AreEqual(messageTypeEnum.Ok, createResponse.messages.resultCode); - Assert.NotNull(createResponse.customerProfileId); - Assert.NotNull(createResponse.customerPaymentProfileIdList); - Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length); - - long customerProfileId; - long.TryParse(createResponse.customerProfileId, out customerProfileId); - Assert.AreNotEqual(0, customerProfileId); - - long customerPaymentProfileId; - long.TryParse(createResponse.customerPaymentProfileIdList[0], out customerPaymentProfileId); - Assert.AreNotEqual(0, customerPaymentProfileId); - //if shipping profile is added, shipping profile id will be retrieved too - } - - private long GetTransactionId() - { - //Creates a credit card transaction and returns the transactions ID. - - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; - var aCustomer = new customerDataType { email = string.Format( "{0}@b.bla", Counter)}; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = creditCard }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - customer = aCustomer, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.NotNull(response); - Assert.NotNull(response.messages); - Assert.NotNull(response.transactionResponse); - Assert.AreEqual(messageTypeEnum.Ok, response.messages.resultCode); - Assert.False(string.IsNullOrEmpty(response.transactionResponse.transId)); - long transactionId; - long.TryParse(response.transactionResponse.transId, out transactionId); - Assert.AreNotEqual(0, transactionId); - - return transactionId; - } - - [Test] - public void CreateTransactionFromProfile() - { - //Creates a customer profile and customer payment profile - //Then uses those profiles to create a transaction request - - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - Random rnd = new Random(DateTime.Now.Millisecond); - - string profileRandom = rnd.Next(9999).ToString(); - - //Create profile to use in transaction creation - var profileShipTo = new customerAddressType - { - address = profileRandom + " First St NE", - city = "Bellevue", - state = "WA", - zip = "98007", - company = "Sample Co " + profileRandom, - country = "USA", - firstName = "Sample" + profileRandom, - lastName = "Name" + profileRandom, - phoneNumber = "425 123 4567", - }; - - var paymentProfile = new customerPaymentProfileType - { - billTo = profileShipTo, - customerType = customerTypeEnum.individual, - payment = new paymentType { Item = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" } }, - }; - - var createProfileReq = new createCustomerProfileRequest - { - profile = new customerProfileType - { - description = "SampleProfile " + profileRandom, - email = "SampleEmail" + profileRandom + "@Visa.com", - shipToList = new customerAddressType[] { profileShipTo }, - paymentProfiles = new customerPaymentProfileType[] { paymentProfile } - } - }; - - var createProfileCont = new createCustomerProfileController(createProfileReq); - createProfileCont.Execute(); - var createProfileResp = createProfileCont.GetApiResponse(); - - //Get profile using getCustomerProfileRequest - var getCustReq = new getCustomerProfileRequest { customerProfileId = createProfileResp.customerProfileId }; - var getCustCont = new getCustomerProfileController(getCustReq); - getCustCont.Execute(); - var getCustResp = getCustCont.GetApiResponse(); - - - //Create Transaction - //Create instance of customer payment profile using the profile IDs from the profile we loaded above. - var custPaymentProfile = new AuthorizeNet.Api.Contracts.V1.customerProfilePaymentType { customerProfileId = getCustResp.profile.customerProfileId, paymentProfile = new paymentProfile { paymentProfileId = getCustResp.profile.paymentProfiles[0].customerPaymentProfileId } }; - - var testTxn = new transactionRequestType - { - profile = custPaymentProfile, - amount = (decimal)rnd.Next(9999) / 100, - transactionType = transactionTypeEnum.authCaptureTransaction.ToString() - }; - - var txnControler = new createTransactionController(new createTransactionRequest { transactionRequest = testTxn }); - txnControler.Execute(); - var txnControlerResp = txnControler.GetApiResponse(); - - //verify transaction succeeded. - Assert.AreEqual("1", txnControlerResp.transactionResponse.messages[0].code); - - } - } + [TestFixture] + public class CreateCustomerProfileFromTransactionSampleTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + [Test] + public void SampleCodeCreateCustomerProfileFromTransaction() + { + LogHelper.Info(Logger, "Sample createCustomerProfileFromTransaction"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //setup transaction to use + var transactionId = GetTransactionId(); + var createRequest = new createCustomerProfileFromTransactionRequest + { + refId = RefId, + transId = transactionId.ToString(CultureInfo.InvariantCulture), + }; + //execute and get response + var createController = new CreateCustomerProfileFromTransactionController(createRequest); + var createResponse = createController.ExecuteWithApiResponse(); + + //validate + Assert.NotNull(createResponse); + Assert.NotNull(createResponse.messages); + Assert.AreEqual(messageTypeEnum.Ok, createResponse.messages.resultCode); + Assert.NotNull(createResponse.customerProfileId); + Assert.NotNull(createResponse.customerPaymentProfileIdList); + Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length); + + long.TryParse(createResponse.customerProfileId, out var customerProfileId); + Assert.AreNotEqual(0, customerProfileId); + + long.TryParse(createResponse.customerPaymentProfileIdList[0], out var customerPaymentProfileId); + Assert.AreNotEqual(0, customerPaymentProfileId); + //if shipping profile is added, shipping profile id will be retrieved too + } + + private long GetTransactionId() + { + //Creates a credit card transaction and returns the transactions ID. + + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var aCustomer = new customerDataType { email = string.Format("{0}@b.bla", Counter) }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = creditCard }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + customer = aCustomer, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.NotNull(response); + Assert.NotNull(response.messages); + Assert.NotNull(response.transactionResponse); + Assert.AreEqual(messageTypeEnum.Ok, response.messages.resultCode); + Assert.False(string.IsNullOrEmpty(response.transactionResponse.transId)); + long.TryParse(response.transactionResponse.transId, out var transactionId); + Assert.AreNotEqual(0, transactionId); + + return transactionId; + } + + [Test] + public void CreateTransactionFromProfile() + { + //Creates a customer profile and customer payment profile + //Then uses those profiles to create a transaction request + + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + Random rnd = new Random(DateTime.Now.Millisecond); + + string profileRandom = rnd.Next(9999).ToString(); + + //Create profile to use in transaction creation + var profileShipTo = new customerAddressType + { + address = profileRandom + " First St NE", + city = "Bellevue", + state = "WA", + zip = "98007", + company = "Sample Co " + profileRandom, + country = "USA", + firstName = "Sample" + profileRandom, + lastName = "Name" + profileRandom, + phoneNumber = "425 123 4567", + }; + + var paymentProfile = new customerPaymentProfileType + { + billTo = profileShipTo, + customerType = customerTypeEnum.individual, + payment = new paymentType { Item = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" } }, + }; + + var createProfileReq = new createCustomerProfileRequest + { + profile = new customerProfileType + { + description = "SampleProfile " + profileRandom, + email = "SampleEmail" + profileRandom + "@Visa.com", + shipToList = new customerAddressType[] { profileShipTo }, + paymentProfiles = new customerPaymentProfileType[] { paymentProfile } + } + }; + + var createProfileCont = new CreateCustomerProfileController(createProfileReq); + createProfileCont.Execute(); + var createProfileResp = createProfileCont.GetApiResponse(); + + //Get profile using getCustomerProfileRequest + var getCustReq = new getCustomerProfileRequest { customerProfileId = createProfileResp.customerProfileId }; + var getCustCont = new GetCustomerProfileController(getCustReq); + getCustCont.Execute(); + var getCustResp = getCustCont.GetApiResponse(); + + + //Create Transaction + //Create instance of customer payment profile using the profile IDs from the profile we loaded above. + var custPaymentProfile = new customerProfilePaymentType { customerProfileId = getCustResp.profile.customerProfileId, paymentProfile = new paymentProfile { paymentProfileId = getCustResp.profile.paymentProfiles[0].customerPaymentProfileId } }; + + var testTxn = new transactionRequestType + { + profile = custPaymentProfile, + amount = (decimal)rnd.Next(9999) / 100, + transactionType = transactionTypeEnum.authCaptureTransaction.ToString() + }; + + var txnControler = new CreateTransactionController(new createTransactionRequest { transactionRequest = testTxn }); + txnControler.Execute(); + var txnControlerResp = txnControler.GetApiResponse(); + + //verify transaction succeeded. + Assert.AreEqual("1", txnControlerResp.transactionResponse.messages[0].code); + + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs index 675495c9..e603273d 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs @@ -1,543 +1,543 @@ -using AuthorizeNet.Utility; +using AuthorizeNet.Utility; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; namespace AuthorizeNet.Api.Controllers.SampleTest { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class CreateTransactionSampleTest : ApiCoreTestBase - { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - [Test] - public void SampleCodeCreateTransaction() - { - LogHelper.info(Logger, "Sample createTransaction"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var transactionRequestType = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - order = OrderType, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - - //create controller, execute request and get response - var createController = new createTransactionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - - //Test response - Assert.IsNotNull(createResponse.transactionResponse); - LogHelper.info(Logger, "Response: {0}", createResponse); - DisplayResponse(createResponse, "Create Transaction Response"); - LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); - Assert.IsNotNull(createResponse.transactionResponse.transId); - long transId; - Assert.IsTrue( long.TryParse(createResponse.transactionResponse.transId, out transId)); - if (0 == transId) - { - ValidateFailure(createController, createResponse); - Assert.IsNotNull(createResponse.transactionResponse.errors); - foreach (var error in createResponse.transactionResponse.errors) - { - LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); - } - } - else - { - Assert.AreNotEqual(0, transId); - ValidateSuccess(createController, createResponse); - } - } - - /// - /// This sample demonstrates charging a profile using the CreateTransaction API method - /// See API example here http://developer.authorize.net/api/reference/#payment-transactions-charge-a-customer-profile - /// - [Test] - public void SampleCodeCreateTransactionUsingProfile() - { - LogHelper.info(Logger, "Sample createTransaction using Profile"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - // Use CIM to create the profile we're going to charge - var customerProfileId = "0"; - var paymentProfileId = "0"; - Assert.IsTrue(createProfile(out customerProfileId, out paymentProfileId)); - - //create a customer payment profile - customerProfilePaymentType profileToCharge = new customerProfilePaymentType(); - profileToCharge.customerProfileId = customerProfileId; - profileToCharge.paymentProfile = new paymentProfile { paymentProfileId = paymentProfileId}; - - var transactionRequestType = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - profile = profileToCharge - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - //create controller, execute and get response - var createController = new createTransactionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - - //test response - Assert.IsNotNull(createResponse.transactionResponse); - LogHelper.info(Logger, "Response: {0}", createResponse); - DisplayResponse(createResponse, "Create Transaction Response"); - LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); - Assert.IsNotNull(createResponse.transactionResponse.transId); - long transId; - Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out transId)); - if (0 == transId) - { - ValidateFailure(createController, createResponse); - Assert.IsNotNull(createResponse.transactionResponse.errors); - foreach (var error in createResponse.transactionResponse.errors) - { - LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); - } - } - else - { - Assert.AreNotEqual(0, transId); - ValidateSuccess(createController, createResponse); - } - } - - //Create Customer Profile and Customer Payment Profile, returning their IDs. - private Boolean createProfile(out String customerProfileId, out String paymentProfileId) - { - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - var rnd = new AnetRandom(DateTime.Now.Millisecond); - string custIndx = rnd.Next(99999).ToString(); - - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; - var paymentType = new paymentType {Item = creditCard}; - - var paymentProfile = new customerPaymentProfileType{ payment = paymentType }; - - var createRequest = new createCustomerProfileRequest - { - profile = new customerProfileType{ - merchantCustomerId = "TSTCSTER"+custIndx, - paymentProfiles = new customerPaymentProfileType[]{ paymentProfile } - } - }; - - //create profiles and get response - var createController = new createCustomerProfileController(createRequest); - var createResponse = createController.ExecuteWithApiResponse(); - - //validate response - if (messageTypeEnum.Ok != createResponse.messages.resultCode) - { - customerProfileId = "0"; - paymentProfileId = "0"; - return false; - } - else - { - Assert.NotNull(createResponse.customerProfileId); - Assert.NotNull(createResponse.customerPaymentProfileIdList); - Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length); - - customerProfileId = createResponse.customerProfileId; - paymentProfileId = createResponse.customerPaymentProfileIdList[0]; - - return true; - } - } - - [Test] - public void SampleCodeCreateTransactionWithCreditCard() - { - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data for transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; - - //standard api call to retrieve response - var paymentType = new paymentType {Item = creditCard}; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest {transactionRequest = transactionRequest}; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - [Test] - [Ignore("To run this test, use your ApplePay ApiLoginIdKey and TransactionKey to configure this test below.")] - public void SampleCodeCreateTransactionWithApplePay() - { - // The test setup. - ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType - { - name = "????", // your ApplyPay ApiLoginIdKey - ItemElementName = ItemChoiceType.transactionKey, - Item = "????" // your ApplyPay TransactionKey - }; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var opaqueData = new opaqueDataType - { - dataDescriptor = "COMMON.APPLE.INAPP.PAYMENT", - dataValue = - "eyJkYXRhIjoiQkRQTldTdE1tR2V3UVVXR2c0bzdFXC9qKzFjcTFUNzhxeVU4NGI2N2l0amNZSTh3UFlBT2hzaGpoWlBycWRVcjRYd1BNYmo0emNHTWR5KysxSDJWa1BPWStCT01GMjV1YjE5Y1g0bkN2a1hVVU9UakRsbEIxVGdTcjhKSFp4Z3A5ckNnc1NVZ2JCZ0tmNjBYS3V0WGY2YWpcL284WkliS25yS1E4U2gwb3VMQUtsb1VNbit2UHU0K0E3V0tycXJhdXo5SnZPUXA2dmhJcStIS2pVY1VOQ0lUUHlGaG1PRXRxK0grdzB2UmExQ0U2V2hGQk5uQ0hxenpXS2NrQlwvMG5xTFpSVFliRjBwK3Z5QmlWYVdIZWdoRVJmSHhSdGJ6cGVjelJQUHVGc2ZwSFZzNDhvUExDXC9rXC8xTU5kNDdrelwvcEhEY1JcL0R5NmFVTStsTmZvaWx5XC9RSk4rdFMzbTBIZk90SVNBUHFPbVhlbXZyNnhKQ2pDWmxDdXcwQzltWHpcL29iSHBvZnVJRVM4cjljcUdHc1VBUERwdzdnNjQybTRQendLRitIQnVZVW5lV0RCTlNEMnU2amJBRzMiLCJ2ZXJzaW9uIjoiRUNfdjEiLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiOTRlZTA1OTMzNWU1ODdlNTAxY2M0YmY5MDYxM2UwODE0ZjAwYTdiMDhiYzdjNjQ4ZmQ4NjVhMmFmNmEyMmNjMiIsInRyYW5zYWN0aW9uSWQiOiJjMWNhZjVhZTcyZjAwMzlhODJiYWQ5MmI4MjgzNjM3MzRmODViZjJmOWNhZGYxOTNkMWJhZDlkZGNiNjBhNzk1IiwiZXBoZW1lcmFsUHVibGljS2V5IjoiTUlJQlN6Q0NBUU1HQnlxR1NNNDlBZ0V3Z2ZjQ0FRRXdMQVlIS29aSXpqMEJBUUloQVBcL1wvXC9cLzhBQUFBQkFBQUFBQUFBQUFBQUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL01Gc0VJUFwvXC9cL1wvOEFBQUFCQUFBQUFBQUFBQUFBQUFBQVwvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cLzhCQ0JheGpYWXFqcVQ1N1BydlZWMm1JYThaUjBHc014VHNQWTd6ancrSjlKZ1N3TVZBTVNkTmdpRzV3U1RhbVo0NFJPZEpyZUJuMzZRQkVFRWF4ZlI4dUVzUWtmNHZPYmxZNlJBOG5jRGZZRXQ2ek9nOUtFNVJkaVl3cFpQNDBMaVwvaHBcL200N242MHA4RDU0V0s4NHpWMnN4WHM3THRrQm9ONzlSOVFJaEFQXC9cL1wvXC84QUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cLys4NXZxdHB4ZWVoUE81eXNMOFl5VlJBZ0VCQTBJQUJHbStnc2wwUFpGVFwva0RkVVNreHd5Zm84SnB3VFFRekJtOWxKSm5tVGw0REdVdkFENEdzZUdqXC9wc2hCWjBLM1RldXFEdFwvdERMYkUrOFwvbTB5Q21veHc9IiwicHVibGljS2V5SGFzaCI6IlwvYmI5Q05DMzZ1QmhlSEZQYm1vaEI3T28xT3NYMkora0pxdjQ4ek9WVmlRPSJ9LCJzaWduYXR1cmUiOiJNSUlEUWdZSktvWklodmNOQVFjQ29JSURNekNDQXk4Q0FRRXhDekFKQmdVckRnTUNHZ1VBTUFzR0NTcUdTSWIzRFFFSEFhQ0NBaXN3Z2dJbk1JSUJsS0FEQWdFQ0FoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQXdKekVsTUNNR0ExVUVBeDRjQUdNQWFBQnRBR0VBYVFCQUFIWUFhUUJ6QUdFQUxnQmpBRzhBYlRBZUZ3MHhOREF4TURFd05qQXdNREJhRncweU5EQXhNREV3TmpBd01EQmFNQ2N4SlRBakJnTlZCQU1lSEFCakFHZ0FiUUJoQUdrQVFBQjJBR2tBY3dCaEFDNEFZd0J2QUcwd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFOQzgra2d0Z212V0YxT3pqZ0ROcmpURUJSdW9cLzVNS3ZsTTE0NnBBZjdHeDQxYmxFOXc0ZklYSkFEN0ZmTzdRS2pJWFlOdDM5ckx5eTd4RHdiXC81SWtaTTYwVFoyaUkxcGo1NVVjOGZkNGZ6T3BrM2Z0WmFRR1hOTFlwdEcxZDlWN0lTODJPdXA5TU1vMUJQVnJYVFBITmNzTTk5RVBVblBxZGJlR2M4N20wckFnTUJBQUdqWERCYU1GZ0dBMVVkQVFSUk1FK0FFSFpXUHJXdEpkN1laNDMxaENnN1lGU2hLVEFuTVNVd0l3WURWUVFESGh3QVl3Qm9BRzBBWVFCcEFFQUFkZ0JwQUhNQVlRQXVBR01BYndCdGdoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQURnWUVBYlVLWUNrdUlLUzlRUTJtRmNNWVJFSW0ybCtYZzhcL0pYditHQlZRSmtPS29zY1k0aU5ERkFcL2JRbG9nZjlMTFU4NFRId05SbnN2VjNQcnY3UlRZODFncTBkdEM4elljQWFBa0NISUkzeXFNbko0QU91NkVPVzlrSmsyMzJnU0U3V2xDdEhiZkxTS2Z1U2dRWDhLWFFZdVpMazJScjYzTjhBcFhzWHdCTDNjSjB4Z2VBd2dkMENBUUV3T3pBbk1TVXdJd1lEVlFRREhod0FZd0JvQUcwQVlRQnBBRUFBZGdCcEFITUFZUUF1QUdNQWJ3QnRBaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWFCUUF3RFFZSktvWklodmNOQVFFQkJRQUVnWUJhSzNFbE9zdGJIOFdvb3NlREFCZitKZ1wvMTI5SmNJYXdtN2M2VnhuN1phc05iQXEzdEF0OFB0eSt1UUNnc3NYcVprTEE3a3oyR3pNb2xOdHY5d1ltdTlVandhcjFQSFlTK0JcL29Hbm96NTkxd2phZ1hXUnowbk1vNXkzTzFLelgwZDhDUkhBVmE4OFNyVjFhNUpJaVJldjNvU3RJcXd2NXh1WmxkYWc2VHI4dz09In0=" - }; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = opaqueData }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - [Test] - [Ignore("To run this test, use dataKey, dataValue, callId details and Merchant ApiLoginIdKey and TransactionKey to configure this test below.")] - public void SampleCodeCreateTransactionWithVisaCheckOut() - { - // The test setup. - ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType() - { - name = "5KP3u95bQpv", - ItemElementName = ItemChoiceType.transactionKey, - Item = "346HZ32z3fP4hTG2", - }; - - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var opaqueDataType = new opaqueDataType - { - dataDescriptor = "COMMON.VCO.ONLINE.PAYMENT", - dataKey = "NQzcMISSxLX789w+CGX+tXi3lKntO1dpZbZaREOUprVRByJkg1xnpc2Wx9aT5/BLOxQmHqmIsjjy+tF6HqKKGwovvXjIS3fE3y3tBRNbz8D7y6vYMup+AWbEvZqDEBSi", - dataValue = "+6hn53rUcggeZZti2IdBp3qNLa9ohAH87cFSc1BggZFNEpsrfdJbRViWwv/JbCNkHkOD6CpFlRO3gCDH2VEQTd8laqWR1ccHiZpdYDnOxfhUQpU9E18ZByW7j17puVWogh7HaItbDUL0YvIxxfClX9bohurOo1JHyUgBO9YxTj3CLY2RdRkjmipAQqOyxiGX9enFQjAHdPgKj2RxnVMYe8on5ei94zbtYUbI3fXrp3I+DJcZCGZ4SzrlnPAPpcn20qaIoaOTX/xuD+voRAUKb/KE5oy+CuSNBtyMBgrvWU0Lf3SLjGfE/FJx3Bh9/LABCwWBYQvtpo3DQkDItp8P5/3EOz7JwBFbFd9UQs8wm/J8YvJMd3Kf4MkQ1+KYyg17RH6OAcoNaqQxT3MjOSvVv3KAlKV82ZDco+IRTVPcjyVd/Vff0qDIqes08fPCQDhttefl/bh18urrmCnM9PcP7xJ0A8Ek7LRMLF19c81O7IIaEn0FXxq+UuV5oZArY+mE4GD08xizyd0hoW9pvsdZ7RkuPu4yK1yXPTAKbc3vTxrj0kamFWd4kRHapwLxcvawIQzrlQGQj5AUFkpEg1o1UGWz0vtGgqE08hplJehsTZwPw9KSaA+u5M79gXM3uLR8g2RlE5cEDRLy3aEv0ufeag+lt8zME9wzrfTK8zhjTdBGIAJqSUYto1JbiW9IEMJgjLaqEJhwO49pNlUgOJVp7BXO9JoHPM8PyS+vZlOCX6b0bip/+mCEok09L9B0IhnLjs95Q4kDZfCcQNfDIdLEPe5tLp8eGaSkK3HDoQFbZKCFyGmUTEEF19PScZURbYuGrwpxHqqAAhU87ZmdhRRdJbMTrWPhIvk9/kRzRIP2ciKu8ClNZIJ9azafIUBo7WdlYs+6QbLCn8UCNvYczrLXo3tGhVvHPheWWgmuxDYbHDyJu7SIPKgVvi6LrPYgg8g+I0pMWPojWmBdp85tMt+sQrWk2x325/pOrYXj8fc2W8PHtOAka1EltTdZiNsRKzA8orzLQrtvqtxhzgXMSTOEmosEAxA7DuQdKscL2BWWmiYsAOCNYQxtm/nR6PBAKZ5PDS6Wjk73hKTOeB6kA5E/H1ij15iJqNK6O1+4b4gpJHnHm7tccVQIK5w1EeLR1waqO2G4FMM5FoyA1WsSEQURQncDek0bK1ohcu73l5FLiq8he/H6gF3dEsKL6Z367ki59HKwnnJXfWj/WOUZxTbIho4H5i/lIcc0vSgFH84ReTjjiANEm+ccl5PcFV9wEVlbGXiOiJfeZ0mEzo9ghDyKEAGEDzZtHDwZzKEYyT92oFXkeewGQ6DJX7GSQPZ1MW17jAQODAqmzJcmwMunc7PwGvJcscRbxkXpGe7/asq2H4POz3ByBrBQHCl/+oUVtw8hEbavCpuEgXfWl09Sc3Dfg69UP8XBR80vWsP1YL8YtBxOmL2hinZc5SJZ4boulAOHiMQyKBwwkg2D1gJDEY9JzUJtbg3p06swB0UthNmVuo/1mV8047sB5QrjGCugEo87+vh9eV1EVvyLZLRFS+RIZoIpLR3UkO6Pe1s7MnO7ZvCsbz9sKNb0GtQPoFtU9b7KaCHgQ20vL7xjqTEmR2QwkHEriuGJ8a7oMdSd88w/e2InL1SfHCnS2JeWY9vY6RSTvmjkEf3BFGhHjFP5QRR3Bd8AVH/1YrFcxtSSJP5GeY3CVnJgjZToK+ngxsRzpDcEm6pz3RPUEIBNkk3c9plpdlMbyvuVVKXLSFdTdtAALRfiD9qhdpgGMqboZ0kXi+qn3irYXT19q8oQktoZ4ILkbzewloftLbfUTqQprA8cddy7/ikUKKhBoBVs/DAupRe9aRP3TLgIEz6eNNilZszXoFfUv9EgqOZ0EBb83KNV3HvbE2xGJcTArjRpmzszQQkNOpJnyRDtvPj7FU7K16UYQ9zQBrxnx5vnoWSaqNhzOxikd+hWZ6i5G7EPpCO+utdoMdyOTOoDAjBmiy5JsDHSVv4zvkT9ySYPH2PmS47mMEpZICKTAxuDrm3zTpT064P+7ivcGmaIyaBCkc4udIHaWSbi5XJ/ciXUxSqAtqaVcd5HD++6vjBzKhbAPU4shSBav6qCSp/XqFurEAJbkLB3VmXe7bghcM+VNPJHHiYlIdzndDaFENyaZCukypggK0Gf4cH+8CKI9YnQx9s4JMs4lX57i4IkkoJE7fjWaOHyxYM/AiKvWlMQtRO8Y5Yta454JfHVq7Mg11Wqu2Ex4q5QLNqKudVt3wveu3G1zoNFanW6i+d0Aa3hTdxerl9BacX/" - }; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = opaqueDataType }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - callId = "1482912778237697701" - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - [Test] - public void SampleCodeCreateTransactionWithPayPal() - { - /* + [TestFixture] + public class CreateTransactionSampleTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + [Test] + public void SampleCodeCreateTransaction() + { + LogHelper.Info(Logger, "Sample createTransaction"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var transactionRequestType = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + order = OrderType, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + + //create controller, execute request and get response + var createController = new CreateTransactionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + + //Test response + Assert.IsNotNull(createResponse.transactionResponse); + LogHelper.Info(Logger, "Response: {0}", createResponse); + DisplayResponse(createResponse, "Create Transaction Response"); + LogHelper.Info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); + Assert.IsNotNull(createResponse.transactionResponse.transId); + Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out var transId)); + if (0 == transId) + { + ValidateFailure(createController, createResponse); + Assert.IsNotNull(createResponse.transactionResponse.errors); + foreach (var error in createResponse.transactionResponse.errors) + { + LogHelper.Info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); + } + } + else + { + Assert.AreNotEqual(0, transId); + ValidateSuccess(createController, createResponse); + } + } + + /// + /// This sample demonstrates charging a profile using the CreateTransaction API method + /// See API example here http://developer.authorize.net/api/reference/#payment-transactions-charge-a-customer-profile + /// + [Test] + public void SampleCodeCreateTransactionUsingProfile() + { + LogHelper.Info(Logger, "Sample createTransaction using Profile"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + // Use CIM to create the profile we're going to charge + Assert.IsTrue(CreateProfile(out var customerProfileId, out var paymentProfileId)); + + //create a customer payment profile + customerProfilePaymentType profileToCharge = new customerProfilePaymentType + { + customerProfileId = customerProfileId, + paymentProfile = new paymentProfile { paymentProfileId = paymentProfileId } + }; + + var transactionRequestType = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + profile = profileToCharge + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + //create controller, execute and get response + var createController = new CreateTransactionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + + //test response + Assert.IsNotNull(createResponse.transactionResponse); + LogHelper.Info(Logger, "Response: {0}", createResponse); + DisplayResponse(createResponse, "Create Transaction Response"); + LogHelper.Info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); + Assert.IsNotNull(createResponse.transactionResponse.transId); + Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out var transId)); + if (0 == transId) + { + ValidateFailure(createController, createResponse); + Assert.IsNotNull(createResponse.transactionResponse.errors); + foreach (var error in createResponse.transactionResponse.errors) + { + LogHelper.Info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); + } + } + else + { + Assert.AreNotEqual(0, transId); + ValidateSuccess(createController, createResponse); + } + } + + //Create Customer Profile and Customer Payment Profile, returning their IDs. + private bool CreateProfile(out String customerProfileId, out String paymentProfileId) + { + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + var rnd = new AnetRandom(DateTime.Now.Millisecond); + string custIndx = rnd.Next(99999).ToString(); + + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var paymentType = new paymentType { Item = creditCard }; + + var paymentProfile = new customerPaymentProfileType { payment = paymentType }; + + var createRequest = new createCustomerProfileRequest + { + profile = new customerProfileType + { + merchantCustomerId = "TSTCSTER" + custIndx, + paymentProfiles = new customerPaymentProfileType[] { paymentProfile } + } + }; + + //create profiles and get response + var createController = new CreateCustomerProfileController(createRequest); + var createResponse = createController.ExecuteWithApiResponse(); + + //validate response + if (messageTypeEnum.Ok != createResponse.messages.resultCode) + { + customerProfileId = "0"; + paymentProfileId = "0"; + return false; + } + else + { + Assert.NotNull(createResponse.customerProfileId); + Assert.NotNull(createResponse.customerPaymentProfileIdList); + Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length); + + customerProfileId = createResponse.customerProfileId; + paymentProfileId = createResponse.customerPaymentProfileIdList[0]; + + return true; + } + } + + [Test] + public void SampleCodeCreateTransactionWithCreditCard() + { + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data for transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = creditCard }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + [Test] + [Ignore("To run this test, use your ApplePay ApiLoginIdKey and TransactionKey to configure this test below.")] + public void SampleCodeCreateTransactionWithApplePay() + { + // The test setup. + ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType + { + name = "????", // your ApplyPay ApiLoginIdKey + ItemElementName = ItemChoiceType.transactionKey, + Item = "????" // your ApplyPay TransactionKey + }; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var opaqueData = new opaqueDataType + { + dataDescriptor = "COMMON.APPLE.INAPP.PAYMENT", + dataValue = + "eyJkYXRhIjoiQkRQTldTdE1tR2V3UVVXR2c0bzdFXC9qKzFjcTFUNzhxeVU4NGI2N2l0amNZSTh3UFlBT2hzaGpoWlBycWRVcjRYd1BNYmo0emNHTWR5KysxSDJWa1BPWStCT01GMjV1YjE5Y1g0bkN2a1hVVU9UakRsbEIxVGdTcjhKSFp4Z3A5ckNnc1NVZ2JCZ0tmNjBYS3V0WGY2YWpcL284WkliS25yS1E4U2gwb3VMQUtsb1VNbit2UHU0K0E3V0tycXJhdXo5SnZPUXA2dmhJcStIS2pVY1VOQ0lUUHlGaG1PRXRxK0grdzB2UmExQ0U2V2hGQk5uQ0hxenpXS2NrQlwvMG5xTFpSVFliRjBwK3Z5QmlWYVdIZWdoRVJmSHhSdGJ6cGVjelJQUHVGc2ZwSFZzNDhvUExDXC9rXC8xTU5kNDdrelwvcEhEY1JcL0R5NmFVTStsTmZvaWx5XC9RSk4rdFMzbTBIZk90SVNBUHFPbVhlbXZyNnhKQ2pDWmxDdXcwQzltWHpcL29iSHBvZnVJRVM4cjljcUdHc1VBUERwdzdnNjQybTRQendLRitIQnVZVW5lV0RCTlNEMnU2amJBRzMiLCJ2ZXJzaW9uIjoiRUNfdjEiLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiOTRlZTA1OTMzNWU1ODdlNTAxY2M0YmY5MDYxM2UwODE0ZjAwYTdiMDhiYzdjNjQ4ZmQ4NjVhMmFmNmEyMmNjMiIsInRyYW5zYWN0aW9uSWQiOiJjMWNhZjVhZTcyZjAwMzlhODJiYWQ5MmI4MjgzNjM3MzRmODViZjJmOWNhZGYxOTNkMWJhZDlkZGNiNjBhNzk1IiwiZXBoZW1lcmFsUHVibGljS2V5IjoiTUlJQlN6Q0NBUU1HQnlxR1NNNDlBZ0V3Z2ZjQ0FRRXdMQVlIS29aSXpqMEJBUUloQVBcL1wvXC9cLzhBQUFBQkFBQUFBQUFBQUFBQUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL01Gc0VJUFwvXC9cL1wvOEFBQUFCQUFBQUFBQUFBQUFBQUFBQVwvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cLzhCQ0JheGpYWXFqcVQ1N1BydlZWMm1JYThaUjBHc014VHNQWTd6ancrSjlKZ1N3TVZBTVNkTmdpRzV3U1RhbVo0NFJPZEpyZUJuMzZRQkVFRWF4ZlI4dUVzUWtmNHZPYmxZNlJBOG5jRGZZRXQ2ek9nOUtFNVJkaVl3cFpQNDBMaVwvaHBcL200N242MHA4RDU0V0s4NHpWMnN4WHM3THRrQm9ONzlSOVFJaEFQXC9cL1wvXC84QUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cLys4NXZxdHB4ZWVoUE81eXNMOFl5VlJBZ0VCQTBJQUJHbStnc2wwUFpGVFwva0RkVVNreHd5Zm84SnB3VFFRekJtOWxKSm5tVGw0REdVdkFENEdzZUdqXC9wc2hCWjBLM1RldXFEdFwvdERMYkUrOFwvbTB5Q21veHc9IiwicHVibGljS2V5SGFzaCI6IlwvYmI5Q05DMzZ1QmhlSEZQYm1vaEI3T28xT3NYMkora0pxdjQ4ek9WVmlRPSJ9LCJzaWduYXR1cmUiOiJNSUlEUWdZSktvWklodmNOQVFjQ29JSURNekNDQXk4Q0FRRXhDekFKQmdVckRnTUNHZ1VBTUFzR0NTcUdTSWIzRFFFSEFhQ0NBaXN3Z2dJbk1JSUJsS0FEQWdFQ0FoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQXdKekVsTUNNR0ExVUVBeDRjQUdNQWFBQnRBR0VBYVFCQUFIWUFhUUJ6QUdFQUxnQmpBRzhBYlRBZUZ3MHhOREF4TURFd05qQXdNREJhRncweU5EQXhNREV3TmpBd01EQmFNQ2N4SlRBakJnTlZCQU1lSEFCakFHZ0FiUUJoQUdrQVFBQjJBR2tBY3dCaEFDNEFZd0J2QUcwd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFOQzgra2d0Z212V0YxT3pqZ0ROcmpURUJSdW9cLzVNS3ZsTTE0NnBBZjdHeDQxYmxFOXc0ZklYSkFEN0ZmTzdRS2pJWFlOdDM5ckx5eTd4RHdiXC81SWtaTTYwVFoyaUkxcGo1NVVjOGZkNGZ6T3BrM2Z0WmFRR1hOTFlwdEcxZDlWN0lTODJPdXA5TU1vMUJQVnJYVFBITmNzTTk5RVBVblBxZGJlR2M4N20wckFnTUJBQUdqWERCYU1GZ0dBMVVkQVFSUk1FK0FFSFpXUHJXdEpkN1laNDMxaENnN1lGU2hLVEFuTVNVd0l3WURWUVFESGh3QVl3Qm9BRzBBWVFCcEFFQUFkZ0JwQUhNQVlRQXVBR01BYndCdGdoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQURnWUVBYlVLWUNrdUlLUzlRUTJtRmNNWVJFSW0ybCtYZzhcL0pYditHQlZRSmtPS29zY1k0aU5ERkFcL2JRbG9nZjlMTFU4NFRId05SbnN2VjNQcnY3UlRZODFncTBkdEM4elljQWFBa0NISUkzeXFNbko0QU91NkVPVzlrSmsyMzJnU0U3V2xDdEhiZkxTS2Z1U2dRWDhLWFFZdVpMazJScjYzTjhBcFhzWHdCTDNjSjB4Z2VBd2dkMENBUUV3T3pBbk1TVXdJd1lEVlFRREhod0FZd0JvQUcwQVlRQnBBRUFBZGdCcEFITUFZUUF1QUdNQWJ3QnRBaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWFCUUF3RFFZSktvWklodmNOQVFFQkJRQUVnWUJhSzNFbE9zdGJIOFdvb3NlREFCZitKZ1wvMTI5SmNJYXdtN2M2VnhuN1phc05iQXEzdEF0OFB0eSt1UUNnc3NYcVprTEE3a3oyR3pNb2xOdHY5d1ltdTlVandhcjFQSFlTK0JcL29Hbm96NTkxd2phZ1hXUnowbk1vNXkzTzFLelgwZDhDUkhBVmE4OFNyVjFhNUpJaVJldjNvU3RJcXd2NXh1WmxkYWc2VHI4dz09In0=" + }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = opaqueData }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + [Test] + [Ignore("To run this test, use dataKey, dataValue, callId details and Merchant ApiLoginIdKey and TransactionKey to configure this test below.")] + public void SampleCodeCreateTransactionWithVisaCheckOut() + { + // The test setup. + ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType() + { + name = "5KP3u95bQpv", + ItemElementName = ItemChoiceType.transactionKey, + Item = "346HZ32z3fP4hTG2", + }; + + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var opaqueDataType = new opaqueDataType + { + dataDescriptor = "COMMON.VCO.ONLINE.PAYMENT", + dataKey = "NQzcMISSxLX789w+CGX+tXi3lKntO1dpZbZaREOUprVRByJkg1xnpc2Wx9aT5/BLOxQmHqmIsjjy+tF6HqKKGwovvXjIS3fE3y3tBRNbz8D7y6vYMup+AWbEvZqDEBSi", + dataValue = "+6hn53rUcggeZZti2IdBp3qNLa9ohAH87cFSc1BggZFNEpsrfdJbRViWwv/JbCNkHkOD6CpFlRO3gCDH2VEQTd8laqWR1ccHiZpdYDnOxfhUQpU9E18ZByW7j17puVWogh7HaItbDUL0YvIxxfClX9bohurOo1JHyUgBO9YxTj3CLY2RdRkjmipAQqOyxiGX9enFQjAHdPgKj2RxnVMYe8on5ei94zbtYUbI3fXrp3I+DJcZCGZ4SzrlnPAPpcn20qaIoaOTX/xuD+voRAUKb/KE5oy+CuSNBtyMBgrvWU0Lf3SLjGfE/FJx3Bh9/LABCwWBYQvtpo3DQkDItp8P5/3EOz7JwBFbFd9UQs8wm/J8YvJMd3Kf4MkQ1+KYyg17RH6OAcoNaqQxT3MjOSvVv3KAlKV82ZDco+IRTVPcjyVd/Vff0qDIqes08fPCQDhttefl/bh18urrmCnM9PcP7xJ0A8Ek7LRMLF19c81O7IIaEn0FXxq+UuV5oZArY+mE4GD08xizyd0hoW9pvsdZ7RkuPu4yK1yXPTAKbc3vTxrj0kamFWd4kRHapwLxcvawIQzrlQGQj5AUFkpEg1o1UGWz0vtGgqE08hplJehsTZwPw9KSaA+u5M79gXM3uLR8g2RlE5cEDRLy3aEv0ufeag+lt8zME9wzrfTK8zhjTdBGIAJqSUYto1JbiW9IEMJgjLaqEJhwO49pNlUgOJVp7BXO9JoHPM8PyS+vZlOCX6b0bip/+mCEok09L9B0IhnLjs95Q4kDZfCcQNfDIdLEPe5tLp8eGaSkK3HDoQFbZKCFyGmUTEEF19PScZURbYuGrwpxHqqAAhU87ZmdhRRdJbMTrWPhIvk9/kRzRIP2ciKu8ClNZIJ9azafIUBo7WdlYs+6QbLCn8UCNvYczrLXo3tGhVvHPheWWgmuxDYbHDyJu7SIPKgVvi6LrPYgg8g+I0pMWPojWmBdp85tMt+sQrWk2x325/pOrYXj8fc2W8PHtOAka1EltTdZiNsRKzA8orzLQrtvqtxhzgXMSTOEmosEAxA7DuQdKscL2BWWmiYsAOCNYQxtm/nR6PBAKZ5PDS6Wjk73hKTOeB6kA5E/H1ij15iJqNK6O1+4b4gpJHnHm7tccVQIK5w1EeLR1waqO2G4FMM5FoyA1WsSEQURQncDek0bK1ohcu73l5FLiq8he/H6gF3dEsKL6Z367ki59HKwnnJXfWj/WOUZxTbIho4H5i/lIcc0vSgFH84ReTjjiANEm+ccl5PcFV9wEVlbGXiOiJfeZ0mEzo9ghDyKEAGEDzZtHDwZzKEYyT92oFXkeewGQ6DJX7GSQPZ1MW17jAQODAqmzJcmwMunc7PwGvJcscRbxkXpGe7/asq2H4POz3ByBrBQHCl/+oUVtw8hEbavCpuEgXfWl09Sc3Dfg69UP8XBR80vWsP1YL8YtBxOmL2hinZc5SJZ4boulAOHiMQyKBwwkg2D1gJDEY9JzUJtbg3p06swB0UthNmVuo/1mV8047sB5QrjGCugEo87+vh9eV1EVvyLZLRFS+RIZoIpLR3UkO6Pe1s7MnO7ZvCsbz9sKNb0GtQPoFtU9b7KaCHgQ20vL7xjqTEmR2QwkHEriuGJ8a7oMdSd88w/e2InL1SfHCnS2JeWY9vY6RSTvmjkEf3BFGhHjFP5QRR3Bd8AVH/1YrFcxtSSJP5GeY3CVnJgjZToK+ngxsRzpDcEm6pz3RPUEIBNkk3c9plpdlMbyvuVVKXLSFdTdtAALRfiD9qhdpgGMqboZ0kXi+qn3irYXT19q8oQktoZ4ILkbzewloftLbfUTqQprA8cddy7/ikUKKhBoBVs/DAupRe9aRP3TLgIEz6eNNilZszXoFfUv9EgqOZ0EBb83KNV3HvbE2xGJcTArjRpmzszQQkNOpJnyRDtvPj7FU7K16UYQ9zQBrxnx5vnoWSaqNhzOxikd+hWZ6i5G7EPpCO+utdoMdyOTOoDAjBmiy5JsDHSVv4zvkT9ySYPH2PmS47mMEpZICKTAxuDrm3zTpT064P+7ivcGmaIyaBCkc4udIHaWSbi5XJ/ciXUxSqAtqaVcd5HD++6vjBzKhbAPU4shSBav6qCSp/XqFurEAJbkLB3VmXe7bghcM+VNPJHHiYlIdzndDaFENyaZCukypggK0Gf4cH+8CKI9YnQx9s4JMs4lX57i4IkkoJE7fjWaOHyxYM/AiKvWlMQtRO8Y5Yta454JfHVq7Mg11Wqu2Ex4q5QLNqKudVt3wveu3G1zoNFanW6i+d0Aa3hTdxerl9BacX/" + }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = opaqueDataType }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + callId = "1482912778237697701" + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + [Test] + public void SampleCodeCreateTransactionWithPayPal() + { + /* * Please enable the PayPal feature of your ANet merchant account. - */ - - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = AuthorizeNet.Environment.SANDBOX; //TestEnvironment; - - //set up data for transaction - var transactionAmount = SetValidTransactionAmount(Counter) / 100; - var payPalData = new payPalType - { - paypalLc = "IT", - paypalPayflowcolor = "FFFF00", - successUrl = PayPalOne.successUrl, - cancelUrl = PayPalOne.cancelUrl, - }; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = payPalData }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate. The code 2000 is: Need the payer's consent. - Assert.AreEqual("2000", response.transactionResponse.messages[0].code); - } - - [Test] - [Ignore("Requires user to specify settled transaction")] - public void SampleCodeCreateCreditRequestForSettledTransaction() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - - // Find a settled credit card transaction and set txnToCredit to its transaction ID - string txnToCredit = "Not Set"; - - - if (txnToCredit == "Not Set") - { - Assert.Fail("This test requires that you set txnToCredit to the transaction ID of a settled credit card transaction"); - } - - - //get details of the specified transaction - decimal txnAmount = 0m; - string txnCardNo = string.Empty; - - var gtdReq = new getTransactionDetailsRequest { transId = txnToCredit }; - var gtdCont = new getTransactionDetailsController(gtdReq); - gtdCont.Execute(); - var gtdResp = gtdCont.GetApiResponse(); - - //Test the transaction before continuing - Assert.AreEqual(messageTypeEnum.Ok, gtdResp.messages.resultCode); - - txnAmount = gtdResp.transaction.settleAmount; - txnCardNo = ((AuthorizeNet.Api.Contracts.V1.creditCardMaskedType)(gtdResp.transaction.payment.Item)).cardNumber; - - //Create payment type that matches transaction to credit - var creditCard = new creditCardType { cardNumber = txnCardNo.TrimStart(new char[] { 'X' }), expirationDate = "XXXX" }; - var paymentType = new paymentType { Item = creditCard }; - - //Create credit request - transactionRequestType txnType = new transactionRequestType - { - amount = txnAmount, - refTransId = txnToCredit, - transactionType = transactionTypeEnum.refundTransaction.ToString(), - payment = paymentType, - }; - - createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; - createTransactionController creditCont = new createTransactionController(creditReq); - creditCont.Execute(); - createTransactionResponse creditResp = creditCont.GetApiResponse(); - - //validate - Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); - } - - //Tests execution of credit without a linked transaction. - [Test] - public void SampleCodeCreateUnlinkedCredit() - { - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - decimal txnAmount = SetValidTransactionAmount(Counter) / 100; - - //Set payment info for credit - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; - var paymentType = new paymentType { Item = creditCard }; - - //Create credit request - transactionRequestType txnType = new transactionRequestType - { - amount = txnAmount, - transactionType = transactionTypeEnum.refundTransaction.ToString(), - payment = paymentType, - }; - - - createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; - createTransactionController creditCont = new createTransactionController(creditReq); - creditCont.Execute(); - createTransactionResponse creditResp = creditCont.GetApiResponse(); - - //validate - Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); - } - - [Test] - public void SampleCodeCreateTransactionPriorAuthCapture() - { - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; - - //Build auth only transaction request. - var paymentType = new paymentType { Item = creditCard }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - - //Get transaction details - var getDetailsReq = new getTransactionDetailsRequest - { - transId = response.transactionResponse.transId - }; - var getDetailsCont = new getTransactionDetailsController(getDetailsReq); - getDetailsCont.Execute(); - var getDetailsResp = getDetailsCont.GetApiResponse(); - - - //Build and execute the capture request. - var capCC = new creditCardType - { - cardNumber = ((creditCardMaskedType)(getDetailsResp.transaction.payment.Item)).cardNumber.TrimStart(new char[] { 'X' }), - expirationDate = "XXXX", - }; - - var capPayment = new paymentType { Item = capCC }; - - var capTransactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.priorAuthCaptureTransaction.ToString(), - refTransId = getDetailsResp.transaction.transId, - authCode = getDetailsResp.transaction.authCode, - }; - - request = new createTransactionRequest { transactionRequest = capTransactionRequest }; - controller = new createTransactionController(request); - controller.Execute(); - var capResponse = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", capResponse.transactionResponse.messages[0].code); - } - - [Test] - public void TransactionRequest_HandleError() - { - LogHelper.info(Logger, "CreateProfileWithCreateTransactionRequestTest"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var transactionRequestType = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = new paymentType { Item = new creditCardType { cardNumber = "0111111111111111", expirationDate = "122035" } }, - order = OrderType, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - shipTo = CustomerAddressOne, - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - //create controller, execute and get response - var createController = new createTransactionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - - //Validate error code where request is submitted properly, but request fails. - Assert.AreEqual("6", createResponse.transactionResponse.errors[0].errorCode); - - //Validate error code where submission of request fails. - ((creditCardType)transactionRequestType.payment.Item).cardNumber = "01"; - createController = new createTransactionController(createRequest); - createController.Execute(); - - if (createController.GetApiResponse() == null) - { - var errorResponse = createController.GetErrorResponse(); - Assert.AreEqual("E00003", errorResponse.messages.message[0].code); - } - } - } + */ + + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = Environment.SANDBOX; //TestEnvironment; + + //set up data for transaction + var transactionAmount = SetValidTransactionAmount(Counter) / 100; + var payPalData = new payPalType + { + paypalLc = "IT", + paypalPayflowcolor = "FFFF00", + successUrl = PayPalOne.successUrl, + cancelUrl = PayPalOne.cancelUrl, + }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = payPalData }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate. The code 2000 is: Need the payer's consent. + Assert.AreEqual("2000", response.transactionResponse.responseCode); + } + + [Test] + [Ignore("Requires user to specify settled transaction")] + public void SampleCodeCreateCreditRequestForSettledTransaction() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + + // Find a settled credit card transaction and set txnToCredit to its transaction ID + string txnToCredit = "Not Set"; + + + if (txnToCredit == "Not Set") + { + Assert.Fail("This test requires that you set txnToCredit to the transaction ID of a settled credit card transaction"); + } + + + //get details of the specified transaction + decimal txnAmount = 0m; + string txnCardNo = string.Empty; + + var gtdReq = new getTransactionDetailsRequest { transId = txnToCredit }; + var gtdCont = new GetTransactionDetailsController(gtdReq); + gtdCont.Execute(); + var gtdResp = gtdCont.GetApiResponse(); + + //Test the transaction before continuing + Assert.AreEqual(messageTypeEnum.Ok, gtdResp.messages.resultCode); + + txnAmount = gtdResp.transaction.settleAmount; + txnCardNo = ((creditCardMaskedType)(gtdResp.transaction.payment.Item)).cardNumber; + + //Create payment type that matches transaction to credit + var creditCard = new creditCardType { cardNumber = txnCardNo.TrimStart(new char[] { 'X' }), expirationDate = "XXXX" }; + var paymentType = new paymentType { Item = creditCard }; + + //Create credit request + transactionRequestType txnType = new transactionRequestType + { + amount = txnAmount, + refTransId = txnToCredit, + transactionType = transactionTypeEnum.refundTransaction.ToString(), + payment = paymentType, + }; + + createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; + CreateTransactionController creditCont = new CreateTransactionController(creditReq); + creditCont.Execute(); + createTransactionResponse creditResp = creditCont.GetApiResponse(); + + //validate + Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); + } + + //Tests execution of credit without a linked transaction. + [Test] + public void SampleCodeCreateUnlinkedCredit() + { + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + decimal txnAmount = SetValidTransactionAmount(Counter) / 100; + + //Set payment info for credit + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var paymentType = new paymentType { Item = creditCard }; + + //Create credit request + transactionRequestType txnType = new transactionRequestType + { + amount = txnAmount, + transactionType = transactionTypeEnum.refundTransaction.ToString(), + payment = paymentType, + }; + + + createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; + CreateTransactionController creditCont = new CreateTransactionController(creditReq); + creditCont.Execute(); + createTransactionResponse creditResp = creditCont.GetApiResponse(); + + //validate + Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); + } + + [Test] + public void SampleCodeCreateTransactionPriorAuthCapture() + { + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + + //Build auth only transaction request. + var paymentType = new paymentType { Item = creditCard }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + + //Get transaction details + var getDetailsReq = new getTransactionDetailsRequest + { + transId = response.transactionResponse.transId + }; + var getDetailsCont = new GetTransactionDetailsController(getDetailsReq); + getDetailsCont.Execute(); + var getDetailsResp = getDetailsCont.GetApiResponse(); + + + //Build and execute the capture request. + var capCC = new creditCardType + { + cardNumber = ((creditCardMaskedType)(getDetailsResp.transaction.payment.Item)).cardNumber.TrimStart(new char[] { 'X' }), + expirationDate = "XXXX", + }; + + var capPayment = new paymentType { Item = capCC }; + + var capTransactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.priorAuthCaptureTransaction.ToString(), + refTransId = getDetailsResp.transaction.transId, + authCode = getDetailsResp.transaction.authCode, + }; + + request = new createTransactionRequest { transactionRequest = capTransactionRequest }; + controller = new CreateTransactionController(request); + controller.Execute(); + var capResponse = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", capResponse.transactionResponse.messages[0].code); + } + + [Test] + public void TransactionRequest_HandleError() + { + LogHelper.Info(Logger, "CreateProfileWithCreateTransactionRequestTest"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var transactionRequestType = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = new paymentType { Item = new creditCardType { cardNumber = "0111111111111111", expirationDate = "122035" } }, + order = OrderType, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + shipTo = CustomerAddressOne, + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + //create controller, execute and get response + var createController = new CreateTransactionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + + //Validate error code where request is submitted properly, but request fails. + Assert.AreEqual("6", createResponse.transactionResponse.errors[0].errorCode); + + //Validate error code where submission of request fails. + ((creditCardType)transactionRequestType.payment.Item).cardNumber = "01"; + createController = new CreateTransactionController(createRequest); + createController.Execute(); + + if (createController.GetApiResponse() == null) + { + var errorResponse = createController.GetErrorResponse(); + Assert.AreEqual("E00003", errorResponse.messages.message[0].code); + } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs index 9f4fca5c..c0e86616 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs @@ -1,125 +1,128 @@ -namespace AuthorizeNETtest.Api.Controllers.SampleTest +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; +using AuthorizeNet.Util; + +using NUnit.Framework; + +namespace AuthorizeNETtest.Api.Controllers.SampleTest { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - class CustomerProfileSampleTest: ApiCoreTestBase { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - private customerPaymentProfileType getCustomerPaymentProfileObject() - { - var CreditCardOne = new creditCardType - { - cardNumber = "4111111111111111", - expirationDate = "2032-10" - }; - - var PaymentOne = new paymentType - { - Item = CreditCardOne - }; - - var CustomerPaymentProfile = new customerPaymentProfileType - { - customerType = customerTypeEnum.individual, - payment = PaymentOne - }; - - return CustomerPaymentProfile; - } - - [Test] - public void GetCustomerPaymentProfileListSampleTest() - { - LogHelper.info(Logger, "Sample getCustomerPaymentProfileList"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - CustomerProfileType.paymentProfiles = new customerPaymentProfileType[] { getCustomerPaymentProfileObject() }; - var createRequest = new createCustomerProfileRequest - { - refId = RefId, - profile = CustomerProfileType - }; - - //create a customer profile - var createController = new createCustomerProfileController(createRequest); - var createResponse = createController.ExecuteWithApiResponse(); - Assert.NotNull(createResponse); - LogHelper.info(Logger, "Created Customer profile : {0}", createResponse.customerProfileId); - - var getProfileListRequest = new getCustomerPaymentProfileListRequest - { - refId = RefId, - searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth, - month = "2032-10" - }; - - bool found = false; - //setup retry loop to allow for delays in replication - for (int counter = 0; counter < 5; counter++) - { + [TestFixture] + class CustomerProfileSampleTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + private customerPaymentProfileType GetCustomerPaymentProfileObject() + { + var CreditCardOne = new creditCardType + { + cardNumber = "4111111111111111", + expirationDate = "2032-10" + }; + + var PaymentOne = new paymentType + { + Item = CreditCardOne + }; + + var CustomerPaymentProfile = new customerPaymentProfileType + { + customerType = customerTypeEnum.individual, + payment = PaymentOne + }; + + return CustomerPaymentProfile; + } + + [Test] + public void GetCustomerPaymentProfileListSampleTest() + { + LogHelper.Info(Logger, "Sample getCustomerPaymentProfileList"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + CustomerProfileType.paymentProfiles = new customerPaymentProfileType[] { GetCustomerPaymentProfileObject() }; + var createRequest = new createCustomerProfileRequest + { + refId = RefId, + profile = CustomerProfileType + }; + + //create a customer profile + var createController = new CreateCustomerProfileController(createRequest); + var createResponse = createController.ExecuteWithApiResponse(); + Assert.NotNull(createResponse); + LogHelper.Info(Logger, "Created Customer profile : {0}", createResponse.customerProfileId); + + var getProfileListRequest = new getCustomerPaymentProfileListRequest + { + refId = RefId, + searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth, + month = "2032-10" + }; + + bool found = false; + //setup retry loop to allow for delays in replication + for (int counter = 0; counter < 5; counter++) + { //get customer profile list - var getProfileController = new getCustomerPaymentProfileListController(getProfileListRequest); - var getProfileListResponse = getProfileController.ExecuteWithApiResponse(); - - for (int profile = 0; profile < getProfileListResponse.paymentProfiles.Length; profile++) - { - var profileId = Convert.ToString(getProfileListResponse.paymentProfiles[profile].customerPaymentProfileId); - if (profileId.Equals(createResponse.customerPaymentProfileIdList[0])) - { - found = true; - break; - } - } - - if (found) - break; - - System.Threading.Thread.Sleep(10000); - } - - Assert.IsTrue(found); - + var getProfileController = new GetCustomerPaymentProfileListController(getProfileListRequest); + var getProfileListResponse = getProfileController.ExecuteWithApiResponse(); + + for (int profile = 0; profile < getProfileListResponse.paymentProfiles.Length; profile++) + { + var profileId = Convert.ToString(getProfileListResponse.paymentProfiles[profile].customerPaymentProfileId); + if (profileId.Equals(createResponse.customerPaymentProfileIdList[0])) + { + found = true; + break; + } + } + + if (found) + break; + + System.Threading.Thread.Sleep(10000); + } + + Assert.IsTrue(found); + //delete the created customer profile var deleteRequest = new deleteCustomerProfileRequest - { - refId = RefId, - customerProfileId = createResponse.customerProfileId - }; - var deleteController = new deleteCustomerProfileController(deleteRequest); - var deleteResponse = deleteController.ExecuteWithApiResponse(); - Assert.IsNotNull(deleteResponse); - } - } + { + refId = RefId, + customerProfileId = createResponse.customerProfileId + }; + var deleteController = new DeleteCustomerProfileController(deleteRequest); + var deleteResponse = deleteController.ExecuteWithApiResponse(); + Assert.IsNotNull(deleteResponse); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs index 71288486..f9cbed23 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs @@ -1,109 +1,108 @@ using AuthorizeNet.Utility; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; namespace AuthorizeNet.Api.Controllers.SampleTest { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - using System.Collections.Generic; - - [TestFixture] - public class ErrorMessagesSampleTest : ApiCoreTestBase - { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - [Test] - public void TestErrorMessages_ARB_ExpiredCard() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - - //create a subscription with an invalid (expired) credit card in payment. - var subscriptionDef = new ARBSubscriptionType - { - - - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 7, - unit = ARBSubscriptionUnitEnum.days - }, - startDate = DateTime.UtcNow, - totalOccurrences = 2, - }, - - - amount = SetValidSubscriptionAmount(Counter), - billTo = new nameAndAddressType - { - address = "1234 Elm St NE", - city = "Bellevue", - state = "WA", - zip = "98007", - firstName = "First", - lastName = "Last" - }, - - payment = new paymentType - { - Item = new creditCardType - { - cardCode = "655", - cardNumber = "4111111111111111", - expirationDate = "122013", //deliberatly set payment to use expired CC - } - }, - - customer = new customerType { email = "somecustomer@test.org", id = "5", }, - - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, - }; - - var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; - var arbController = new ARBCreateSubscriptionController(arbRequest); - arbController.Execute(); - - var arbCreateResponse = arbController.GetApiResponse(); - - //If request responds with an error, walk the messages and get code and text for each message. - if (arbController.GetResultCode() == messageTypeEnum.Error) - { - foreach (var msg in arbCreateResponse.messages.message) - { - Console.WriteLine("Error Num = {0}, Message = {1}", msg.code, msg.text); - } - } - } - } + [TestFixture] + public class ErrorMessagesSampleTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + [Test] + public void TestErrorMessages_ARB_ExpiredCard() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + + //create a subscription with an invalid (expired) credit card in payment. + var subscriptionDef = new ARBSubscriptionType + { + + + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 7, + unit = ARBSubscriptionUnitEnum.days + }, + startDate = DateTime.UtcNow, + totalOccurrences = 2, + }, + + + amount = SetValidSubscriptionAmount(Counter), + billTo = new nameAndAddressType + { + address = "1234 Elm St NE", + city = "Bellevue", + state = "WA", + zip = "98007", + firstName = "First", + lastName = "Last" + }, + + payment = new paymentType + { + Item = new creditCardType + { + cardCode = "655", + cardNumber = "4111111111111111", + expirationDate = "122013", //deliberatly set payment to use expired CC + } + }, + + customer = new customerType { email = "somecustomer@test.org", id = "5", }, + + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, + }; + + var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; + var arbController = new ARBCreateSubscriptionController(arbRequest); + arbController.Execute(); + + var arbCreateResponse = arbController.GetApiResponse(); + + //If request responds with an error, walk the messages and get code and text for each message. + if (arbController.GetResultCode() == messageTypeEnum.Error) + { + foreach (var msg in arbCreateResponse.messages.message) + { + Console.WriteLine("Error Num = {0}, Message = {1}", msg.code, msg.text); + } + } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs index 07f53003..0b1ab6e9 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs @@ -1,304 +1,306 @@ using AuthorizeNet.Utility; +using System; + +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Api.Controllers.Test; + +using NUnit.Framework; namespace AuthorizeNet.Api.Controllers.SampleTest { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - - [TestFixture] - public class CreateECheckTransactionSampleTest : ApiCoreTestBase - { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - - [Test] - public void CreateTransactionWithECheck_AuthCapture() - { - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; - - //standard api call to retrieve api response - var paymentType = new paymentType { Item = echeck }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - payment = paymentType, - amount = (decimal)transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - [Test] - public void CreateTransactionWithECheckAuth_Only() - { - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - decimal transactionAmount = SetValidTransactionAmount(Counter); - var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = echeck }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - - - - [Test] - public void CreateCustomerProfileFromECheckTransaction() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - string customerIndx = rnd.Next(99999).ToString(); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; - - //Create and submit transaction with customer info to create profile from. - var paymentType = new paymentType { Item = echeck }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = (decimal)transactionAmount, - customer = new customerDataType - { - email = string.Format("Customer{0}@visa.com", customerIndx), - taxId = string.Format("{0}{1}{2}", rnd.Next(999).ToString("000"), rnd.Next(99).ToString("00"), rnd.Next(9999).ToString("0000")) - }, - billTo = new customerAddressType - { - firstName = "New", - lastName = string.Format("Customer{0}", customerIndx), - company = "New Company", - address = "1234 Sample St NE", - city = "Bellevue", - state = "WA", - zip = "98001" - - }, - - shipTo = new customerAddressType - { - firstName = "New", - lastName = string.Format("Customer{0}", customerIndx), - company = "New Company", - address = "1234 Sample St NE", - city = "Bellevue", - state = "WA", - zip = "98001" - - } - - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //Verify that transaction was accepted and save the transaction ID - Assert.AreEqual(messageTypeEnum.Ok, response.messages.resultCode); - string txnID = response.transactionResponse.transId; - - - //Build and submit request to create Customer Profile based on the accepted transaction - createCustomerProfileFromTransactionRequest profileFromTransReq = new createCustomerProfileFromTransactionRequest(); - profileFromTransReq.transId = txnID; - - createCustomerProfileFromTransactionController profileFromTrxnController = new createCustomerProfileFromTransactionController(profileFromTransReq); - profileFromTrxnController.Execute(); - createCustomerProfileResponse createProfResp = profileFromTrxnController.GetApiResponse(); - Assert.AreEqual(messageTypeEnum.Ok, createProfResp.messages.resultCode); - - //Get customer profile and verify that profile data matches the data submitted with the transaction - getCustomerProfileRequest profileReq = new getCustomerProfileRequest - { - customerProfileId = createProfResp.customerProfileId - }; - - getCustomerProfileController getCustContr = new getCustomerProfileController(profileReq); - getCustContr.Execute(); - var getCustResp = getCustContr.GetApiResponse(); - - //validate - Assert.AreEqual("1", response.transactionResponse.messages[0].code); - } - - [Test] - [Ignore("Requires user to specify settled transaction")] - public void CreateCreditRequestForSettledECheckTransaction() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - - // Find a settled credit card transaction and set txnToCredit to its transaction ID - string txnToCredit = "Not Set"; - - if (txnToCredit == "Not Set") - { - Assert.Fail("This test requires that you set txnToCredit to the transaction ID of a settled eCheck card transaction"); - } - - - //get details of the specified transaction - decimal txnAmount = 0m; - string txnCardNo = string.Empty; - - var gtdReq = new getTransactionDetailsRequest { transId = txnToCredit }; - var gtdCont = new getTransactionDetailsController(gtdReq); - gtdCont.Execute(); - var gtdResp = gtdCont.GetApiResponse(); - - txnAmount = gtdResp.transaction.settleAmount; - txnCardNo = ((AuthorizeNet.Api.Contracts.V1.creditCardMaskedType)(gtdResp.transaction.payment.Item)).cardNumber; - - //Create payment type that matches transaction to credit - var creditCard = new creditCardType { cardNumber = txnCardNo.TrimStart(new char[] { 'X' }), expirationDate = "XXXX" }; - var paymentType = new paymentType { Item = creditCard }; - - - //Create credit request - transactionRequestType txnType = new transactionRequestType - { - amount = txnAmount, - refTransId = txnToCredit, - transactionType = transactionTypeEnum.refundTransaction.ToString(), - payment = paymentType, - }; - - createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; - createTransactionController creditCont = new createTransactionController(creditReq); - creditCont.Execute(); - createTransactionResponse creditResp = creditCont.GetApiResponse(); - - //validate - Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); - } - - [Test] - public void CreateTransactionWithECheckCapturePriorAuth() - { - //Common code to set for all requests - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - var rnd = new AnetRandom(DateTime.Now.Millisecond); - - //Build and submit an Auth only transaction that can later be captured. - //set up data based on transaction - var transactionAmount = SetValidTransactionAmount(Counter); - var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; - - //standard api call to retrieve response - var paymentType = new paymentType { Item = echeck }; - var transactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), - payment = paymentType, - amount = transactionAmount, - }; - var request = new createTransactionRequest { transactionRequest = transactionRequest }; - var controller = new createTransactionController(request); - controller.Execute(); - var response = controller.GetApiResponse(); - - //Get transaction details - var getDetailsReq = new getTransactionDetailsRequest - { - transId = response.transactionResponse.transId - }; - var getDetailsCont = new getTransactionDetailsController(getDetailsReq); - getDetailsCont.Execute(); - var getDetailsResp = getDetailsCont.GetApiResponse(); - - - //Build and execute the capture request. - var capECheck = new bankAccountType - { - accountNumber = ((AuthorizeNet.Api.Contracts.V1.bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).accountNumber.TrimStart(new char[] { 'X' }), - routingNumber = "XXXX", - nameOnAccount = ((AuthorizeNet.Api.Contracts.V1.bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).nameOnAccount, - bankName = ((AuthorizeNet.Api.Contracts.V1.bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).bankName, - echeckType = ((AuthorizeNet.Api.Contracts.V1.bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).echeckType, - }; - - var capPayment = new paymentType { Item = capECheck }; - - - - var capTransactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.priorAuthCaptureTransaction.ToString(), - refTransId = getDetailsResp.transaction.transId, - }; - - request = new createTransactionRequest { transactionRequest = capTransactionRequest }; - controller = new createTransactionController(request); - controller.Execute(); - var capResponse = controller.GetApiResponse(); - - //validate - Assert.AreEqual("1", capResponse.transactionResponse.messages[0].code); - } - } + [TestFixture] + public class CreateECheckTransactionSampleTest : ApiCoreTestBase + { + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + + [Test] + public void CreateTransactionWithECheck_AuthCapture() + { + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; + + //standard api call to retrieve api response + var paymentType = new paymentType { Item = echeck }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + payment = paymentType, + amount = (decimal)transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + [Test] + public void CreateTransactionWithECheckAuth_Only() + { + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + decimal transactionAmount = SetValidTransactionAmount(Counter); + var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = echeck }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + + + + [Test] + public void CreateCustomerProfileFromECheckTransaction() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + string customerIndx = rnd.Next(99999).ToString(); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; + + //Create and submit transaction with customer info to create profile from. + var paymentType = new paymentType { Item = echeck }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = (decimal)transactionAmount, + customer = new customerDataType + { + email = string.Format("Customer{0}@visa.com", customerIndx), + taxId = string.Format("{0}{1}{2}", rnd.Next(999).ToString("000"), rnd.Next(99).ToString("00"), rnd.Next(9999).ToString("0000")) + }, + billTo = new customerAddressType + { + firstName = "New", + lastName = string.Format("Customer{0}", customerIndx), + company = "New Company", + address = "1234 Sample St NE", + city = "Bellevue", + state = "WA", + zip = "98001" + + }, + + shipTo = new customerAddressType + { + firstName = "New", + lastName = string.Format("Customer{0}", customerIndx), + company = "New Company", + address = "1234 Sample St NE", + city = "Bellevue", + state = "WA", + zip = "98001" + + } + + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //Verify that transaction was accepted and save the transaction ID + Assert.AreEqual(messageTypeEnum.Ok, response.messages.resultCode); + string txnID = response.transactionResponse.transId; + + + //Build and submit request to create Customer Profile based on the accepted transaction + createCustomerProfileFromTransactionRequest profileFromTransReq = new createCustomerProfileFromTransactionRequest + { + transId = txnID + }; + + CreateCustomerProfileFromTransactionController profileFromTrxnController = new CreateCustomerProfileFromTransactionController(profileFromTransReq); + profileFromTrxnController.Execute(); + createCustomerProfileResponse createProfResp = profileFromTrxnController.GetApiResponse(); + Assert.AreEqual(messageTypeEnum.Ok, createProfResp.messages.resultCode); + + //Get customer profile and verify that profile data matches the data submitted with the transaction + getCustomerProfileRequest profileReq = new getCustomerProfileRequest + { + customerProfileId = createProfResp.customerProfileId + }; + + GetCustomerProfileController getCustContr = new GetCustomerProfileController(profileReq); + getCustContr.Execute(); + var getCustResp = getCustContr.GetApiResponse(); + + //validate + Assert.AreEqual("1", response.transactionResponse.messages[0].code); + } + + [Test] + [Ignore("Requires user to specify settled transaction")] + public void CreateCreditRequestForSettledECheckTransaction() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + + // Find a settled credit card transaction and set txnToCredit to its transaction ID + string txnToCredit = "Not Set"; + + if (txnToCredit == "Not Set") + { + Assert.Fail("This test requires that you set txnToCredit to the transaction ID of a settled eCheck card transaction"); + } + + + //get details of the specified transaction + decimal txnAmount = 0m; + string txnCardNo = string.Empty; + + var gtdReq = new getTransactionDetailsRequest { transId = txnToCredit }; + var gtdCont = new GetTransactionDetailsController(gtdReq); + gtdCont.Execute(); + var gtdResp = gtdCont.GetApiResponse(); + + txnAmount = gtdResp.transaction.settleAmount; + txnCardNo = ((creditCardMaskedType)(gtdResp.transaction.payment.Item)).cardNumber; + + //Create payment type that matches transaction to credit + var creditCard = new creditCardType { cardNumber = txnCardNo.TrimStart(new char[] { 'X' }), expirationDate = "XXXX" }; + var paymentType = new paymentType { Item = creditCard }; + + + //Create credit request + transactionRequestType txnType = new transactionRequestType + { + amount = txnAmount, + refTransId = txnToCredit, + transactionType = transactionTypeEnum.refundTransaction.ToString(), + payment = paymentType, + }; + + createTransactionRequest creditReq = new createTransactionRequest { transactionRequest = txnType }; + CreateTransactionController creditCont = new CreateTransactionController(creditReq); + creditCont.Execute(); + createTransactionResponse creditResp = creditCont.GetApiResponse(); + + //validate + Assert.AreEqual("1", creditResp.transactionResponse.messages[0].code); + } + + [Test] + public void CreateTransactionWithECheckCapturePriorAuth() + { + //Common code to set for all requests + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + var rnd = new AnetRandom(DateTime.Now.Millisecond); + + //Build and submit an Auth only transaction that can later be captured. + //set up data based on transaction + var transactionAmount = SetValidTransactionAmount(Counter); + var echeck = new bankAccountType { accountNumber = "123456", accountType = bankAccountTypeEnum.checking, checkNumber = "1234", bankName = "Bank of Seattle", routingNumber = "125000024", echeckType = echeckTypeEnum.WEB, nameOnAccount = "Joe Customer" }; + + //standard api call to retrieve response + var paymentType = new paymentType { Item = echeck }; + var transactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), + payment = paymentType, + amount = transactionAmount, + }; + var request = new createTransactionRequest { transactionRequest = transactionRequest }; + var controller = new CreateTransactionController(request); + controller.Execute(); + var response = controller.GetApiResponse(); + + //Get transaction details + var getDetailsReq = new getTransactionDetailsRequest + { + transId = response.transactionResponse.transId + }; + var getDetailsCont = new GetTransactionDetailsController(getDetailsReq); + getDetailsCont.Execute(); + var getDetailsResp = getDetailsCont.GetApiResponse(); + + + //Build and execute the capture request. + var capECheck = new bankAccountType + { + accountNumber = ((bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).accountNumber.TrimStart(new char[] { 'X' }), + routingNumber = "XXXX", + nameOnAccount = ((bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).nameOnAccount, + bankName = ((bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).bankName, + echeckType = ((bankAccountMaskedType)(getDetailsResp.transaction.payment.Item)).echeckType, + }; + + var capPayment = new paymentType { Item = capECheck }; + + + + var capTransactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.priorAuthCaptureTransaction.ToString(), + refTransId = getDetailsResp.transaction.transId, + }; + + request = new createTransactionRequest { transactionRequest = capTransactionRequest }; + controller = new CreateTransactionController(request); + controller.Execute(); + var capResponse = controller.GetApiResponse(); + + //validate + Assert.AreEqual("1", capResponse.transactionResponse.messages[0].code); + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs b/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs index 39b41cef..e6d1eb40 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs @@ -1,89 +1,88 @@ -namespace AuthorizeNet.Api.Controllers.Test -{ - using System; - using System.Collections.Generic; - using NUnit.Framework; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Util; +using System; +using NUnit.Framework; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Util; - [TestFixture] - public class CredentialsTest : ApiCoreTestBase - { +namespace AuthorizeNet.Api.Controllers.Test +{ + [TestFixture] + public class CredentialsTest : ApiCoreTestBase + { - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } - [SetUp] - public new void SetUp() - { - base.SetUp(); - } + [SetUp] + public new void SetUp() + { + base.SetUp(); + } - [TearDown] - public new void TearDown() - { - base.TearDown(); - } + [TearDown] + public new void TearDown() + { + base.TearDown(); + } - [Test] - public void InvalidCredentialsTest() - { - LogHelper.info(Logger, "CreateProfileWithCreateTransactionRequestTest"); + [Test] + public void InvalidCredentialsTest() + { + LogHelper.Info(Logger, "CreateProfileWithCreateTransactionRequestTest"); - var badCredentials = new merchantAuthenticationType { name = "mbld_api_-NPA5n9k", Item = "123123", ItemElementName = ItemChoiceType.transactionKey }; - ApiOperationBase.MerchantAuthentication = badCredentials; - ApiOperationBase.RunEnvironment = TestEnvironment; + var badCredentials = new merchantAuthenticationType { name = "mbld_api_-NPA5n9k", Item = "123123", ItemElementName = ItemChoiceType.transactionKey }; + ApiOperationBase.MerchantAuthentication = badCredentials; + ApiOperationBase.RunEnvironment = TestEnvironment; - //create request - var getCpReq = new getCustomerProfileRequest - { - customerProfileId = "1234" - }; + //create request + var getCpReq = new getCustomerProfileRequest + { + customerProfileId = "1234" + }; - var getCpCont = new getCustomerProfileController(getCpReq); - getCpCont.Execute(); - getCustomerProfileResponse getCpResp = getCpCont.GetApiResponse(); + var getCpCont = new GetCustomerProfileController(getCpReq); + getCpCont.Execute(); + getCustomerProfileResponse getCpResp = getCpCont.GetApiResponse(); - Assert.AreEqual("E00007", ((AuthorizeNet.Api.Contracts.V1.ANetApiResponse)(getCpResp)).messages.message[0].code); - ValidateErrorCode(((AuthorizeNet.Api.Contracts.V1.ANetApiResponse)(getCpResp)).messages, "E00007"); - } + Assert.AreEqual("E00007", ((ANetApiResponse)(getCpResp)).messages.message[0].code); + ValidateErrorCode(((ANetApiResponse)(getCpResp)).messages, "E00007"); + } - [Test] - public void IllFormedCredentialsTest() - { - LogHelper.info(Logger, "CreateProfileWithCreateTransactionRequestTest"); + [Test] + public void IllFormedCredentialsTest() + { + LogHelper.Info(Logger, "CreateProfileWithCreateTransactionRequestTest"); - var badCredentials = new merchantAuthenticationType { name = "mbld_api_-NPA5n9k", Item = "123123" }; //, ItemElementName = ItemChoiceType.transactionKey }; - ApiOperationBase.MerchantAuthentication = badCredentials; - ApiOperationBase.RunEnvironment = TestEnvironment; + var badCredentials = new merchantAuthenticationType { name = "mbld_api_-NPA5n9k", Item = "123123" }; //, ItemElementName = ItemChoiceType.transactionKey }; + ApiOperationBase.MerchantAuthentication = badCredentials; + ApiOperationBase.RunEnvironment = TestEnvironment; - //create request - var getCpReq = new getCustomerProfileRequest - { - customerProfileId = "1234" - }; + //create request + var getCpReq = new getCustomerProfileRequest + { + customerProfileId = "1234" + }; - try - { - var getCpCont = new getCustomerProfileController(getCpReq); - getCpCont.Execute(); - Assert.Fail("You should not reach here"); - } - catch (Exception e) - { - Console.WriteLine("An exception expected: " + e.Message); - } - } - } + try + { + var getCpCont = new GetCustomerProfileController(getCpReq); + getCpCont.Execute(); + Assert.Fail("You should not reach here"); + } + catch (Exception e) + { + Console.WriteLine("An exception expected: " + e.Message); + } + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs b/AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs index e16565d7..876efd64 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs @@ -1,339 +1,304 @@ -namespace AuthorizeNet.Api.Controllers.Test -{ - using System; - using AuthorizeNet.Api.Contracts.V1; - using NUnit.Framework; - - [TestFixture] - public class AllGeneratedEnumTest : ApiCoreTestBase - { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - //Generated by cs-enum-test on Tue 11/04/2014-11:49:24.42 - [Test] - public void AllEnumTest() - { - - foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum))) - { - var aValue = anEnum.ToString(); - messageTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(bankAccountTypeEnum))) - { - var aValue = anEnum.ToString(); - bankAccountTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(echeckTypeEnum))) - { - var aValue = anEnum.ToString(); - echeckTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionStatusEnum))) - { - var aValue = anEnum.ToString(); - ARBSubscriptionStatusEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(paymentMethodEnum))) - { - var aValue = anEnum.ToString(); - paymentMethodEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } +using System; - foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListOrderFieldEnum))) - { - var aValue = anEnum.ToString(); - ARBGetSubscriptionListOrderFieldEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(TransactionListOrderFieldEnum))) - { - var aValue = anEnum.ToString(); - TransactionListOrderFieldEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(deviceActivationEnum))) - { - var aValue = anEnum.ToString(); - deviceActivationEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(afdsTransactionEnum))) - { - var aValue = anEnum.ToString(); - afdsTransactionEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum))) - { - var aValue = anEnum.ToString(); - messageTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(customerTypeEnum))) - { - var aValue = anEnum.ToString(); - customerTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(merchantInitTransReasonEnum))) - { - var aValue = anEnum.ToString(); - merchantInitTransReasonEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(authIndicatorEnum))) - { - var aValue = anEnum.ToString(); - authIndicatorEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(EncodingType))) - { - var aValue = anEnum.ToString(); - EncodingType enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(EncryptionAlgorithmType))) - { - var aValue = anEnum.ToString(); - EncryptionAlgorithmType enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } +using AuthorizeNet.Api.Contracts.V1; - foreach (var anEnum in Enum.GetValues(typeof(OperationType))) - { - var aValue = anEnum.ToString(); - OperationType enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } +using NUnit.Framework; - foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType1))) - { - var aValue = anEnum.ToString(); - ItemChoiceType1 enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(customerProfileTypeEnum))) - { - var aValue = anEnum.ToString(); - customerProfileTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionUnitEnum))) - { - var aValue = anEnum.ToString(); - ARBSubscriptionUnitEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(webCheckOutTypeEnum))) - { - var aValue = anEnum.ToString(); - webCheckOutTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType))) - { - var aValue = anEnum.ToString(); - ItemChoiceType enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(validationModeEnum))) - { - var aValue = anEnum.ToString(); - validationModeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(splitTenderStatusEnum))) - { - var aValue = anEnum.ToString(); - splitTenderStatusEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(TransactionGroupStatusEnum))) - { - var aValue = anEnum.ToString(); - TransactionGroupStatusEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListSearchTypeEnum))) - { - var aValue = anEnum.ToString(); - ARBGetSubscriptionListSearchTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(accountTypeEnum))) - { - var aValue = anEnum.ToString(); - accountTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(cardTypeEnum))) - { - var aValue = anEnum.ToString(); - cardTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(FDSFilterActionEnum))) - { - var aValue = anEnum.ToString(); - FDSFilterActionEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(permissionsEnum))) - { - var aValue = anEnum.ToString(); - permissionsEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(settingNameEnum))) - { - var aValue = anEnum.ToString(); - settingNameEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(settlementStateEnum))) - { - var aValue = anEnum.ToString(); - settlementStateEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(transactionStatusEnum))) - { - var aValue = anEnum.ToString(); - transactionStatusEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(transactionTypeEnum))) - { - var aValue = anEnum.ToString(); - transactionTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileSearchTypeEnum))) - { - var aValue = anEnum.ToString(); - CustomerPaymentProfileSearchTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileOrderFieldEnum))) - { - var aValue = anEnum.ToString(); - CustomerPaymentProfileOrderFieldEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(AUJobTypeEnum))) - { - var aValue = anEnum.ToString(); - AUJobTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - - foreach (var anEnum in Enum.GetValues(typeof(paymentMethodsTypeEnum))) - { - var aValue = anEnum.ToString(); - paymentMethodsTypeEnum enumFromValue; - Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue)); - Assert.AreEqual(anEnum, enumFromValue); - } - } - - /* +namespace AuthorizeNet.Api.Controllers.Test +{ + [TestFixture] + public class AllGeneratedEnumTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + //Generated by cs-enum-test on Tue 11/04/2014-11:49:24.42 + [Test] + public void AllEnumTest() + { + + foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out messageTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(bankAccountTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out bankAccountTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(echeckTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out echeckTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionStatusEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ARBSubscriptionStatusEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(paymentMethodEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out paymentMethodEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListOrderFieldEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ARBGetSubscriptionListOrderFieldEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(TransactionListOrderFieldEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out TransactionListOrderFieldEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(deviceActivationEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out deviceActivationEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(afdsTransactionEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out afdsTransactionEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out messageTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(customerTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out customerTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(merchantInitTransReasonEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out merchantInitTransReasonEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(authIndicatorEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out authIndicatorEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(EncodingType))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out EncodingType enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(EncryptionAlgorithmType))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out EncryptionAlgorithmType enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(OperationType))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out OperationType enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType1))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ItemChoiceType1 enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(customerProfileTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out customerProfileTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionUnitEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ARBSubscriptionUnitEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(webCheckOutTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out webCheckOutTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ItemChoiceType enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(validationModeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out validationModeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(splitTenderStatusEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out splitTenderStatusEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(TransactionGroupStatusEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out TransactionGroupStatusEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListSearchTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out ARBGetSubscriptionListSearchTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(accountTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out accountTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(cardTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out cardTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(FDSFilterActionEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out FDSFilterActionEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(permissionsEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out permissionsEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(settingNameEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out settingNameEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(settlementStateEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out settlementStateEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(transactionStatusEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out transactionStatusEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(transactionTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out transactionTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileSearchTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out CustomerPaymentProfileSearchTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileOrderFieldEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out CustomerPaymentProfileOrderFieldEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(AUJobTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out AUJobTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + + foreach (var anEnum in Enum.GetValues(typeof(paymentMethodsTypeEnum))) + { + var aValue = anEnum.ToString(); + Assert.IsTrue(Enum.TryParse(aValue, out paymentMethodsTypeEnum enumFromValue)); + Assert.AreEqual(anEnum, enumFromValue); + } + } + + /* private void XX() { for ( T anEnum : T.values()) @@ -344,5 +309,5 @@ public void AllEnumTest() } } */ - } + } } diff --git a/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs b/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs index 4e720f09..367b1f5d 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs @@ -1,662 +1,678 @@ using AuthorizeNet.Utility; +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Test; +using AuthorizeNet.Util; +using NUnit.Framework; +using NMock; namespace AuthorizeNet.Api.Controllers.Test { - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - using NMock; - - // ReSharper disable FieldCanBeMadeReadOnly.Local - // ReSharper disable NotAccessedField.Local + // ReSharper disable FieldCanBeMadeReadOnly.Local + // ReSharper disable NotAccessedField.Local #pragma warning disable 169 #pragma warning disable 649 - [TestFixture] - public abstract class ApiCoreTestBase { - - protected static readonly Log Logger = LogFactory.getLog(typeof(ApiCoreTestBase)); - - protected static readonly IDictionary ErrorMessages ; - - protected static AuthorizeNet.Environment TestEnvironment = AuthorizeNet.Environment.SANDBOX; - //protected static AuthorizeNet.Environment TestEnvironment = AuthorizeNet.Environment.HOSTED_VM; - - static readonly String ApiLoginIdKey ; - static readonly String TransactionKey ; - static String _md5HashKey ; - - DateTime _pastDate; - DateTime _nowDate; - DateTime _futureDate; - String _nowString ; - DateTime _now = DateTime.UtcNow; - - protected string RefId ; - protected int Counter; - protected String CounterStr; - - protected merchantAuthenticationType CustomMerchantAuthenticationType; - - protected ARBSubscriptionType ArbSubscriptionOne; - - //protected ARBSubscriptionType ArbSubscriptionTwo; - protected bankAccountType BankAccountOne; - protected creditCardTrackType TrackDataOne; - protected creditCardType CreditCardOne; - protected customerAddressType CustomerAddressOne; - protected customerDataType CustomerDataOne; - protected customerPaymentProfileType CustomerPaymentProfileOne; - protected customerProfileType CustomerProfileType; - protected customerType CustomerOne; - protected customerType CustomerTwo; - protected driversLicenseType DriversLicenseOne; - protected encryptedTrackDataType EncryptedTrackDataOne; - protected nameAndAddressType NameAndAddressTypeOne; - protected nameAndAddressType NameAndAddressTypeTwo; - protected orderType OrderType; - protected paymentScheduleType PaymentScheduleTypeOne; - protected paymentType PaymentOne; - protected payPalType PayPalOne; - - protected MockFactory MockContext = null; - private readonly AnetRandom _random = new AnetRandom(); - static ApiCoreTestBase() { - - //now we support Tls only, and .net defaults to TLS - //System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12; - - var config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None); - Logger.error(String.Format("Configuration file used: {0}, Exists:{1}", config.FilePath, config.HasFile)); - - //getPropertyFromNames get the value from properties file or environment - ApiLoginIdKey = UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvApiLoginid, AuthorizeNet.Util.Constants.PropApiLoginid); - TransactionKey = UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvTransactionKey, AuthorizeNet.Util.Constants.PropTransactionKey); - _md5HashKey = UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvMd5Hashkey, AuthorizeNet.Util.Constants.PropMd5Hashkey); - - //require only one cnp or cp merchant keys - if (null != ApiLoginIdKey && null != TransactionKey) - { - Logger.debug("Merchant Login and transaction keys are present."); - } - else - { - throw new ArgumentException( - "LoginId and/or TransactionKey have not been set. Merchant keys are required."); - } - - ErrorMessages = new Dictionary(); - } - - [TestFixtureSetUp] - public static void SetUpBeforeClass()//TestContext context) - { - ErrorMessages.Clear(); - ErrorMessages.Add("E00003", ""); //The message is dynamic based on the xsd violation. - ErrorMessages.Add("E00007", "User authentication failed due to invalid authentication values."); - ErrorMessages.Add("E00027", ""); - ErrorMessages.Add("E00040", ""); - ErrorMessages.Add("E00090", "PaymentProfile cannot be sent with payment data." ); - ErrorMessages.Add("E00091", "PaymentProfileId cannot be sent with payment data."); - ErrorMessages.Add("E00092", "ShippingProfileId cannot be sent with ShipTo data."); - ErrorMessages.Add("E00093", "PaymentProfile cannot be sent with billing data."); - ErrorMessages.Add("E00095", "ShippingProfileId is not provided within Customer Profile."); - } - - [TestFixtureTearDown] - public static void TearDownAfterClass() - { - } - - public static String DateFormat = "yyyy-MM-dd'T'HH:mm:ss"; - - [SetUp] - public void SetUp() - { - MockContext = new MockFactory(); - - //initialize counter - Counter = _random.Next(1, (int) (Math.Pow(2, 24))); - CounterStr = GetRandomString(""); - - _now = DateTime.UtcNow; - _nowString = _now.ToString(DateFormat); - - _pastDate = _now.AddMonths(-1); - _nowDate = _now; - _futureDate = _now.AddMonths(1); - - CustomMerchantAuthenticationType = new merchantAuthenticationType - { - name = ApiLoginIdKey, - ItemElementName = ItemChoiceType.transactionKey, - Item = TransactionKey, - }; - - // merchantAuthenticationType.setSessionToken(GetRandomString("SessionToken")); - // merchantAuthenticationType.setPass_word(GetRandomString("Pass_word")); - // merchantAuthenticationType.setMobileDeviceId(GetRandomString("MobileDevice")); - - // ImpersonationAuthenticationType impersonationAuthenticationType = new ImpersonationAuthenticationType(); - // impersonationAuthenticationType.setPartnerLoginId(CnpApiLoginIdKey); - // impersonationAuthenticationType.setPartnerTransactionKey(CnpTransactionKey); - // merchantAuthenticationType.setImpersonationAuthentication(impersonationAuthenticationType); - - CustomerProfileType = new customerProfileType - { - merchantCustomerId = GetRandomString("Customer"), - description = GetRandomString("CustomerDescription"), - email = CounterStr + ".customerProfileType@test.anet.net", - }; - - //make sure these elements are initialized by calling get as it uses lazy initialization - var paymentProfiles = CustomerProfileType.paymentProfiles; - var addresses = CustomerProfileType.shipToList; - - CreditCardOne = new creditCardType - { - cardNumber = "4111111111111111", - expirationDate = "2038-12", - }; - // creditCardOne.setCardCode(""); - - BankAccountOne = new bankAccountType - { - accountType = bankAccountTypeEnum.savings, - routingNumber = "125000000", - accountNumber = GetRandomString("A/C#"), - nameOnAccount = GetRandomString("A/CName"), - echeckType = echeckTypeEnum.WEB, - bankName = GetRandomString("Bank"), - checkNumber = CounterStr, - }; - - TrackDataOne = new creditCardTrackType - { - ItemElementName = ItemChoiceType1.track1, - Item = GetRandomString("Track1"), - //trackDataOne.setTrack2(GetRandomString("Track2")); - }; - - EncryptedTrackDataOne = new encryptedTrackDataType - { - FormOfPayment = new KeyBlock(), - }; - //keyBlock.setValue(value); - - PayPalOne = new payPalType - { - successUrl = GetRandomString("https://success.anet.net"), - cancelUrl = GetRandomString("https://cancel.anet.net"), - paypalLc = GetRandomString("Lc"), - paypalHdrImg = GetRandomString("Hdr"), - paypalPayflowcolor = GetRandomString("flowClr"), - payerID = GetRandomString("PayerId"), - }; - - PaymentOne = new paymentType - { - Item = CreditCardOne - }; - //paymentOne.setBankAccount(bankAccountOne); - //paymentOne.setTrackData(trackDataOne); - //paymentOne.setEncryptedTrackData(encryptedTrackDataOne); - //paymentOne.setPayPal( payPalOne); - - // driversLicenseOne = new DriversLicenseType(); - // driversLicenseOne.setNumber(GetRandomString("DLNumber")); - // driversLicenseOne.setState(GetRandomString("WA")); - // driversLicenseOne.setDateOfBirth(nowString); - - CustomerAddressOne = new customerAddressType - { - firstName = GetRandomString("FName"), - lastName = GetRandomString("LName"), - company = GetRandomString("Company"), - address = GetRandomString("StreetAdd"), - city = "Bellevue", - state = "WA", - zip = "98000", - country = "USA", - phoneNumber = FormatToPhone(Counter), - faxNumber = FormatToPhone(Counter + 1), - }; - - CustomerPaymentProfileOne = new customerPaymentProfileType - { - customerType = customerTypeEnum.individual, - payment = PaymentOne, - }; - // customerPaymentProfileOne.setBillTo(customerAddressOne); - // customerPaymentProfileOne.setDriversLicense(driversLicenseOne); - // customerPaymentProfileOne.setTaxId(GetRandomString("XX")); - - - CustomerOne = new customerType - { - type = customerTypeEnum.individual, - id = GetRandomString("Id"), - email = CounterStr + ".customerOne@test.anet.net", - phoneNumber = FormatToPhone(Counter), - faxNumber = FormatToPhone(Counter + 1), - driversLicense = DriversLicenseOne, - taxId = "911011011", - }; - - CustomerTwo = new customerType(); - - var interval = new paymentScheduleTypeInterval - { - length = 1, - unit = ARBSubscriptionUnitEnum.months, - }; - - OrderType = new orderType() - { - //TODO ADD VALIDATION ON INVOICE LENGTH - invoiceNumber = GetRandomString("Inv:"), - description = GetRandomString("Description"), - }; - - NameAndAddressTypeOne = new nameAndAddressType - { - firstName = GetRandomString("FName"), - lastName = GetRandomString("LName"), - company = GetRandomString("Company"), - address = GetRandomString("Address"), - city = GetRandomString("City"), - state = GetRandomString("State"), - zip = "98004", - country = "USA", - }; - - NameAndAddressTypeTwo = new nameAndAddressType - { - firstName = GetRandomString("FName"), - lastName = GetRandomString("LName"), - company = GetRandomString("Company"), - address = GetRandomString("Address"), - city = GetRandomString("City"), - state = GetRandomString("State"), - zip = "98004", - country = "USA", - }; - - PaymentScheduleTypeOne = new paymentScheduleType - { - interval = interval, - startDate = _nowDate, - totalOccurrences = 5, - trialOccurrences = 0, - }; - - ArbSubscriptionOne = new ARBSubscriptionType - { - amount = SetValidSubscriptionAmount(Counter), - billTo = NameAndAddressTypeOne, - customer = CustomerOne, - name = GetRandomString("Name"), - order = OrderType, - payment = PaymentOne, - paymentSchedule = PaymentScheduleTypeOne, - shipTo = NameAndAddressTypeOne, - trialAmount= SetValidSubscriptionAmount(0), - }; - - CustomerDataOne = new customerDataType - { - driversLicense = CustomerOne.driversLicense, - email = CustomerOne.email, - id = CustomerOne.id, - taxId = CustomerOne.taxId, - type = CustomerOne.type, - }; - - RefId = CounterStr; - } - - [TearDown] - public void TearDown() { - MockContext.VerifyAllExpectationsHaveBeenMet(); - } - - string GetRandomString(string title) { - return String.Format("{0}{1}", title, Counter); - } - - public String FormatToPhone(int number) { - var formattedNumber = string.Format( "{0:0000000000}", number); - return formattedNumber.Substring(0, 3)+"-"+ - formattedNumber.Substring(3, 3)+"-"+ - formattedNumber.Substring(6, 4); - } - - public decimal SetValidTaxAmount(decimal amount) - { - return (amount * TaxRate); - } - - public decimal SetValidTransactionAmount(int number) - { - //updated to return a value with dollars and cents and not just whole dollars. - return (Decimal)setValidAmount(number, MaxTransactionAmount/100); - } - - public decimal SetValidSubscriptionAmount(int number) - { - return setValidAmount(number, MaxSubscriptionAmount); - } - - private decimal setValidAmount(int number, int maxAmount) - { - //Test that result is not larger than the specified max value - number = (number > maxAmount) ? (number % maxAmount) : number; - - Decimal dollarsAndCents = (decimal)number / 100; - - //Test that result is not less than the global Min Value - return dollarsAndCents = (dollarsAndCents < MinAmount) ? (MinAmount + dollarsAndCents) : dollarsAndCents; - } - - static ANetApiResponse _errorResponse; - - protected ANetApiResponse GetErrorResponse() { - return _errorResponse; - } - - private const int MaxSubscriptionAmount = 1000; //214747; - private const int MaxTransactionAmount = 10000; //214747; - private const int MinAmount = 1; - private const decimal TaxRate = 0.10m; - - protected static TS ExecuteTestRequestWithSuccess(TQ request, AuthorizeNet.Environment execEnvironment = null) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - TS response = ExecuteTestRequest( true, request, execEnvironment); - - return response; - } - - protected static TS ExecuteTestRequestWithFailure(TQ request, AuthorizeNet.Environment execEnvironment = null) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - TS response = ExecuteTestRequest(false, request, execEnvironment); - - return response; - } - - private static TS ExecuteTestRequest(bool successExpected, TQ request, AuthorizeNet.Environment execEnvironment = null) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - - LogHelper.debug( Logger, "Created {0} Request: '{1}'", request.GetType(), request); - - TS response = null; - TT controller = null; - _errorResponse = null; - var controllerClass = typeof (TT); - try { - var parameters = new object[] {request} ; - var controllerObject = Activator.CreateInstance(controllerClass, parameters); - if ( controllerObject is TT) - { - controller = (TT) controllerObject; - } - if (null != controller) - { - ANetApiResponse baseResponse = controller.ExecuteWithApiResponse(execEnvironment); - LogHelper.info(Logger, "{0} ResultCode: {1}", controllerClass, controller.GetResultCode()); - LogHelper.info(Logger, "{0} Results: {1}", controllerClass, controller.GetResults()); - response = (TS) baseResponse; - } - else - { - LogHelper.error(Logger, "Unable to instantiate Controller: '{0}'", controllerClass); - } - } catch (Exception e) { - LogHelper.error(Logger, "Exception : '{0}' during {1}", e.Message, controllerClass); - } - if ( successExpected) - { - ProcessFailureResult( true, controller, response); - ValidateSuccess( controller, response); - } else { - ValidateFailure( controller, response); - } - if (null == response && null != controller && null != controller.GetErrorResponse()) - { - _errorResponse = controller.GetErrorResponse(); - } - - return response; - } - - protected static void ProcessFailureResult(bool fail, TT controller, TS response) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - //in case there are errors, log the error messages - if ( messageTypeEnum.Ok != controller.GetResultCode()) - { - foreach ( var aMessage in controller.GetResults()) { - LogHelper.info(Logger, "Controller Messages: '{0}' ", aMessage); - } - DisplayResponse(response, "Failure Messsages"); - var errorResponse = controller.GetErrorResponse(); - DisplayResponse(errorResponse, "Error Response Messages"); - if ( fail) - { - Assert.Fail("Request failed."); - } - } - } - - protected static void ValidateSuccess( TT controller, TS response) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - Assert.AreEqual( messageTypeEnum.Ok, controller.GetResultCode()); - Assert.IsNull(controller.GetErrorResponse()); - Assert.IsNotNull(response); - DisplayResponse( response, "Success Messages"); - } - - protected static void ValidateFailure( TT controller, TS response) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : ApiOperationBase - { - Assert.AreEqual( messageTypeEnum.Error, controller.GetResultCode()); - //TODO Until error response is fixed - //Assert.assertNotNull(controller.getErrorResponse()); - //Assert.assertNull(response); - ProcessFailureResult(false, controller, response); - } - - protected static void DisplayResponse(ANetApiResponse response, String source) { - LogHelper.info(Logger, "Source '{0}' ", source); - if (null != response) { - var messageType = response.messages; - if ( null != messageType) { - LogHelper.info(Logger, "MessageCode: '{0}' ", messageType.resultCode.ToString()); - foreach ( var aMessage in messageType.message) { - LogHelper.info(Logger, "Message: '{0}':'{1}' ", aMessage.code, aMessage.text); - } - } - } - } - - protected void ValidateErrorCode(messagesType messagesType, string errorCode) - { - var firstError = GetFirstErrorMessage( messagesType); - if (null != firstError) - { - Assert.AreEqual( errorCode, firstError.code); - if ( ErrorMessages.ContainsKey(errorCode)) - { - string message = ErrorMessages[errorCode]; - if ( !(string.IsNullOrEmpty(message))) - { - Assert.AreEqual( message, firstError.text); - } - } - } - } - - protected static string GetFirstErrorCode(messagesType messagesType) - { - var errorMessage = GetFirstErrorMessage( messagesType); - return ( (null != errorMessage) ? errorMessage.code : null); - } - - protected static string GetFirstErrorText(messagesType messagesType) - { - var errorMessage = GetFirstErrorMessage( messagesType); - return ( (null != errorMessage) ? errorMessage.text : null); - } - - protected static messagesTypeMessage GetFirstErrorMessage(messagesType messagesType) - { - messagesTypeMessage errorMessage = null; - if ( null != messagesType.message) - { - foreach( var aMessage in messagesType.message) - { - errorMessage = aMessage; - break; - } - } - - return errorMessage; - - } - - protected void SetMockControllerExpectations ( + [TestFixture] + public abstract class ApiCoreTestBase + { + + protected static readonly Log Logger = LogFactory.GetLog(typeof(ApiCoreTestBase)); + + protected static readonly IDictionary ErrorMessages; + + protected static Environment TestEnvironment = Environment.SANDBOX; + //protected static AuthorizeNet.Environment TestEnvironment = AuthorizeNet.Environment.HOSTED_VM; + + static readonly string ApiLoginIdKey; + static readonly string TransactionKey; + static readonly string _md5HashKey; + + DateTime _pastDate; + DateTime _nowDate; + DateTime _futureDate; + String _nowString; + DateTime _now = DateTime.UtcNow; + + protected string RefId; + protected int Counter; + protected String CounterStr; + + protected merchantAuthenticationType CustomMerchantAuthenticationType; + + protected ARBSubscriptionType ArbSubscriptionOne; + + //protected ARBSubscriptionType ArbSubscriptionTwo; + protected bankAccountType BankAccountOne; + protected creditCardTrackType TrackDataOne; + protected creditCardType CreditCardOne; + protected customerAddressType CustomerAddressOne; + protected customerDataType CustomerDataOne; + protected customerPaymentProfileType CustomerPaymentProfileOne; + protected customerProfileType CustomerProfileType; + protected customerType CustomerOne; + protected customerType CustomerTwo; + protected driversLicenseType DriversLicenseOne; + protected encryptedTrackDataType EncryptedTrackDataOne; + protected nameAndAddressType NameAndAddressTypeOne; + protected nameAndAddressType NameAndAddressTypeTwo; + protected orderType OrderType; + protected paymentScheduleType PaymentScheduleTypeOne; + protected paymentType PaymentOne; + protected payPalType PayPalOne; + + protected MockFactory MockContext = null; + private readonly AnetRandom _random = new(); + static ApiCoreTestBase() + { + + //now we support Tls only, and .net defaults to TLS + //System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12; + + var config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None); + Logger.Error(String.Format("Configuration file used: {0}, Exists:{1}", config.FilePath, config.HasFile)); + + //getPropertyFromNames get the value from properties file or environment + ApiLoginIdKey = UnitTestData.GetPropertyFromNames(Util.Constants.EnvApiLoginid, Util.Constants.PropApiLoginid); + TransactionKey = UnitTestData.GetPropertyFromNames(Util.Constants.EnvTransactionKey, Util.Constants.PropTransactionKey); + _md5HashKey = UnitTestData.GetPropertyFromNames(Util.Constants.EnvMd5Hashkey, Util.Constants.PropMd5Hashkey); + + //require only one cnp or cp merchant keys + if (null != ApiLoginIdKey && null != TransactionKey) + { + Logger.Debug("Merchant Login and transaction keys are present."); + } + else + { + throw new ArgumentException( + "LoginId and/or TransactionKey have not been set. Merchant keys are required."); + } + + ErrorMessages = new Dictionary(); + } + + [SetUp] + public static void SetUpBeforeClass()//TestContext context) + { + ErrorMessages.Clear(); + ErrorMessages.Add("E00003", ""); //The message is dynamic based on the xsd violation. + ErrorMessages.Add("E00007", "User authentication failed due to invalid authentication values."); + ErrorMessages.Add("E00027", ""); + ErrorMessages.Add("E00040", ""); + ErrorMessages.Add("E00090", "PaymentProfile cannot be sent with payment data."); + ErrorMessages.Add("E00091", "PaymentProfileId cannot be sent with payment data."); + ErrorMessages.Add("E00092", "ShippingProfileId cannot be sent with ShipTo data."); + ErrorMessages.Add("E00093", "PaymentProfile cannot be sent with billing data."); + ErrorMessages.Add("E00095", "ShippingProfileId is not provided within Customer Profile."); + } + + [TearDown] + public static void TearDownAfterClass() + { + } + + public static String DateFormat = "yyyy-MM-dd'T'HH:mm:ss"; + + [SetUp] + public void SetUp() + { + MockContext = new MockFactory(); + + //initialize counter + Counter = _random.Next(1, (int)(Math.Pow(2, 24))); + CounterStr = GetRandomString(""); + + _now = DateTime.UtcNow; + _nowString = _now.ToString(DateFormat); + + _pastDate = _now.AddMonths(-1); + _nowDate = _now; + _futureDate = _now.AddMonths(1); + + CustomMerchantAuthenticationType = new merchantAuthenticationType + { + name = ApiLoginIdKey, + ItemElementName = ItemChoiceType.transactionKey, + Item = TransactionKey, + }; + + // merchantAuthenticationType.setSessionToken(GetRandomString("SessionToken")); + // merchantAuthenticationType.setPass_word(GetRandomString("Pass_word")); + // merchantAuthenticationType.setMobileDeviceId(GetRandomString("MobileDevice")); + + // ImpersonationAuthenticationType impersonationAuthenticationType = new ImpersonationAuthenticationType(); + // impersonationAuthenticationType.setPartnerLoginId(CnpApiLoginIdKey); + // impersonationAuthenticationType.setPartnerTransactionKey(CnpTransactionKey); + // merchantAuthenticationType.setImpersonationAuthentication(impersonationAuthenticationType); + + CustomerProfileType = new customerProfileType + { + merchantCustomerId = GetRandomString("Customer"), + description = GetRandomString("CustomerDescription"), + email = CounterStr + ".customerProfileType@test.anet.net", + }; + + //make sure these elements are initialized by calling get as it uses lazy initialization + var paymentProfiles = CustomerProfileType.paymentProfiles; + var addresses = CustomerProfileType.shipToList; + + CreditCardOne = new creditCardType + { + cardNumber = "4111111111111111", + expirationDate = "2038-12", + }; + // creditCardOne.setCardCode(""); + + BankAccountOne = new bankAccountType + { + accountType = bankAccountTypeEnum.savings, + routingNumber = "125000000", + accountNumber = GetRandomString("A/C#"), + nameOnAccount = GetRandomString("A/CName"), + echeckType = echeckTypeEnum.WEB, + bankName = GetRandomString("Bank"), + checkNumber = CounterStr, + }; + + TrackDataOne = new creditCardTrackType + { + ItemElementName = ItemChoiceType1.track1, + Item = GetRandomString("Track1"), + //trackDataOne.setTrack2(GetRandomString("Track2")); + }; + + EncryptedTrackDataOne = new encryptedTrackDataType + { + FormOfPayment = new KeyBlock(), + }; + //keyBlock.setValue(value); + + PayPalOne = new payPalType + { + successUrl = GetRandomString("https://success.anet.net"), + cancelUrl = GetRandomString("https://cancel.anet.net"), + paypalLc = GetRandomString("Lc"), + paypalHdrImg = GetRandomString("Hdr"), + paypalPayflowcolor = GetRandomString("flowClr"), + payerID = GetRandomString("PayerId"), + }; + + PaymentOne = new paymentType + { + Item = CreditCardOne + }; + //paymentOne.setBankAccount(bankAccountOne); + //paymentOne.setTrackData(trackDataOne); + //paymentOne.setEncryptedTrackData(encryptedTrackDataOne); + //paymentOne.setPayPal( payPalOne); + + // driversLicenseOne = new DriversLicenseType(); + // driversLicenseOne.setNumber(GetRandomString("DLNumber")); + // driversLicenseOne.setState(GetRandomString("WA")); + // driversLicenseOne.setDateOfBirth(nowString); + + CustomerAddressOne = new customerAddressType + { + firstName = GetRandomString("FName"), + lastName = GetRandomString("LName"), + company = GetRandomString("Company"), + address = GetRandomString("StreetAdd"), + city = "Bellevue", + state = "WA", + zip = "98000", + country = "USA", + phoneNumber = FormatToPhone(Counter), + faxNumber = FormatToPhone(Counter + 1), + }; + + CustomerPaymentProfileOne = new customerPaymentProfileType + { + customerType = customerTypeEnum.individual, + payment = PaymentOne, + }; + // customerPaymentProfileOne.setBillTo(customerAddressOne); + // customerPaymentProfileOne.setDriversLicense(driversLicenseOne); + // customerPaymentProfileOne.setTaxId(GetRandomString("XX")); + + + CustomerOne = new customerType + { + type = customerTypeEnum.individual, + id = GetRandomString("Id"), + email = CounterStr + ".customerOne@test.anet.net", + phoneNumber = FormatToPhone(Counter), + faxNumber = FormatToPhone(Counter + 1), + driversLicense = DriversLicenseOne, + taxId = "911011011", + }; + + CustomerTwo = new customerType(); + + var interval = new paymentScheduleTypeInterval + { + length = 1, + unit = ARBSubscriptionUnitEnum.months, + }; + + OrderType = new orderType() + { + //TODO ADD VALIDATION ON INVOICE LENGTH + invoiceNumber = GetRandomString("Inv:"), + description = GetRandomString("Description"), + }; + + NameAndAddressTypeOne = new nameAndAddressType + { + firstName = GetRandomString("FName"), + lastName = GetRandomString("LName"), + company = GetRandomString("Company"), + address = GetRandomString("Address"), + city = GetRandomString("City"), + state = GetRandomString("State"), + zip = "98004", + country = "USA", + }; + + NameAndAddressTypeTwo = new nameAndAddressType + { + firstName = GetRandomString("FName"), + lastName = GetRandomString("LName"), + company = GetRandomString("Company"), + address = GetRandomString("Address"), + city = GetRandomString("City"), + state = GetRandomString("State"), + zip = "98004", + country = "USA", + }; + + PaymentScheduleTypeOne = new paymentScheduleType + { + interval = interval, + startDate = _nowDate, + totalOccurrences = 5, + trialOccurrences = 0, + }; + + ArbSubscriptionOne = new ARBSubscriptionType + { + amount = SetValidSubscriptionAmount(Counter), + billTo = NameAndAddressTypeOne, + customer = CustomerOne, + name = GetRandomString("Name"), + order = OrderType, + payment = PaymentOne, + paymentSchedule = PaymentScheduleTypeOne, + shipTo = NameAndAddressTypeOne, + trialAmount = SetValidSubscriptionAmount(0), + }; + + CustomerDataOne = new customerDataType + { + driversLicense = CustomerOne.driversLicense, + email = CustomerOne.email, + id = CustomerOne.id, + taxId = CustomerOne.taxId, + type = CustomerOne.type, + }; + + RefId = CounterStr; + } + + [TearDown] + public void TearDown() + { + MockContext.VerifyAllExpectationsHaveBeenMet(); + } + + string GetRandomString(string title) + { + return String.Format("{0}{1}", title, Counter); + } + + public String FormatToPhone(int number) + { + var formattedNumber = string.Format("{0:0000000000}", number); + return formattedNumber.Substring(0, 3) + "-" + + formattedNumber.Substring(3, 3) + "-" + + formattedNumber.Substring(6, 4); + } + + public decimal SetValidTaxAmount(decimal amount) + { + return (amount * TaxRate); + } + + public decimal SetValidTransactionAmount(int number) + { + //updated to return a value with dollars and cents and not just whole dollars. + return (Decimal)SetValidAmount(number, MaxTransactionAmount / 100); + } + + public decimal SetValidSubscriptionAmount(int number) + { + return SetValidAmount(number, MaxSubscriptionAmount); + } + + private decimal SetValidAmount(int number, int maxAmount) + { + //Test that result is not larger than the specified max value + number = (number > maxAmount) ? (number % maxAmount) : number; + + var dollarsAndCents = (decimal)number / 100; + + //Test that result is not less than the global Min Value + return (dollarsAndCents < MinAmount) ? (MinAmount + dollarsAndCents) : dollarsAndCents; + } + + static ANetApiResponse _errorResponse; + + protected ANetApiResponse GetErrorResponse() + { + return _errorResponse; + } + + private const int MaxSubscriptionAmount = 1000; //214747; + private const int MaxTransactionAmount = 10000; //214747; + private const int MinAmount = 1; + private const decimal TaxRate = 0.10m; + + protected static TS ExecuteTestRequestWithSuccess(TQ request, Environment execEnvironment = null) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + TS response = ExecuteTestRequest(true, request, execEnvironment); + + return response; + } + + protected static TS ExecuteTestRequestWithFailure(TQ request, Environment execEnvironment = null) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + TS response = ExecuteTestRequest(false, request, execEnvironment); + + return response; + } + + private static TS ExecuteTestRequest(bool successExpected, TQ request, Environment execEnvironment = null) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + + LogHelper.Debug(Logger, "Created {0} Request: '{1}'", request.GetType(), request); + + TS response = null; + TT controller = null; + _errorResponse = null; + var controllerClass = typeof(TT); + try + { + var parameters = new object[] { request }; + var controllerObject = Activator.CreateInstance(controllerClass, parameters); + if (controllerObject is TT tT) + { + controller = tT; + } + if (null != controller) + { + ANetApiResponse baseResponse = controller.ExecuteWithApiResponse(execEnvironment); + LogHelper.Info(Logger, "{0} ResultCode: {1}", controllerClass, controller.GetResultCode()); + LogHelper.Info(Logger, "{0} Results: {1}", controllerClass, controller.GetResults()); + response = (TS)baseResponse; + } + else + { + LogHelper.Error(Logger, "Unable to instantiate Controller: '{0}'", controllerClass); + } + } + catch (Exception e) + { + LogHelper.Error(Logger, "Exception : '{0}' during {1}", e.Message, controllerClass); + } + if (successExpected) + { + ProcessFailureResult(true, controller, response); + ValidateSuccess(controller, response); + } + else + { + ValidateFailure(controller, response); + } + if (null == response && null != controller && null != controller.GetErrorResponse()) + { + _errorResponse = controller.GetErrorResponse(); + } + + return response; + } + + protected static void ProcessFailureResult(bool fail, TT controller, TS response) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + //in case there are errors, log the error messages + if (messageTypeEnum.Ok != controller.GetResultCode()) + { + foreach (var aMessage in controller.GetResults()) + { + LogHelper.Info(Logger, "Controller Messages: '{0}' ", aMessage); + } + DisplayResponse(response, "Failure Messsages"); + var errorResponse = controller.GetErrorResponse(); + DisplayResponse(errorResponse, "Error Response Messages"); + if (fail) + { + Assert.Fail("Request failed."); + } + } + } + + protected static void ValidateSuccess(TT controller, TS response) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + Assert.AreEqual(messageTypeEnum.Ok, controller.GetResultCode()); + Assert.IsNull(controller.GetErrorResponse()); + Assert.IsNotNull(response); + DisplayResponse(response, "Success Messages"); + } + + protected static void ValidateFailure(TT controller, TS response) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : ApiOperationBase + { + Assert.AreEqual(messageTypeEnum.Error, controller.GetResultCode()); + //TODO Until error response is fixed + //Assert.assertNotNull(controller.getErrorResponse()); + //Assert.assertNull(response); + ProcessFailureResult(false, controller, response); + } + + protected static void DisplayResponse(ANetApiResponse response, String source) + { + LogHelper.Info(Logger, "Source '{0}' ", source); + if (null != response) + { + var messageType = response.messages; + if (null != messageType) + { + LogHelper.Info(Logger, "MessageCode: '{0}' ", messageType.resultCode.ToString()); + foreach (var aMessage in messageType.message) + { + LogHelper.Info(Logger, "Message: '{0}':'{1}' ", aMessage.code, aMessage.text); + } + } + } + } + + protected void ValidateErrorCode(messagesType messagesType, string errorCode) + { + var firstError = GetFirstErrorMessage(messagesType); + if (null != firstError) + { + Assert.AreEqual(errorCode, firstError.code); + if (ErrorMessages.ContainsKey(errorCode)) + { + string message = ErrorMessages[errorCode]; + if (!(string.IsNullOrEmpty(message))) + { + Assert.AreEqual(message, firstError.text); + } + } + } + } + + protected static string GetFirstErrorCode(messagesType messagesType) + { + var errorMessage = GetFirstErrorMessage(messagesType); + return (errorMessage?.code); + } + + protected static string GetFirstErrorText(messagesType messagesType) + { + var errorMessage = GetFirstErrorMessage(messagesType); + return (errorMessage?.text); + } + + protected static messagesTypeMessage GetFirstErrorMessage(messagesType messagesType) + { + messagesTypeMessage errorMessage = null; + if (null != messagesType.message) + { + foreach (var aMessage in messagesType.message) + { + errorMessage = aMessage; + break; + } + } + + return errorMessage; + + } + + protected void SetMockControllerExpectations( IApiOperation mockController, TQ mockRequest, TS mockResponse, - ANetApiResponse errorResponse, + ANetApiResponse errorResponse, List results, - messageTypeEnum messageType) - where TQ : ANetApiRequest - where TS : ANetApiResponse - where TT : IApiOperation - { - var mockEnvironment = AuthorizeNet.Environment.CUSTOM; - - //using (MockContext.Unordered()) - { - //Expect.On(mockController).Any.Method(i => i.Execute(mockEnvironment)); - Expect.On(mockController).Any.Method(i => i.Execute(mockEnvironment)).With(mockEnvironment); - Expect.On(mockController).Any.Method(i => i.GetApiResponse()).WillReturn(mockResponse); - //Expect.On(mockController).Between(0, 10).Method(i => i.ExecuteWithApiResponse(mockEnvironment)).WillReturn(mockResponse); - Expect.On(mockController).Any.Method(i => i.ExecuteWithApiResponse(mockEnvironment)).With(mockEnvironment).WillReturn(mockResponse); - Expect.On(mockController).Any.Method(i => i.GetResults()).WillReturn(results); - Expect.On(mockController).Any.Method(i => i.GetResultCode()).WillReturn(messageType); - Expect.On(mockController).Any.Method(i => i.GetErrorResponse()).WillReturn(errorResponse); - } - - if (null != mockRequest && null != mockResponse) - { - mockResponse.refId = mockRequest.refId; - } - var realController = Activator.CreateInstance(typeof(TT), mockRequest); - Assert.IsNotNull(realController); - - LogHelper.info(Logger, "Request: {0}", mockRequest); - ShowProperties(mockRequest); - LogHelper.info(Logger, "Response: {0}", mockResponse); - ShowProperties(mockResponse); - } - - protected Mock> GetMockController() where TQ : ANetApiRequest where TS : ANetApiResponse - { - return MockContext.CreateMock>(); - } - - public static void ShowProperties(Object bean) { - if ( null == bean) { return; } - - try - { - var fieldInfos = bean.GetType().GetFields();//BindingFlags.GetProperty); - foreach (var pd in fieldInfos) - { - var name = pd.Name; - var type = pd.FieldType; - - if (!("class".Equals(name)) && - !(bean.ToString().Equals(name))) - { - try - { - var value = pd.GetValue(bean); - //var value = bean.GetType().GetField(name).GetValue(bean); - LogHelper.info(Logger, "Field Type: '{0}', Name:'{1}', Value:'{2}'", type, name, value); - ProcessCollections(type, name, value); - //process compositions of custom classes - //if (null != value && 0 <= type.ToString().IndexOf("AuthorizeNet.", System.StringComparison.Ordinal)) - - var whiteListAssembly = (type.Assembly.FullName.IndexOf("AuthorizeNET", StringComparison.Ordinal) >= 0 ); - - if (null != value && - whiteListAssembly && - !(value is Enum) && - !value.GetType().IsPrimitive && - !(value is string)) - { - ShowProperties(value); - } - - var propertyChanged = bean as INotifyPropertyChanged; - if (propertyChanged != null) - { - var changed = false; - propertyChanged.PropertyChanged += (s, e) => { if (e.PropertyName == name) changed = true; }; - } - } catch (Exception e) { - LogHelper.info(Logger, "Exception during getting Field value: Type: '{0}', Name:'{1}', Message: {2}, StackTrace: {3}", type, name, e.Message, e.StackTrace); - } - } - } - } - catch (Exception e) - { - LogHelper.info(Logger, "Exception during navigating properties: Message: {0}, StackTrace: {1}", e.Message, e.StackTrace); - } - } - - public static void ProcessCollections( Type type, String name, Object value) - { - if (null == type) return; - var values = value as IEnumerable; - if (values != null && - !(value is string)) - { - LogHelper.info(Logger, "Iterating on Collection: '{0}'", name); - foreach (var aValue in values) - { - ShowProperties(aValue); - } - } - } - - } + messageTypeEnum messageType) + where TQ : ANetApiRequest + where TS : ANetApiResponse + where TT : IApiOperation + { + var mockEnvironment = Environment.CUSTOM; + + //using (MockContext.Unordered()) + { + //Expect.On(mockController).Any.Method(i => i.Execute(mockEnvironment)); + Expect.On(mockController).Any.Method(i => i.Execute(mockEnvironment)).With(mockEnvironment); + Expect.On(mockController).Any.Method(i => i.GetApiResponse()).WillReturn(mockResponse); + //Expect.On(mockController).Between(0, 10).Method(i => i.ExecuteWithApiResponse(mockEnvironment)).WillReturn(mockResponse); + Expect.On(mockController).Any.Method(i => i.ExecuteWithApiResponse(mockEnvironment)).With(mockEnvironment).WillReturn(mockResponse); + Expect.On(mockController).Any.Method(i => i.GetResults()).WillReturn(results); + Expect.On(mockController).Any.Method(i => i.GetResultCode()).WillReturn(messageType); + Expect.On(mockController).Any.Method(i => i.GetErrorResponse()).WillReturn(errorResponse); + } + + if (null != mockRequest && null != mockResponse) + { + mockResponse.refId = mockRequest.refId; + } + var realController = Activator.CreateInstance(typeof(TT), mockRequest); + Assert.IsNotNull(realController); + + LogHelper.Info(Logger, "Request: {0}", mockRequest); + ShowProperties(mockRequest); + LogHelper.Info(Logger, "Response: {0}", mockResponse); + ShowProperties(mockResponse); + } + + protected Mock> GetMockController() where TQ : ANetApiRequest where TS : ANetApiResponse + { + return MockContext.CreateMock>(); + } + + public static void ShowProperties(Object bean) + { + if (null == bean) { return; } + + try + { + var fieldInfos = bean.GetType().GetFields();//BindingFlags.GetProperty); + foreach (var pd in fieldInfos) + { + var name = pd.Name; + var type = pd.FieldType; + + if (!("class".Equals(name)) && + !(bean.ToString().Equals(name))) + { + try + { + var value = pd.GetValue(bean); + //var value = bean.GetType().GetField(name).GetValue(bean); + LogHelper.Info(Logger, "Field Type: '{0}', Name:'{1}', Value:'{2}'", type, name, value); + ProcessCollections(type, name, value); + //process compositions of custom classes + //if (null != value && 0 <= type.ToString().IndexOf("AuthorizeNet.", System.StringComparison.Ordinal)) + + var whiteListAssembly = (type.Assembly.FullName.IndexOf("AuthorizeNET", StringComparison.Ordinal) >= 0); + + if (null != value && + whiteListAssembly && + value is not Enum && + !value.GetType().IsPrimitive && + value is not string) + { + ShowProperties(value); + } + + if (bean is INotifyPropertyChanged propertyChanged) + { + var changed = false; + propertyChanged.PropertyChanged += (s, e) => { if (e.PropertyName == name) changed = true; }; + } + } + catch (Exception e) + { + LogHelper.Info(Logger, "Exception during getting Field value: Type: '{0}', Name:'{1}', Message: {2}, StackTrace: {3}", type, name, e.Message, e.StackTrace); + } + } + } + } + catch (Exception e) + { + LogHelper.Info(Logger, "Exception during navigating properties: Message: {0}, StackTrace: {1}", e.Message, e.StackTrace); + } + } + + public static void ProcessCollections(Type type, String name, Object value) + { + if (null == type) return; + if (value is IEnumerable values && + value is not string) + { + LogHelper.Info(Logger, "Iterating on Collection: '{0}'", name); + foreach (var aValue in values) + { + ShowProperties(aValue); + } + } + } + + } #pragma warning restore 649 #pragma warning restore 169 -// ReSharper restore NotAccessedField.Local -// ReSharper restore FieldCanBeMadeReadOnly.Local + // ReSharper restore NotAccessedField.Local + // ReSharper restore FieldCanBeMadeReadOnly.Local } \ No newline at end of file diff --git a/AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs b/AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs index 8f37aabc..c0621ee5 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs @@ -1,491 +1,494 @@ using AuthorizeNet.Utility; +using System; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Util; +using NUnit.Framework; +using System.Linq; namespace AuthorizeNet.Api.Controllers.Test { - using System; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Api.Controllers.Test; - using AuthorizeNet.Util; - using NUnit.Framework; - using System.Linq; - - [TestFixture] - public class ArbSubscriptionTest : ApiCoreTestBase { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() { - base.SetUp(); - } - - [TearDown] - public new void TearDown() { - base.TearDown(); - } - - [Test] - public void TestGetSubscriptionList() - { - //create a transaction - var transactionRequestType = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - order = OrderType, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - merchantAuthentication = CustomMerchantAuthenticationType, - }; - - var createResponse = ExecuteTestRequestWithSuccess(createRequest, TestEnvironment); - - var referenceTxnId = createResponse.transactionResponse.transId; - - var subscriptionId = CreateSubscription( CustomMerchantAuthenticationType, referenceTxnId); - var newStatus = GetSubscription( CustomMerchantAuthenticationType, subscriptionId); - Assert.AreEqual(ARBSubscriptionStatusEnum.active, newStatus); - - LogHelper.info(Logger, "Getting Subscription List for SubscriptionId: {0}", subscriptionId); - - int subsId; - var found = false; - Int32.TryParse(subscriptionId, out subsId); - - //setup retry loop to allow for delays in replication - for (int counter = 0; counter < 5; counter++) - { - var listRequest = SetupSubscriptionListRequest(CustomMerchantAuthenticationType); - var listResponse = ExecuteTestRequestWithSuccess(listRequest, TestEnvironment); - - if (listResponse.subscriptionDetails.Any(a => a.id == subsId)) - { - found = true; - break; - } - else - { - System.Threading.Thread.Sleep(10000); - } - } - - Assert.IsTrue(found); - CancelSubscription(CustomMerchantAuthenticationType, subscriptionId); - - //validate the status of subscription to make sure it is canceled - var cancelStatus = GetSubscription(CustomMerchantAuthenticationType, subscriptionId); - Assert.AreEqual(ARBSubscriptionStatusEnum.canceled, cancelStatus); - } - - [Test] - public void TestSubscription() { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a subscription - var subscriptionDef = new ARBSubscriptionType - { - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 1, - unit = ARBSubscriptionUnitEnum.months, - }, - startDate = DateTime.UtcNow, - totalOccurrences = 12, - }, - - - amount = 9.99M, - billTo = new nameAndAddressType{ firstName = "first", lastName = "last", address="123 elm st ne", city = "Bellevue", state = "Wa", zip = "98007"}, - - payment = PaymentOne, - - customer = CustomerOne, - - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, - }; - - var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; - var arbController = new ARBCreateSubscriptionController(arbRequest); - arbController.Execute(); - - var arbCreateResponse = arbController.GetApiResponse(); - - Assert.AreEqual(messageTypeEnum.Ok,arbController.GetResultCode()); - - } - - [Test] - public void TestSubscription_ExpiredCC() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - //create a subscription - var subscriptionDef = new ARBSubscriptionType - { - - - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 7, - unit = ARBSubscriptionUnitEnum.days - }, - startDate = DateTime.UtcNow, - totalOccurrences = 2, - }, - - - amount = 9.99M, - - billTo = new nameAndAddressType - { - address = "1234 Elm St NE", - city = "Bellevue", - state = "WA", - zip = "98007", - firstName = "First", - lastName = "Last" - }, - - payment = new paymentType - { - Item = new creditCardType - { - cardCode = "655", - //cardNumber = "4007000", - cardNumber = "4111111111111111", - expirationDate = "122013", - } - }, - - customer = new customerType { email = "somecustomer@test.org", id = "5", }, - - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, - }; - - var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; - var arbController = new ARBCreateSubscriptionController(arbRequest); - arbController.Execute(); - - var arbCreateResponse = arbController.GetApiResponse(); - - //If request responds with an error, walk the messages and get code and text for each message. - if (arbController.GetResultCode() == messageTypeEnum.Error) - { - foreach(var msg in arbCreateResponse.messages.message) - { - Console.WriteLine("Error Num = {0}, Message = {1}", msg.code, msg.text); - } - } - - } - - /// - /// Repro issue ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work - /// commenting the test attribute because issue is fixed. - /// @Zalak - /// - // [Test] - [ExpectedException(typeof(ArgumentException), ExpectedMessage = "SearchType cannot be null")] - public void GetSubscriptionSearchCardExpiringThisMonthIssueTest() - { - var getSubscriptionList = new ARBGetSubscriptionListRequest() - { - searchType = ARBGetSubscriptionListSearchTypeEnum.cardExpiringThisMonth, - - }; - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - var nullController = new ARBGetSubscriptionListController(getSubscriptionList); - Assert.IsNull( nullController, "Controller should not be instantiated."); - } - - /// - /// Fix the issue ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work - /// @Zalak - /// - [Test] - public void GetSubscriptionSearchCardExpiringThisMonthFixTest() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - var createSubscription = new ARBSubscriptionType() - { - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 8, - unit = ARBSubscriptionUnitEnum.months - }, - startDate = DateTime.UtcNow, - totalOccurrences = 3, - }, - amount = 19.29M, - - billTo = new nameAndAddressType - { - address = "1234 Elm St NE", - city = "Bellevue", - state = "WA", - zip = "98007", - firstName = "First", - lastName = "Last" - }, - - payment = new paymentType - { - Item = new creditCardType - { - cardCode = "123", - cardNumber = "5105105105105100", - // cardNumber = "4111111111111111", - expirationDate = "102015", - } - }, - - customer = new customerType { email = "somecustomer@test.org", id = "5", }, - - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, - }; - var arbCreateSubscriptionController = CreateSubscriptionRequestTest(createSubscription); - var arbCreateSubscriptionResponse = arbCreateSubscriptionController.ExecuteWithApiResponse(); - - if (null == arbCreateSubscriptionResponse) - { - throw new ArgumentNullException("arbCreateSubscriptionResponse"); - } - - var getSubscriptionList = new ARBGetSubscriptionListRequest() - { - searchType = ARBGetSubscriptionListSearchTypeEnum.cardExpiringThisMonth, - - }; - - var arbGetSubscriptionListController = new ARBGetSubscriptionListController(getSubscriptionList); - var arbGetSubscriptionListResponse = arbGetSubscriptionListController.ExecuteWithApiResponse(); - - Assert.IsNotNull(arbGetSubscriptionListResponse); - } - - private ARBGetSubscriptionListResponse GetSubscriptionListResponse(int limitNo, int offSetNo) - { - var getSubscriptionList = new ARBGetSubscriptionListRequest() - { - searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, - paging = new Paging() - { - limit = limitNo, - offset = offSetNo - }, - - }; - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - var arbGetSubscriptionListController = new ARBGetSubscriptionListController(getSubscriptionList); - var arbGetSubscriptionListResponse = arbGetSubscriptionListController.ExecuteWithApiResponse(); - return arbGetSubscriptionListResponse; - - } - /// - /// @Zalak - /// Test case for Pagination issue reported in Jira: - /// C# - ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work - /// - [Test] - public void ARBGetSubscriptionListCheckPagination() - { - - var arbGetSubscriptionListResponse = GetSubscriptionListResponse(1, 1); - ARBGetSubscriptionListResponse response = null; - int limitNo = 3; - int offSetNo = 2; - - if (arbGetSubscriptionListResponse != null) - { - int subcriptionNumber = arbGetSubscriptionListResponse.totalNumInResultSet; - int expectedSubscriptionNo = 0; - int nPages = subcriptionNumber/limitNo; - int subscriptionDetailsOnLastPage = subcriptionNumber%limitNo; - if (offSetNo <= nPages) - expectedSubscriptionNo = limitNo; - else if (offSetNo > (nPages + 1)) - expectedSubscriptionNo = 0; - else - { - expectedSubscriptionNo = subscriptionDetailsOnLastPage; - } - response = GetSubscriptionListResponse(limitNo, offSetNo); - Assert.AreEqual(expectedSubscriptionNo, response.subscriptionDetails.Count()); - } - else - { - Assert.Null(arbGetSubscriptionListResponse); - } - - } - - - private ARBCreateSubscriptionController CreateSubscriptionRequestTest(ARBSubscriptionType subscriptionRequestParameter) - { - if (subscriptionRequestParameter == null) - { - throw new ArgumentNullException("subscriptionRequestParameter"); - } - LogHelper.info(Logger, "CreateSubscriptionRequestTest"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionRequestParameter }; - var arbController = new ARBCreateSubscriptionController(arbRequest); - - return arbController; - } - - - - private ARBGetSubscriptionListRequest SetupSubscriptionListRequest(merchantAuthenticationType merchantAuthentication) { - - var sorting = new ARBGetSubscriptionListSorting - { - orderDescending = true, - orderBy = ARBGetSubscriptionListOrderFieldEnum.createTimeStampUTC, - }; - var paging = new Paging - { - limit = 500, - offset = 1, - }; - - var listRequest = new ARBGetSubscriptionListRequest - { - merchantAuthentication = merchantAuthentication, - refId = RefId, - searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, - sorting = sorting, - paging = paging, - }; - - return listRequest; - } - - private void CancelSubscription(merchantAuthenticationType merchantAuthentication, String subscriptionId) { - //cancel the subscription - var cancelRequest = new ARBCancelSubscriptionRequest - { - merchantAuthentication = merchantAuthentication, - refId = RefId, - subscriptionId = subscriptionId - }; - var cancelResponse = ExecuteTestRequestWithSuccess(cancelRequest, TestEnvironment); - Assert.IsNotNull(cancelResponse.messages); - Logger.info(String.Format("Subscription Cancelled: {0}", subscriptionId)); - } - - private ARBSubscriptionStatusEnum GetSubscription(merchantAuthenticationType merchantAuthentication, String subscriptionId) { - //get a subscription - var getRequest = new ARBGetSubscriptionStatusRequest - { - merchantAuthentication = merchantAuthentication, - refId = RefId, - subscriptionId = subscriptionId - }; - var getResponse = ExecuteTestRequestWithSuccess(getRequest, TestEnvironment); - Assert.IsNotNull(getResponse.status); - Logger.info(String.Format("Subscription Status: {0}", getResponse.status)); - return getResponse.status; - } - - private string CreateSubscription( merchantAuthenticationType merchantAuthentication, string RefId) - { - //create a new subscription - //RequestFactoryWithSpecified.paymentType(ArbSubscriptionOne.payment); - //RequestFactoryWithSpecified.paymentScheduleType(ArbSubscriptionOne.paymentSchedule); - //RequestFactoryWithSpecified.ARBSubscriptionType(ArbSubscriptionOne); - var createRequest = new ARBCreateSubscriptionRequest - { - merchantAuthentication = merchantAuthentication, - refId = RefId, - subscription = ArbSubscriptionOne, - - }; - - var createResponse = ExecuteTestRequestWithSuccess(createRequest, TestEnvironment); - Assert.IsNotNull(createResponse.subscriptionId); - LogHelper.info( Logger, "Created Subscription: {0}", createResponse.subscriptionId); - - return createResponse.subscriptionId; - } - - [Test] - public void TestSubscription_serialization_error() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a subscription - var subscriptionDef = new ARBSubscriptionType - { - paymentSchedule = new paymentScheduleType - { - interval = new paymentScheduleTypeInterval - { - length = 1, - unit = ARBSubscriptionUnitEnum.months, - }, - startDate = DateTime.UtcNow, - totalOccurrences = 12, - }, - - - amount = 9.99M, - billTo = new customerAddressType { firstName = "first", lastName = "last" }, - - payment = PaymentOne, - - customer = CustomerOne, - - order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, - }; - - var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; - var arbController = new ARBCreateSubscriptionController(arbRequest); - arbController.Execute(); - - if (arbController.GetResultCode() == messageTypeEnum.Error) - { - var errorResp = arbController.GetErrorResponse(); - Console.WriteLine("{0}: {1}", errorResp.messages.message[0].code, errorResp.messages.message[0].text); - } - - } - } + [TestFixture] + public class ArbSubscriptionTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + [Test] + public void TestGetSubscriptionList() + { + //create a transaction + var transactionRequestType = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + order = OrderType, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + merchantAuthentication = CustomMerchantAuthenticationType, + }; + + var createResponse = ExecuteTestRequestWithSuccess(createRequest, TestEnvironment); + + var referenceTxnId = createResponse.transactionResponse.transId; + + var subscriptionId = CreateSubscription(CustomMerchantAuthenticationType, referenceTxnId); + var newStatus = GetSubscription(CustomMerchantAuthenticationType, subscriptionId); + Assert.AreEqual(ARBSubscriptionStatusEnum.active, newStatus); + + LogHelper.Info(Logger, "Getting Subscription List for SubscriptionId: {0}", subscriptionId); + + var found = false; + Int32.TryParse(subscriptionId, out var subsId); + + //setup retry loop to allow for delays in replication + for (int counter = 0; counter < 5; counter++) + { + var listRequest = SetupSubscriptionListRequest(CustomMerchantAuthenticationType); + var listResponse = ExecuteTestRequestWithSuccess(listRequest, TestEnvironment); + + if (listResponse.subscriptionDetails.Any(a => a.id == subsId)) + { + found = true; + break; + } + else + { + System.Threading.Thread.Sleep(10000); + } + } + + Assert.IsTrue(found); + CancelSubscription(CustomMerchantAuthenticationType, subscriptionId); + + //validate the status of subscription to make sure it is canceled + var cancelStatus = GetSubscription(CustomMerchantAuthenticationType, subscriptionId); + Assert.AreEqual(ARBSubscriptionStatusEnum.canceled, cancelStatus); + } + + [Test] + public void TestSubscription() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a subscription + var subscriptionDef = new ARBSubscriptionType + { + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 1, + unit = ARBSubscriptionUnitEnum.months, + }, + startDate = DateTime.UtcNow, + totalOccurrences = 12, + }, + + + amount = 9.99M, + billTo = new nameAndAddressType { firstName = "first", lastName = "last", address = "123 elm st ne", city = "Bellevue", state = "Wa", zip = "98007" }, + + payment = PaymentOne, + + customer = CustomerOne, + + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, + }; + + var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; + var arbController = new ARBCreateSubscriptionController(arbRequest); + arbController.Execute(); + + var arbCreateResponse = arbController.GetApiResponse(); + + Assert.AreEqual(messageTypeEnum.Ok, arbController.GetResultCode()); + + } + + [Test] + public void TestSubscription_ExpiredCC() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + //create a subscription + var subscriptionDef = new ARBSubscriptionType + { + + + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 7, + unit = ARBSubscriptionUnitEnum.days + }, + startDate = DateTime.UtcNow, + totalOccurrences = 2, + }, + + + amount = 9.99M, + + billTo = new nameAndAddressType + { + address = "1234 Elm St NE", + city = "Bellevue", + state = "WA", + zip = "98007", + firstName = "First", + lastName = "Last" + }, + + payment = new paymentType + { + Item = new creditCardType + { + cardCode = "655", + //cardNumber = "4007000", + cardNumber = "4111111111111111", + expirationDate = "122013", + } + }, + + customer = new customerType { email = "somecustomer@test.org", id = "5", }, + + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, + }; + + var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; + var arbController = new ARBCreateSubscriptionController(arbRequest); + arbController.Execute(); + + var arbCreateResponse = arbController.GetApiResponse(); + + //If request responds with an error, walk the messages and get code and text for each message. + if (arbController.GetResultCode() == messageTypeEnum.Error) + { + foreach (var msg in arbCreateResponse.messages.message) + { + Console.WriteLine("Error Num = {0}, Message = {1}", msg.code, msg.text); + } + } + + } + + /// + /// Repro issue ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work + /// commenting the test attribute because issue is fixed. + /// @Zalak + /// + // [Test] + [Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedException(typeof(ArgumentException), "SearchType cannot be null")] + public void GetSubscriptionSearchCardExpiringThisMonthIssueTest() + { + var getSubscriptionList = new ARBGetSubscriptionListRequest() + { + searchType = ARBGetSubscriptionListSearchTypeEnum.cardExpiringThisMonth, + + }; + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + var nullController = new ARBGetSubscriptionListController(getSubscriptionList); + Assert.IsNull(nullController, "Controller should not be instantiated."); + } + + /// + /// Fix the issue ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work + /// @Zalak + /// + [Test] + public void GetSubscriptionSearchCardExpiringThisMonthFixTest() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + var createSubscription = new ARBSubscriptionType() + { + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 8, + unit = ARBSubscriptionUnitEnum.months + }, + startDate = DateTime.UtcNow, + totalOccurrences = 3, + }, + amount = 19.29M, + + billTo = new nameAndAddressType + { + address = "1234 Elm St NE", + city = "Bellevue", + state = "WA", + zip = "98007", + firstName = "First", + lastName = "Last" + }, + + payment = new paymentType + { + Item = new creditCardType + { + cardCode = "123", + cardNumber = "5105105105105100", + // cardNumber = "4111111111111111", + expirationDate = "102015", + } + }, + + customer = new customerType { email = "somecustomer@test.org", id = "5", }, + + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, + }; + var arbCreateSubscriptionController = CreateSubscriptionRequestTest(createSubscription); + var arbCreateSubscriptionResponse = arbCreateSubscriptionController.ExecuteWithApiResponse(); + + if (null == arbCreateSubscriptionResponse) + { + throw new ArgumentNullException("arbCreateSubscriptionResponse"); + } + + var getSubscriptionList = new ARBGetSubscriptionListRequest() + { + searchType = ARBGetSubscriptionListSearchTypeEnum.cardExpiringThisMonth, + + }; + + var arbGetSubscriptionListController = new ARBGetSubscriptionListController(getSubscriptionList); + var arbGetSubscriptionListResponse = arbGetSubscriptionListController.ExecuteWithApiResponse(); + + Assert.IsNotNull(arbGetSubscriptionListResponse); + } + + private ARBGetSubscriptionListResponse GetSubscriptionListResponse(int limitNo, int offSetNo) + { + var getSubscriptionList = new ARBGetSubscriptionListRequest() + { + searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, + paging = new Paging() + { + limit = limitNo, + offset = offSetNo + }, + + }; + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + var arbGetSubscriptionListController = new ARBGetSubscriptionListController(getSubscriptionList); + var arbGetSubscriptionListResponse = arbGetSubscriptionListController.ExecuteWithApiResponse(); + return arbGetSubscriptionListResponse; + + } + /// + /// @Zalak + /// Test case for Pagination issue reported in Jira: + /// C# - ARBSubscriptionList SearchType of "cardExpiringThisMonth" doesn't work + /// + [Test] + public void ARBGetSubscriptionListCheckPagination() + { + + var arbGetSubscriptionListResponse = GetSubscriptionListResponse(1, 1); + ARBGetSubscriptionListResponse response = null; + int limitNo = 3; + int offSetNo = 2; + + if (arbGetSubscriptionListResponse != null) + { + int subcriptionNumber = arbGetSubscriptionListResponse.totalNumInResultSet; + int expectedSubscriptionNo = 0; + int nPages = subcriptionNumber / limitNo; + int subscriptionDetailsOnLastPage = subcriptionNumber % limitNo; + if (offSetNo <= nPages) + expectedSubscriptionNo = limitNo; + else if (offSetNo > (nPages + 1)) + expectedSubscriptionNo = 0; + else + { + expectedSubscriptionNo = subscriptionDetailsOnLastPage; + } + response = GetSubscriptionListResponse(limitNo, offSetNo); + Assert.AreEqual(expectedSubscriptionNo, response.subscriptionDetails.Count()); + } + else + { + Assert.Null(arbGetSubscriptionListResponse); + } + + } + + + private ARBCreateSubscriptionController CreateSubscriptionRequestTest(ARBSubscriptionType subscriptionRequestParameter) + { + if (subscriptionRequestParameter == null) + { + throw new ArgumentNullException("subscriptionRequestParameter"); + } + LogHelper.Info(Logger, "CreateSubscriptionRequestTest"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionRequestParameter }; + var arbController = new ARBCreateSubscriptionController(arbRequest); + + return arbController; + } + + + + private ARBGetSubscriptionListRequest SetupSubscriptionListRequest(merchantAuthenticationType merchantAuthentication) + { + + var sorting = new ARBGetSubscriptionListSorting + { + orderDescending = true, + orderBy = ARBGetSubscriptionListOrderFieldEnum.createTimeStampUTC, + }; + var paging = new Paging + { + limit = 500, + offset = 1, + }; + + var listRequest = new ARBGetSubscriptionListRequest + { + merchantAuthentication = merchantAuthentication, + refId = RefId, + searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive, + sorting = sorting, + paging = paging, + }; + + return listRequest; + } + + private void CancelSubscription(merchantAuthenticationType merchantAuthentication, String subscriptionId) + { + //cancel the subscription + var cancelRequest = new ARBCancelSubscriptionRequest + { + merchantAuthentication = merchantAuthentication, + refId = RefId, + subscriptionId = subscriptionId + }; + var cancelResponse = ExecuteTestRequestWithSuccess(cancelRequest, TestEnvironment); + Assert.IsNotNull(cancelResponse.messages); + Logger.Info(String.Format("Subscription Cancelled: {0}", subscriptionId)); + } + + private ARBSubscriptionStatusEnum GetSubscription(merchantAuthenticationType merchantAuthentication, String subscriptionId) + { + //get a subscription + var getRequest = new ARBGetSubscriptionStatusRequest + { + merchantAuthentication = merchantAuthentication, + refId = RefId, + subscriptionId = subscriptionId + }; + var getResponse = ExecuteTestRequestWithSuccess(getRequest, TestEnvironment); + Assert.IsNotNull(getResponse.status); + Logger.Info(String.Format("Subscription Status: {0}", getResponse.status)); + return getResponse.status; + } + + private string CreateSubscription(merchantAuthenticationType merchantAuthentication, string RefId) + { + //create a new subscription + //RequestFactoryWithSpecified.paymentType(ArbSubscriptionOne.payment); + //RequestFactoryWithSpecified.paymentScheduleType(ArbSubscriptionOne.paymentSchedule); + //RequestFactoryWithSpecified.ARBSubscriptionType(ArbSubscriptionOne); + var createRequest = new ARBCreateSubscriptionRequest + { + merchantAuthentication = merchantAuthentication, + refId = RefId, + subscription = ArbSubscriptionOne, + + }; + + var createResponse = ExecuteTestRequestWithSuccess(createRequest, TestEnvironment); + Assert.IsNotNull(createResponse.subscriptionId); + LogHelper.Info(Logger, "Created Subscription: {0}", createResponse.subscriptionId); + + return createResponse.subscriptionId; + } + + [Test] + public void TestSubscription_serialization_error() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a subscription + var subscriptionDef = new ARBSubscriptionType + { + paymentSchedule = new paymentScheduleType + { + interval = new paymentScheduleTypeInterval + { + length = 1, + unit = ARBSubscriptionUnitEnum.months, + }, + startDate = DateTime.UtcNow, + totalOccurrences = 12, + }, + + + amount = 9.99M, + billTo = new customerAddressType { firstName = "first", lastName = "last" }, + + payment = PaymentOne, + + customer = CustomerOne, + + order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }, + }; + + var arbRequest = new ARBCreateSubscriptionRequest { subscription = subscriptionDef }; + var arbController = new ARBCreateSubscriptionController(arbRequest); + arbController.Execute(); + + if (arbController.GetResultCode() == messageTypeEnum.Error) + { + var errorResp = arbController.GetErrorResponse(); + Console.WriteLine("{0}: {1}", errorResp.messages.message[0].code, errorResp.messages.message[0].text); + } + + } + } } diff --git a/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs b/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs index 33c80507..8c6586ce 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs @@ -1,364 +1,362 @@ -using System.Diagnostics; +using System; +using NUnit.Framework; +using AuthorizeNet.Api.Contracts.V1; +using AuthorizeNet.Api.Controllers; +using AuthorizeNet.Api.Controllers.Bases; +using AuthorizeNet.Util; namespace AuthorizeNet.Api.Controllers.Test { - using System; - using NUnit.Framework; - using AuthorizeNet.Api.Contracts.V1; - using AuthorizeNet.Api.Controllers; - using AuthorizeNet.Api.Controllers.Bases; - using AuthorizeNet.Util; - - [TestFixture] - public class CreateTransactionTest : ApiCoreTestBase - { - - [TestFixtureSetUp] - public new static void SetUpBeforeClass() - { - ApiCoreTestBase.SetUpBeforeClass(); - } - - [TestFixtureTearDown] - public new static void TearDownAfterClass() - { - ApiCoreTestBase.TearDownAfterClass(); - } - - [SetUp] - public new void SetUp() - { - base.SetUp(); - } - - [TearDown] - public new void TearDown() - { - base.TearDown(); - } - - - - [Test] - public void CreateProfileWithCreateTransactionRequestTest() - { - LogHelper.info(Logger, "CreateProfileWithCreateTransactionRequestTest"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var transactionRequestType = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - order = OrderType, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - shipTo = CustomerAddressOne, - profile = new customerProfilePaymentType - { - createProfile = true, - createProfileSpecified = true, - }, - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - //create controller, execute and get response - var createController = new createTransactionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - - //validate response - Assert.IsNotNull(createResponse.transactionResponse); - LogHelper.info(Logger, "Response: {0}", createResponse); - DisplayResponse(createResponse, "Create Transaction Response"); - LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); - Assert.IsNotNull(createResponse.transactionResponse.transId); - long transId; - Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out transId)); - if (0 == transId) - { - ValidateFailure(createController, createResponse); - Assert.IsNotNull(createResponse.transactionResponse.errors); - foreach (var error in createResponse.transactionResponse.errors) - { - LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); - } - } - else - { - Assert.AreNotEqual(0, transId); - ValidateSuccess(createController, createResponse); - } - var profileResponse = createResponse.profileResponse; - Assert.IsNotNull(profileResponse); - Assert.IsNotNull(profileResponse.customerProfileId); - Assert.IsNotNull(profileResponse.customerPaymentProfileIdList); - Assert.IsNotNull(profileResponse.customerShippingAddressIdList); - Assert.AreNotEqual("0", profileResponse.customerProfileId); - - Assert.AreEqual(1, profileResponse.customerPaymentProfileIdList.Length); - Assert.AreNotEqual("0", profileResponse.customerPaymentProfileIdList[0]); - - Assert.AreEqual(1, profileResponse.customerShippingAddressIdList.Length); - Assert.AreNotEqual("0", profileResponse.customerShippingAddressIdList[0]); - } - - /// - /// @Zalak - /// For issue #62 Github Dot.net SDK - /// - /// - /// - private createTransactionController CreateTransactionRequestTest(transactionRequestType transactionRequestParameter) - { - if (transactionRequestParameter == null) - { - throw new ArgumentNullException("transactionRequestParameter"); - } - LogHelper.info(Logger, "CreateTransactionRequestTest"); - - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var transactionRequestType = transactionRequestParameter; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - //create controller - var createController = new createTransactionController(createRequest); - - return createController; - } - - - - //@Zalak - /// - /// Issue number #62 github dot-net sdk - /// - [Test] - public void CreateRefundWithCustomerProfileRequestTest() - { - LogHelper.info(Logger, "CreateRefundWithCustomerProfileRequestTest"); - - //created a new transaction - var chargedTransactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - profile = new customerProfilePaymentType - { - createProfile = true, - //createProfileSpecified = true, //TODO : Update RequestFactory for Specified - }, - }; - - var createController = CreateTransactionRequestTest(chargedTransactionRequest); - if(createController == null) - throw new ArgumentNullException("createController"); - - var createResponse = createController.ExecuteWithApiResponse(); - if (createResponse == null) - { - throw new ArgumentNullException("createResponse"); - } - - if (createResponse.transactionResponse.transId == null) - { - throw new ArgumentNullException("TransId is null"); - } - chargedTransactionRequest.refTransId = createResponse.transactionResponse.transId; - - if (createResponse.profileResponse == null) - { - throw new ArgumentNullException("profileResponse"); - } - var profileResponse = createResponse.profileResponse; - - // creating a refund transaction request for above transaction using customer profile id and customer payment profile id - chargedTransactionRequest.transactionType = transactionTypeEnum.refundTransaction.ToString(); - chargedTransactionRequest.profile = new customerProfilePaymentType(); - chargedTransactionRequest.profile.customerProfileId = profileResponse.customerProfileId; - chargedTransactionRequest.profile.paymentProfile = new paymentProfile() - { - paymentProfileId = profileResponse.customerPaymentProfileIdList[0], - }; - - chargedTransactionRequest.customer = null; - chargedTransactionRequest.billTo = null; - chargedTransactionRequest.payment = null; - - createController = CreateTransactionRequestTest(chargedTransactionRequest); - createResponse = createController.ExecuteWithApiResponse(); - Assert.IsNotNull(createResponse); - //currently the transaction is failing because the bug fix is on server end - var errorResponse = createResponse.messages; - Assert.AreEqual(1, errorResponse.message.Length); - Assert.AreEqual("E00051", errorResponse.message[0].code); - Assert.AreEqual(errorResponse.message[0].text, "The original transaction was not issued for this payment profile."); - } - - /// - /// @Zalak - /// Issue #62: If shipping address is not included in request then it will be empty it will not be same as billing address - /// - [Test] - public void CreateTransactionShippingAddressTest() - { - LogHelper.info(Logger, "CreateRefundWithCustomerProfileRequestTest"); - - //created a new transaction - var chargedTransactionRequest = new transactionRequestType - { - transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - profile = new customerProfilePaymentType - { - createProfile = true, - createProfileSpecified = true, - }, - }; - - var createController = CreateTransactionRequestTest(chargedTransactionRequest); - var createResponse = createController.ExecuteWithApiResponse(); - if (createResponse == null) - throw new ArgumentNullException("createResponse"); - - Assert.IsNotNull(createResponse.transactionResponse); - LogHelper.info(Logger, "Response: {0}", createResponse); - DisplayResponse(createResponse, "Create Transaction Response"); - LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); - Assert.IsNotNull(createResponse.transactionResponse.transId); - long transId; - Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out transId)); - - if (0 == transId) - { - ValidateFailure(createController, createResponse); - Assert.IsNotNull(createResponse.transactionResponse.errors); - foreach (var error in createResponse.transactionResponse.errors) - { - LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); - } - } - else - { - ValidateSuccess(createController, createResponse); - Assert.AreNotEqual(0, transId); - } - - var profileResponse = createResponse.profileResponse; - Assert.IsNotNull(profileResponse); - Assert.IsNotNull(profileResponse.customerProfileId); - Assert.IsNotNull(profileResponse.customerPaymentProfileIdList); - Assert.AreEqual("",profileResponse.customerShippingAddressIdList); - Assert.AreNotEqual("0", profileResponse.customerProfileId); - - Assert.AreEqual(1, profileResponse.customerPaymentProfileIdList.Length); - Assert.AreNotEqual("0", profileResponse.customerPaymentProfileIdList[0]); - - Assert.AreEqual(0, profileResponse.customerShippingAddressIdList.Length); - - } - - [Test] - public void CreateTransactionInvalidRequestSchemaValidationTest() - { - ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var transactionRequestType = new transactionRequestType - { - //removing the transaction type here is important to expect the schema validation error - //transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), - amount = SetValidTransactionAmount(Counter), - payment = PaymentOne, - order = OrderType, - customer = CustomerDataOne, - billTo = CustomerAddressOne, - - }; - var createRequest = new createTransactionRequest - { - refId = RefId, - transactionRequest = transactionRequestType, - }; - - //create controller, execute and get response - var createController = new createTransactionController(createRequest); - createController.Execute(); - var createResponse = createController.GetApiResponse(); - - //validate response - Assert.IsNull(createResponse); - var errorResponse = createController.GetErrorResponse(); - Assert.IsNotNull(errorResponse); - Assert.IsNotNull(errorResponse.messages); - Assert.IsNotNull(errorResponse.messages.message); - Assert.AreEqual(messageTypeEnum.Error, errorResponse.messages.resultCode); - Assert.AreEqual(1, errorResponse.messages.message.Length); - Assert.AreEqual("E00003", errorResponse.messages.message[0].code); - ValidateErrorCode(errorResponse.messages, "E00003"); - } - - [Test] - public void DecryptPaymentDataRequestTest() - { - LogHelper.info(Logger, "decryptPaymentDataRequestTest"); - - ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType() - { - name = "5KP3u95bQpv", - ItemElementName = ItemChoiceType.transactionKey, - Item = "346HZ32z3fP4hTG2", - }; - ApiOperationBase.RunEnvironment = TestEnvironment; - - //create a transaction - var opaqueDataType = new opaqueDataType - { - dataDescriptor = "COMMON.VCO.ONLINE.PAYMENT", - dataKey = "foFBEbhXljevQQasx5Q87hzj57xvUl4iBmXDdB1vs/Lm/M1uKJiF9V5QxI0A6NvAtIckMvutSl0Chz2SNoSeBuTRzK0y4IlfnfWKnJF7a1LV/bjZokTtFKINdZ+Ks9RB", - dataValue = "AjHRw1gU/pQqLQLIElFPBV00dQkzQvZnhAd6XrpVI8MRzhatkmv5MVtggr7XkIfWtiVk8JJQDvuwYAQ6Hl/MNxFIgn7ygGbZm17yAoQpR9l0z0d93I92Oed5sxueqG46CaDCJm1W8zhm9ce8ARn6JyQtDokhHt3psxbfut8q/+cjl8jsIGKKLR+IgA3zPxO3vaL9JEum4bkE3oDJvQhlYJPTjtV3zJRe5n6prvDkMJ9deP0tyiRHaR8OB6BUrCMkyhDLS3ghn2Do7Dv+uN+7bRtj9SuTyUEvDhTx/o3PJ0ELdwBkdKvRh0sLcrK3LkBoto3ppq/a0WT+ckOEz5u+1pUvXAJtCRPHyILvyScFB39OUoxVSvvaBrBGgUaztGqRvVJNhqQmAYU2NQ5DgoWM8TcBzdQwdzqkczbs7egVQa/44+p78zWjzJxoG5cP7EQUNnUL7eaIj3ezbwBtz0ciwNsuCm2bs6vT0hB6GVXwkro5fcvV52Vd32wrpmRJYd20CjfuR7Nit4xKF8VTtmQ0c7A3zgvaUBXH/gOn4KMNXDl8BOKlJaP+hjHy5EhFCW4zO1G1Oz6kOCNY9bQiRhfSw3sSK1gpEiwX8bbjIPpvxiQ1zSaPk5EV+llKF4nMY90qHsE6bS1qp6hqEPLgsQasfdQJ/qQEAZfvuufApEu35ddFYycBz2D8jL/QDEzUIU4/DDOciWAGhlRKfo58H+KcdmcqTAbWOtfNPS1fR33phC0ETUiT3HyQu2rYeY2AdUQZOG5/NULs3nlN2F5TpK3Uhy9hNcuC20PBljcrL0yK6e4C53Md3VHGq31RsTs2lQvcbiURP43peYPeCk+gffN1TUKWfeKuNHcz1Xxc0b4IybMn8uxcaGAraxjdJ1J01I+PuwLgy5Xcsi9SB84CDfxlCNlJvUMgWgyG6iWisjmfzHjEyW+mvI6NFBlqeuRCoOLIpByIRCienHShSGRNRvfyIoHag65QXhR7oTFK93GnilitBNjxBjM+sihiNd+r1XgE8XcuftQObt3c81HL9FIAtrmyAsMEjFl4e1xBdxpGZ3Ft0QMTX12/K0ragGkm5dYmaKigiz3NSOPkT+VieoD0ZpoulXd+8rceocpKhlM0aARbZxKYGaApeyfALlvVH2ilOxn2YPRP7a1Umnr+OtE/yOvvCQfFF0EfEfXmAKoiNbgif7jBjXLWyu7zBLKFmiGI8VboyARpPAFcoOpywqxN6DRCO20A/yHKE5YvR+PPsX0ggrPOts7hEKpp9Z8kd33UC0D3JsxVTsc+L5rwZt1Pk9C4jUOhfWZaINqohS3OVASwfSSmL6JiFivEACvf8FX2D8yz3pz40x79R8nNUy0mQNjrsUzqnNeQjKbKojKvdZvrgcMGYUfyQe3wDIqpqUo8beBkszDrX4Speppb5Qeeu/uYKswus7MhFnhHxQ/eFT9f9K84fXvoP5Zcd+jyWBHen8XwgfNui6XcsEo5IL6X40Zsao+f7LbilFpA+34cldTQybb4SxbqUKhJLmAaL/po8axvJLQenP3vJpfQY5Fbq7oVOXYLJwqm71wf0r1bVTpcgg6pZeD64QCJND3q2DvCWe66uQBcFOQVp9BggUTkKW5hefIUIP3TD1G8HOH508PBCLemVm7Q3TZSG3g+aw25URKTEg+KPpLEQykXYv32FIjM8B3Bq1Z+7t6kRc9u6xtMliAy/kz5UcxaTNlDfrsuw1AISX+3NZ0gIVsKbsZ+nCpnXuv9DeuI55Ccz1A99B2lG2d1zSa9Y+M0wX/KFIkN2wrv2Af7zSVt2ovxoGdbK1wkpErzkqmqupr5Bh16CpccHIsI+DV3yfwgmbaIg0YGaxLjKCoeLTF/RogEsw+2wJjqxgbIXJVtpS5sQqcUrUHpQGl5iee0V1BiGL6Z9qcoARMJ3JwY6FDw6Be7Le38LgONm5FRa7/CQFd8Gh0oyvPgyUKoxlLO1OvlXN8PJ4qMJGRKn6X7KwDrUpjv2pXIzO+t11WHUMprVYq3br0MPjnF6I8bi4CqpKUoYp6jUm4Prx4qCiY7UIWAYsPvjE4Vlp+o0ny0P3wiNGAHmD1bVeoFhsgXI0MIPTlsnYCCy6YkFBI/piXAo0ooxXKvIg6LR3zF0Hopaj85gL3fgIHo/Jo5HlH+z3C/C/5PGEapgDNnlB4jEfNQMOVeBlZZBVmJXIz8eQDMzsDApxp0NE+00HdsrLUbD5H/HbwUHoKK7ipypQltvF1ZQx6N69zllqeI5pwr0F4a+QPfKiPANbcT6qEaUm24K4iXMWQ/5kccHX2t" - }; - - var decryptPaymentDataRequest = new decryptPaymentDataRequest() - { - opaqueData = opaqueDataType, - callId = "1166739390571781401" - }; - //create controller, execute and get response - var decryptPaymentDataController = new decryptPaymentDataController(decryptPaymentDataRequest); - decryptPaymentDataController.Execute(); - var decryptPaymentDataResponse = decryptPaymentDataController.GetApiResponse(); - - //validate response - Assert.IsNotNull(decryptPaymentDataResponse); - LogHelper.info(Logger, "Response: {0}", decryptPaymentDataResponse); - Assert.IsNotNull(decryptPaymentDataResponse.messages); - Assert.IsNotNull(decryptPaymentDataResponse.messages.message); - Assert.AreEqual(decryptPaymentDataResponse.messages.resultCode, messageTypeEnum.Ok); - Assert.AreEqual(decryptPaymentDataResponse.billingInfo.firstName, "Authorize"); - Assert.AreEqual(decryptPaymentDataResponse.billingInfo.lastName, "Tester"); - Assert.AreEqual(decryptPaymentDataResponse.cardInfo.cardNumber, "XXXX4242"); - } - } + [TestFixture] + public class CreateTransactionTest : ApiCoreTestBase + { + + [SetUp] + public new static void SetUpBeforeClass() + { + ApiCoreTestBase.SetUpBeforeClass(); + } + + [TearDown] + public new static void TearDownAfterClass() + { + ApiCoreTestBase.TearDownAfterClass(); + } + + [SetUp] + public new void SetUp() + { + base.SetUp(); + } + + [TearDown] + public new void TearDown() + { + base.TearDown(); + } + + + + [Test] + public void CreateProfileWithCreateTransactionRequestTest() + { + LogHelper.Info(Logger, "CreateProfileWithCreateTransactionRequestTest"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var transactionRequestType = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + order = OrderType, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + shipTo = CustomerAddressOne, + profile = new customerProfilePaymentType + { + createProfile = true, + createProfileSpecified = true, + }, + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + //create controller, execute and get response + var createController = new CreateTransactionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + + //validate response + Assert.IsNotNull(createResponse.transactionResponse); + LogHelper.Info(Logger, "Response: {0}", createResponse); + DisplayResponse(createResponse, "Create Transaction Response"); + LogHelper.Info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); + Assert.IsNotNull(createResponse.transactionResponse.transId); + Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out var transId)); + if (0 == transId) + { + ValidateFailure(createController, createResponse); + Assert.IsNotNull(createResponse.transactionResponse.errors); + foreach (var error in createResponse.transactionResponse.errors) + { + LogHelper.Info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); + } + } + else + { + Assert.AreNotEqual(0, transId); + ValidateSuccess(createController, createResponse); + } + var profileResponse = createResponse.profileResponse; + Assert.IsNotNull(profileResponse); + Assert.IsNotNull(profileResponse.customerProfileId); + Assert.IsNotNull(profileResponse.customerPaymentProfileIdList); + Assert.IsNotNull(profileResponse.customerShippingAddressIdList); + Assert.AreNotEqual("0", profileResponse.customerProfileId); + + Assert.AreEqual(1, profileResponse.customerPaymentProfileIdList.Length); + Assert.AreNotEqual("0", profileResponse.customerPaymentProfileIdList[0]); + + Assert.AreEqual(1, profileResponse.customerShippingAddressIdList.Length); + Assert.AreNotEqual("0", profileResponse.customerShippingAddressIdList[0]); + } + + /// + /// @Zalak + /// For issue #62 Github Dot.net SDK + /// + /// + /// + private CreateTransactionController CreateTransactionRequestTest(transactionRequestType transactionRequestParameter) + { + if (transactionRequestParameter == null) + { + throw new ArgumentNullException("transactionRequestParameter"); + } + LogHelper.Info(Logger, "CreateTransactionRequestTest"); + + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var transactionRequestType = transactionRequestParameter; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + //create controller + var createController = new CreateTransactionController(createRequest); + + return createController; + } + + + + //@Zalak + /// + /// Issue number #62 github dot-net sdk + /// + [Test] + public void CreateRefundWithCustomerProfileRequestTest() + { + LogHelper.Info(Logger, "CreateRefundWithCustomerProfileRequestTest"); + + //created a new transaction + var chargedTransactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + profile = new customerProfilePaymentType + { + createProfile = true, + //createProfileSpecified = true, //TODO : Update RequestFactory for Specified + }, + }; + + var createController = CreateTransactionRequestTest(chargedTransactionRequest); + if (createController == null) + throw new ArgumentNullException("createController"); + + var createResponse = createController.ExecuteWithApiResponse(); + if (createResponse == null) + { + throw new ArgumentNullException("createResponse"); + } + + if (createResponse.transactionResponse.transId == null) + { + throw new ArgumentNullException("TransId is null"); + } + chargedTransactionRequest.refTransId = createResponse.transactionResponse.transId; + + if (createResponse.profileResponse == null) + { + throw new ArgumentNullException("profileResponse"); + } + var profileResponse = createResponse.profileResponse; + + // creating a refund transaction request for above transaction using customer profile id and customer payment profile id + chargedTransactionRequest.transactionType = transactionTypeEnum.refundTransaction.ToString(); + chargedTransactionRequest.profile = new customerProfilePaymentType + { + customerProfileId = profileResponse.customerProfileId, + paymentProfile = new paymentProfile() + { + paymentProfileId = profileResponse.customerPaymentProfileIdList[0], + } + }; + + chargedTransactionRequest.customer = null; + chargedTransactionRequest.billTo = null; + chargedTransactionRequest.payment = null; + + createController = CreateTransactionRequestTest(chargedTransactionRequest); + createResponse = createController.ExecuteWithApiResponse(); + Assert.IsNotNull(createResponse); + //currently the transaction is failing because the bug fix is on server end + var errorResponse = createResponse.messages; + Assert.AreEqual(1, errorResponse.message.Length); + Assert.AreEqual("E00051", errorResponse.message[0].code); + Assert.AreEqual(errorResponse.message[0].text, "The original transaction was not issued for this payment profile."); + } + + /// + /// @Zalak + /// Issue #62: If shipping address is not included in request then it will be empty it will not be same as billing address + /// + [Test] + public void CreateTransactionShippingAddressTest() + { + LogHelper.Info(Logger, "CreateRefundWithCustomerProfileRequestTest"); + + //created a new transaction + var chargedTransactionRequest = new transactionRequestType + { + transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + profile = new customerProfilePaymentType + { + createProfile = true, + createProfileSpecified = true, + }, + }; + + var createController = CreateTransactionRequestTest(chargedTransactionRequest); + var createResponse = createController.ExecuteWithApiResponse(); + if (createResponse == null) + throw new ArgumentNullException("createResponse"); + + Assert.IsNotNull(createResponse.transactionResponse); + LogHelper.Info(Logger, "Response: {0}", createResponse); + DisplayResponse(createResponse, "Create Transaction Response"); + LogHelper.Info(Logger, "Created Transaction: {0}", createResponse.transactionResponse); + Assert.IsNotNull(createResponse.transactionResponse.transId); + Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out var transId)); + + if (0 == transId) + { + ValidateFailure(createController, createResponse); + Assert.IsNotNull(createResponse.transactionResponse.errors); + foreach (var error in createResponse.transactionResponse.errors) + { + LogHelper.Info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText); + } + } + else + { + ValidateSuccess(createController, createResponse); + Assert.AreNotEqual(0, transId); + } + + var profileResponse = createResponse.profileResponse; + Assert.IsNotNull(profileResponse); + Assert.IsNotNull(profileResponse.customerProfileId); + Assert.IsNotNull(profileResponse.customerPaymentProfileIdList); + Assert.AreEqual("", profileResponse.customerShippingAddressIdList); + Assert.AreNotEqual("0", profileResponse.customerProfileId); + + Assert.AreEqual(1, profileResponse.customerPaymentProfileIdList.Length); + Assert.AreNotEqual("0", profileResponse.customerPaymentProfileIdList[0]); + + Assert.AreEqual(0, profileResponse.customerShippingAddressIdList.Length); + + } + + [Test] + public void CreateTransactionInvalidRequestSchemaValidationTest() + { + ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var transactionRequestType = new transactionRequestType + { + //removing the transaction type here is important to expect the schema validation error + //transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), + amount = SetValidTransactionAmount(Counter), + payment = PaymentOne, + order = OrderType, + customer = CustomerDataOne, + billTo = CustomerAddressOne, + + }; + var createRequest = new createTransactionRequest + { + refId = RefId, + transactionRequest = transactionRequestType, + }; + + //create controller, execute and get response + var createController = new CreateTransactionController(createRequest); + createController.Execute(); + var createResponse = createController.GetApiResponse(); + + //validate response + Assert.IsNull(createResponse); + var errorResponse = createController.GetErrorResponse(); + Assert.IsNotNull(errorResponse); + Assert.IsNotNull(errorResponse.messages); + Assert.IsNotNull(errorResponse.messages.message); + Assert.AreEqual(messageTypeEnum.Error, errorResponse.messages.resultCode); + Assert.AreEqual(1, errorResponse.messages.message.Length); + Assert.AreEqual("E00003", errorResponse.messages.message[0].code); + ValidateErrorCode(errorResponse.messages, "E00003"); + } + + [Test] + public void DecryptPaymentDataRequestTest() + { + LogHelper.Info(Logger, "decryptPaymentDataRequestTest"); + + ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType() + { + name = "5KP3u95bQpv", + ItemElementName = ItemChoiceType.transactionKey, + Item = "346HZ32z3fP4hTG2", + }; + ApiOperationBase.RunEnvironment = TestEnvironment; + + //create a transaction + var opaqueDataType = new opaqueDataType + { + dataDescriptor = "COMMON.VCO.ONLINE.PAYMENT", + dataKey = "foFBEbhXljevQQasx5Q87hzj57xvUl4iBmXDdB1vs/Lm/M1uKJiF9V5QxI0A6NvAtIckMvutSl0Chz2SNoSeBuTRzK0y4IlfnfWKnJF7a1LV/bjZokTtFKINdZ+Ks9RB", + dataValue = "AjHRw1gU/pQqLQLIElFPBV00dQkzQvZnhAd6XrpVI8MRzhatkmv5MVtggr7XkIfWtiVk8JJQDvuwYAQ6Hl/MNxFIgn7ygGbZm17yAoQpR9l0z0d93I92Oed5sxueqG46CaDCJm1W8zhm9ce8ARn6JyQtDokhHt3psxbfut8q/+cjl8jsIGKKLR+IgA3zPxO3vaL9JEum4bkE3oDJvQhlYJPTjtV3zJRe5n6prvDkMJ9deP0tyiRHaR8OB6BUrCMkyhDLS3ghn2Do7Dv+uN+7bRtj9SuTyUEvDhTx/o3PJ0ELdwBkdKvRh0sLcrK3LkBoto3ppq/a0WT+ckOEz5u+1pUvXAJtCRPHyILvyScFB39OUoxVSvvaBrBGgUaztGqRvVJNhqQmAYU2NQ5DgoWM8TcBzdQwdzqkczbs7egVQa/44+p78zWjzJxoG5cP7EQUNnUL7eaIj3ezbwBtz0ciwNsuCm2bs6vT0hB6GVXwkro5fcvV52Vd32wrpmRJYd20CjfuR7Nit4xKF8VTtmQ0c7A3zgvaUBXH/gOn4KMNXDl8BOKlJaP+hjHy5EhFCW4zO1G1Oz6kOCNY9bQiRhfSw3sSK1gpEiwX8bbjIPpvxiQ1zSaPk5EV+llKF4nMY90qHsE6bS1qp6hqEPLgsQasfdQJ/qQEAZfvuufApEu35ddFYycBz2D8jL/QDEzUIU4/DDOciWAGhlRKfo58H+KcdmcqTAbWOtfNPS1fR33phC0ETUiT3HyQu2rYeY2AdUQZOG5/NULs3nlN2F5TpK3Uhy9hNcuC20PBljcrL0yK6e4C53Md3VHGq31RsTs2lQvcbiURP43peYPeCk+gffN1TUKWfeKuNHcz1Xxc0b4IybMn8uxcaGAraxjdJ1J01I+PuwLgy5Xcsi9SB84CDfxlCNlJvUMgWgyG6iWisjmfzHjEyW+mvI6NFBlqeuRCoOLIpByIRCienHShSGRNRvfyIoHag65QXhR7oTFK93GnilitBNjxBjM+sihiNd+r1XgE8XcuftQObt3c81HL9FIAtrmyAsMEjFl4e1xBdxpGZ3Ft0QMTX12/K0ragGkm5dYmaKigiz3NSOPkT+VieoD0ZpoulXd+8rceocpKhlM0aARbZxKYGaApeyfALlvVH2ilOxn2YPRP7a1Umnr+OtE/yOvvCQfFF0EfEfXmAKoiNbgif7jBjXLWyu7zBLKFmiGI8VboyARpPAFcoOpywqxN6DRCO20A/yHKE5YvR+PPsX0ggrPOts7hEKpp9Z8kd33UC0D3JsxVTsc+L5rwZt1Pk9C4jUOhfWZaINqohS3OVASwfSSmL6JiFivEACvf8FX2D8yz3pz40x79R8nNUy0mQNjrsUzqnNeQjKbKojKvdZvrgcMGYUfyQe3wDIqpqUo8beBkszDrX4Speppb5Qeeu/uYKswus7MhFnhHxQ/eFT9f9K84fXvoP5Zcd+jyWBHen8XwgfNui6XcsEo5IL6X40Zsao+f7LbilFpA+34cldTQybb4SxbqUKhJLmAaL/po8axvJLQenP3vJpfQY5Fbq7oVOXYLJwqm71wf0r1bVTpcgg6pZeD64QCJND3q2DvCWe66uQBcFOQVp9BggUTkKW5hefIUIP3TD1G8HOH508PBCLemVm7Q3TZSG3g+aw25URKTEg+KPpLEQykXYv32FIjM8B3Bq1Z+7t6kRc9u6xtMliAy/kz5UcxaTNlDfrsuw1AISX+3NZ0gIVsKbsZ+nCpnXuv9DeuI55Ccz1A99B2lG2d1zSa9Y+M0wX/KFIkN2wrv2Af7zSVt2ovxoGdbK1wkpErzkqmqupr5Bh16CpccHIsI+DV3yfwgmbaIg0YGaxLjKCoeLTF/RogEsw+2wJjqxgbIXJVtpS5sQqcUrUHpQGl5iee0V1BiGL6Z9qcoARMJ3JwY6FDw6Be7Le38LgONm5FRa7/CQFd8Gh0oyvPgyUKoxlLO1OvlXN8PJ4qMJGRKn6X7KwDrUpjv2pXIzO+t11WHUMprVYq3br0MPjnF6I8bi4CqpKUoYp6jUm4Prx4qCiY7UIWAYsPvjE4Vlp+o0ny0P3wiNGAHmD1bVeoFhsgXI0MIPTlsnYCCy6YkFBI/piXAo0ooxXKvIg6LR3zF0Hopaj85gL3fgIHo/Jo5HlH+z3C/C/5PGEapgDNnlB4jEfNQMOVeBlZZBVmJXIz8eQDMzsDApxp0NE+00HdsrLUbD5H/HbwUHoKK7ipypQltvF1ZQx6N69zllqeI5pwr0F4a+QPfKiPANbcT6qEaUm24K4iXMWQ/5kccHX2t" + }; + + var decryptPaymentDataRequest = new decryptPaymentDataRequest() + { + opaqueData = opaqueDataType, + callId = "1166739390571781401" + }; + //create controller, execute and get response + var decryptPaymentDataController = new DecryptPaymentDataController(decryptPaymentDataRequest); + decryptPaymentDataController.Execute(); + var decryptPaymentDataResponse = decryptPaymentDataController.GetApiResponse(); + + //validate response + Assert.IsNotNull(decryptPaymentDataResponse); + LogHelper.Info(Logger, "Response: {0}", decryptPaymentDataResponse); + Assert.IsNotNull(decryptPaymentDataResponse.messages); + Assert.IsNotNull(decryptPaymentDataResponse.messages.message); + Assert.AreEqual(decryptPaymentDataResponse.messages.resultCode, messageTypeEnum.Ok); + Assert.AreEqual(decryptPaymentDataResponse.billingInfo.firstName, "Authorize"); + Assert.AreEqual(decryptPaymentDataResponse.billingInfo.lastName, "Tester"); + Assert.AreEqual(decryptPaymentDataResponse.cardInfo.cardNumber, "XXXX4242"); + } + } } /* diff --git a/AuthorizeNETtest/App.config b/AuthorizeNETtest/App.config index 27eeb418..889d73bc 100644 --- a/AuthorizeNETtest/App.config +++ b/AuthorizeNETtest/App.config @@ -1,12 +1,11 @@ - - - + + + - + - diff --git a/AuthorizeNETtest/AuthorizeNETtest.csproj b/AuthorizeNETtest/AuthorizeNETtest.csproj index c2ee635b..5626e31d 100644 --- a/AuthorizeNETtest/AuthorizeNETtest.csproj +++ b/AuthorizeNETtest/AuthorizeNETtest.csproj @@ -1,5 +1,6 @@  - + Debug AnyCPU @@ -10,14 +11,16 @@ Properties AuthorizeNETtest AuthorizeNETtest - v4.5 + v4.8 + disable + latest 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 3.5 + win AnyCPU @@ -42,24 +45,6 @@ false - - ..\packages\NMock3.3.5.44\lib\net40\NMock3.dll - - - ..\NUnit-2.6.3\bin\lib\nunit-console-runner.dll - - - ..\NUnit-2.6.3\bin\lib\nunit.core.dll - - - ..\NUnit-2.6.3\bin\lib\nunit.core.interfaces.dll - - - ..\NUnit-2.6.3\bin\nunit.framework.dll - - - ..\NUnit-2.6.3\bin\lib\nunit.util.dll - @@ -83,9 +68,9 @@ - - - + + + @@ -93,7 +78,7 @@ - + @@ -118,14 +103,14 @@ - - + + - - - - - + + + + + @@ -145,18 +130,33 @@ Designer - - + + + 2.2.8 + + + 3.5.44 + + + 3.13.2 + + + 3.13.0 + + + 4.1.0 + + - - \ No newline at end of file + diff --git a/AuthorizeNETtest/BaseTest.cs b/AuthorizeNETtest/BaseTest.cs index bac36547..ddfc45e5 100644 --- a/AuthorizeNETtest/BaseTest.cs +++ b/AuthorizeNETtest/BaseTest.cs @@ -5,64 +5,64 @@ namespace AuthorizeNETtest { - /// - /// Summary description for UnitTest1 - /// - [TestFixture] - public class BaseTest - { - protected static readonly WebRequestCreateLocal LocalRequestObject = new WebRequestCreateLocal(); - protected string ApiLogin; - protected string TransactionKey; + /// + /// Summary description for UnitTest1 + /// + [TestFixture] + public class BaseTest + { + protected static readonly WebRequestCreateLocal LocalRequestObject = new(); + protected string ApiLogin; + protected string TransactionKey; - public BaseTest() - { + public BaseTest() + { #if USELOCAL WebRequest.RegisterPrefix("https://", LocalRequestObject); #endif - } + } - /// - /// CheckApiLoginTransactionKey - make sure that we are not using the default invalid ApiLogin and TransactionKey. - /// - protected string CheckApiLoginTransactionKey() - { - ApiLogin = AuthorizeNet.Test.UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvApiLoginid, AuthorizeNet.Util.Constants.PropApiLoginid); - TransactionKey = AuthorizeNet.Test.UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvTransactionKey, AuthorizeNet.Util.Constants.PropTransactionKey); + /// + /// CheckApiLoginTransactionKey - make sure that we are not using the default invalid ApiLogin and TransactionKey. + /// + protected string CheckApiLoginTransactionKey() + { + ApiLogin = AuthorizeNet.Test.UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvApiLoginid, AuthorizeNet.Util.Constants.PropApiLoginid); + TransactionKey = AuthorizeNet.Test.UnitTestData.GetPropertyFromNames(AuthorizeNet.Util.Constants.EnvTransactionKey, AuthorizeNet.Util.Constants.PropTransactionKey); - string sRet = ""; - if ((string.IsNullOrEmpty(ApiLogin)) || (ApiLogin.Trim().Length == 0) - || (string.IsNullOrEmpty(TransactionKey)) || (TransactionKey.Trim().Length == 0)) - { - LoadLoginTranskey(); - } + string sRet = ""; + if ((string.IsNullOrEmpty(ApiLogin)) || (ApiLogin.Trim().Length == 0) + || (string.IsNullOrEmpty(TransactionKey)) || (TransactionKey.Trim().Length == 0)) + { + LoadLoginTranskey(); + } - if ((string.IsNullOrEmpty(ApiLogin)) || (ApiLogin.Trim().Length == 0) - || (string.IsNullOrEmpty(TransactionKey)) || (TransactionKey.Trim().Length == 0)) - { - sRet = "Invalid Login / Password: blank \n"; - } + if ((string.IsNullOrEmpty(ApiLogin)) || (ApiLogin.Trim().Length == 0) + || (string.IsNullOrEmpty(TransactionKey)) || (TransactionKey.Trim().Length == 0)) + { + sRet = "Invalid Login / Password: blank \n"; + } #if !USELOCAL - if ((ApiLogin == "ApiLogin") || (TransactionKey == "TransactionKey")) - { - sRet += "Invalid Login / Password \n"; - } + if ((ApiLogin == "ApiLogin") || (TransactionKey == "TransactionKey")) + { + sRet += "Invalid Login / Password \n"; + } #endif - return sRet; - } + return sRet; + } - private void LoadLoginTranskey() - { - ApiLogin = ConfigurationManager.AppSettings["ApiLogin"]; - TransactionKey = ConfigurationManager.AppSettings["TransactionKey"]; - } + private void LoadLoginTranskey() + { + ApiLogin = ConfigurationManager.AppSettings["ApiLogin"]; + TransactionKey = ConfigurationManager.AppSettings["TransactionKey"]; + } - protected decimal getValidAmount() - { - var rnd = new AnetRandom(DateTime.Now.Millisecond); + protected decimal GetValidAmount() + { + var rnd = new AnetRandom(DateTime.Now.Millisecond); - return (decimal)rnd.Next(9999) / 100; - } - } + return (decimal)rnd.Next(9999) / 100; + } + } } diff --git a/AuthorizeNETtest/NMock3/NMockTest.cs b/AuthorizeNETtest/NMock3/NMockTest.cs deleted file mode 100644 index b1831186..00000000 --- a/AuthorizeNETtest/NMock3/NMockTest.cs +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This sample test class was added when NMock3 was added - * through NuGet. It demonstrates how to mock properties, - * methods, and events. It is safe to delete if you don't - * need it. - */ - -using System; -using NMock; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace NMockTests -{ - [TestClass] - public class SampleTest - { - // - // For more samples and tutorials: http://nmock3.codeplex.com - // - - private MockFactory _factory = new MockFactory(); - - [TestCleanup] - public void Cleanup() - { - _factory.VerifyAllExpectationsHaveBeenMet(); - _factory.ClearExpectations(); - } - - [TestMethod] - public void PropertyTest() - { - var mock = _factory.CreateMock(); - mock.Expects.One.GetProperty(_ => _.Prop).WillReturn("Hello"); - mock.Expects.One.SetPropertyTo(_ => _.Prop = ", World"); - - var controller = new Controller(mock.MockObject); - Assert.AreEqual("Hello, World", controller.PropActions(", World")); - } - - [TestMethod] - public void MethodTest() - { - var mock = _factory.CreateMock(); - mock.Expects.One.MethodWith(_ => _.Method(1, 2, 3, 4)).WillReturn(new Version(5, 6, 7, 8)); - - var controller = new Controller(mock.MockObject); - var version = controller.GetVersion(1, 2, 3, 4); - - mock.Expects.One.Method(_ => _.Method(null)).With(Is.TypeOf()).WillReturn("3, 4, 5, 6"); - - var result = controller.GetVersion(version); - Assert.AreEqual("3, 4, 5, 6", result); - } - - [TestMethod] - public void EventTest() - { - var mock = _factory.CreateMock(); - var invoker = mock.Expects.One.EventBinding(_ => _.Event += null); - - var controller = new Controller(mock.MockObject); - controller.InitEvents(); - - Assert.IsNull(controller.Status); - invoker.Invoke(); - Assert.AreEqual("Event Fired!", controller.Status); - - } - - public interface ITest - { - string Prop { get; set; } - Version Method(int a, int b, int c, int d); - string Method(Version version); - event EventHandler Event; - } - public class Controller - { - public string Status; - private ITest _test; - public Controller(ITest test) - { - _test = test; - } - - public string PropActions(string arg1) - { - _test.Prop = arg1; - return _test.Prop + arg1; - } - public Version GetVersion(int a, int b, int c, int d) - { - return _test.Method(a, b, c, d); - } - public string GetVersion(Version version) - { - return _test.Method(version).ToString(); - } - public void InitEvents() - { - _test.Event += _test_Event; - } - - void _test_Event(object sender, EventArgs e) - { - Status = "Event Fired!"; - } - } - } -} \ No newline at end of file diff --git a/AuthorizeNETtest/Properties/AssemblyInfo.cs b/AuthorizeNETtest/Properties/AssemblyInfo.cs index 9381d3e2..080941be 100644 --- a/AuthorizeNETtest/Properties/AssemblyInfo.cs +++ b/AuthorizeNETtest/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AuthorizeNETtest")] @@ -14,8 +13,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM componenets. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM componenets. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -25,11 +24,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Revision and Build Numbers +// You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AuthorizeNETtest/UnitTestData.cs b/AuthorizeNETtest/UnitTestData.cs index 47817e43..54c8254c 100644 --- a/AuthorizeNETtest/UnitTestData.cs +++ b/AuthorizeNETtest/UnitTestData.cs @@ -1,44 +1,43 @@ +using System; + +using AuthorizeNet.Util; + namespace AuthorizeNet.Test { - using System; - using System.Configuration; - using System.Linq; - using AuthorizeNet.Util; - - public abstract class UnitTestData - { - protected static string ApiLoginId; - protected static string TransactionKey; - protected static string MerchantMd5Key; + public abstract class UnitTestData + { + protected static string ApiLoginId; + protected static string TransactionKey; + protected static string MerchantMd5Key; - private static readonly Log Logger = LogFactory.getLog(typeof(UnitTestData)); + private static readonly Log Logger = LogFactory.GetLog(typeof(UnitTestData)); - /** + /** * Default static constructor */ - static UnitTestData() - { - //getPropertyFromNames get the value from properties file or environment - ApiLoginId = GetPropertyFromNames(Constants.EnvApiLoginid, Constants.PropApiLoginid); - TransactionKey = GetPropertyFromNames(Constants.EnvTransactionKey, Constants.PropTransactionKey); - MerchantMd5Key = GetPropertyFromNames(Constants.EnvMd5Hashkey, Constants.PropMd5Hashkey); + static UnitTestData() + { + //getPropertyFromNames get the value from properties file or environment + ApiLoginId = GetPropertyFromNames(Constants.EnvApiLoginid, Constants.PropApiLoginid); + TransactionKey = GetPropertyFromNames(Constants.EnvTransactionKey, Constants.PropTransactionKey); + MerchantMd5Key = GetPropertyFromNames(Constants.EnvMd5Hashkey, Constants.PropMd5Hashkey); - if (null == ApiLoginId || null == TransactionKey) - { - throw new ArgumentException("LoginId and/or TransactionKey have not been set."); - } - else - { - LogHelper.info(Logger, "PropertyValues: ApiLoginId:'{0}', TransactionKey:'{1}', MD5Key:'{2}' ", ApiLoginId, TransactionKey, MerchantMd5Key); - } - } + if (null == ApiLoginId || null == TransactionKey) + { + throw new ArgumentException("LoginId and/or TransactionKey have not been set."); + } + else + { + LogHelper.Info(Logger, "PropertyValues: ApiLoginId:'{0}', TransactionKey:'{1}', MD5Key:'{2}' ", ApiLoginId, TransactionKey, MerchantMd5Key); + } + } - public static string GetPropertyFromNames(string pFirstName, string pSecondName) - { - var value = AuthorizeNet.Environment.GetProperty(pFirstName) ?? - AuthorizeNet.Environment.GetProperty(pSecondName); + public static string GetPropertyFromNames(string pFirstName, string pSecondName) + { + var value = Environment.GetProperty(pFirstName) ?? + Environment.GetProperty(pSecondName); - return value; - } - } + return value; + } + } } \ No newline at end of file diff --git a/AuthorizeNETtest/WebRequestLocal.cs b/AuthorizeNETtest/WebRequestLocal.cs index ee3e4967..34a6658f 100644 --- a/AuthorizeNETtest/WebRequestLocal.cs +++ b/AuthorizeNETtest/WebRequestLocal.cs @@ -1,133 +1,132 @@ using System; using System.IO; using System.Net; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; using System.Text; -using System.Threading; namespace AuthorizeNETtest { - public class WebRequestCreateLocal : IWebRequestCreate - { - public WebRequestCreateLocal() - { - } + public class WebRequestCreateLocal : IWebRequestCreate + { + public WebRequestCreateLocal() + { + } - public WebRequestCreateLocal(string response) - { - ResponseString = response; - } + public WebRequestCreateLocal(string response) + { + ResponseString = response; + } - public string ResponseString - { - get { return ResponseStrings[ResponseStringCount - 1]; } - set - { - ResponseStringCount = 0; - if (ResponseStrings == null) - { - ResponseStrings = new string[] {value}; - } - else - { - ResponseStrings[0] = value; - } - } - } - public string[] ResponseStrings { get; set; } - public int ResponseStringCount { get; set; } + public string ResponseString + { + get { return ResponseStrings[ResponseStringCount - 1]; } + set + { + ResponseStringCount = 0; + if (ResponseStrings == null) + { + ResponseStrings = new string[] { value }; + } + else + { + ResponseStrings[0] = value; + } + } + } + public string[] ResponseStrings { get; set; } + public int ResponseStringCount { get; set; } - public WebRequest Create(Uri uri) - { - SerializationInfo si = new SerializationInfo(typeof(HttpWebRequest), new System.Runtime.Serialization.FormatterConverter()); - StreamingContext sc = new StreamingContext(); - WebHeaderCollection headers = new WebHeaderCollection(); - WebProxy proxy = new WebProxy(); - si.AddValue("_HttpRequestHeaders", new WebHeaderCollection(), typeof(WebHeaderCollection)); - si.AddValue("_Proxy", null, typeof(IWebProxy)); - si.AddValue("_KeepAlive", true); - si.AddValue("_Pipelined", true); - si.AddValue("_AllowAutoRedirect", true); - si.AddValue("_AllowWriteStreamBuffering", true); - si.AddValue("_HttpWriteMode", 0); - si.AddValue("_MaximumAllowedRedirections", 0); - si.AddValue("_AutoRedirects", 0); - si.AddValue("_Timeout", 500); //need to check below - si.AddValue("_ReadWriteTimeout", 500); - si.AddValue("_MaximumResponseHeadersLength", 128); - si.AddValue("_ContentLength", 0); - si.AddValue("_MediaType", 0); - si.AddValue("_OriginVerb", 0); - si.AddValue("_ConnectionGroupName", null); - si.AddValue("_Version", HttpVersion.Version11, typeof(Version)); - si.AddValue("_OriginUri", new Uri("http://localhost"), typeof(Uri)); + public WebRequest Create(Uri uri) + { + SerializationInfo si = new SerializationInfo(typeof(HttpWebRequest), new FormatterConverter()); + StreamingContext sc = new StreamingContext(); + // WebHeaderCollection headers = new WebHeaderCollection(); + // WebProxy proxy = new WebProxy(); + si.AddValue("_HttpRequestHeaders", new WebHeaderCollection(), typeof(WebHeaderCollection)); + si.AddValue("_Proxy", null, typeof(IWebProxy)); + si.AddValue("_KeepAlive", true); + si.AddValue("_Pipelined", true); + si.AddValue("_AllowAutoRedirect", true); + si.AddValue("_AllowWriteStreamBuffering", true); + si.AddValue("_HttpWriteMode", 0); + si.AddValue("_MaximumAllowedRedirections", 0); + si.AddValue("_AutoRedirects", 0); + si.AddValue("_Timeout", 500); //need to check below + si.AddValue("_ReadWriteTimeout", 500); + si.AddValue("_MaximumResponseHeadersLength", 128); + si.AddValue("_ContentLength", 0); + si.AddValue("_MediaType", 0); + si.AddValue("_OriginVerb", 0); + si.AddValue("_ConnectionGroupName", null); + si.AddValue("_Version", HttpVersion.Version11, typeof(Version)); + si.AddValue("_OriginUri", new Uri("http://localhost"), typeof(Uri)); - WebRequestLocal request = new WebRequestLocal(si, sc); - ResponseStringCount++; - request.ResponseString = ResponseString; + WebRequestLocal request = new WebRequestLocal(si, sc); + ResponseStringCount++; + request.ResponseString = ResponseString; - return request; - } - } + return request; + } + } - public class WebRequestLocal : HttpWebRequest - { - public WebRequestLocal(SerializationInfo serializationInfo, StreamingContext streamingContext) - : base(serializationInfo, streamingContext) - { - } + public class WebRequestLocal : HttpWebRequest + { + public WebRequestLocal(SerializationInfo serializationInfo, StreamingContext streamingContext) + : base(serializationInfo, streamingContext) + { + } - public string ResponseString { get; set; } + public string ResponseString { get; set; } - public override long ContentLength { get; set; } + public override long ContentLength { get; set; } - public override Stream GetRequestStream() - { - MemoryStream ms = new MemoryStream(); - ms.Capacity = (int) ContentLength; - return ms; - } + public override Stream GetRequestStream() + { + MemoryStream ms = new MemoryStream + { + Capacity = (int)ContentLength + }; + return ms; + } - public override WebResponse GetResponse() - { - SerializationInfo si = new SerializationInfo(typeof(HttpWebResponse), new System.Runtime.Serialization.FormatterConverter()); - StreamingContext sc = new StreamingContext(); - WebHeaderCollection headers = new WebHeaderCollection(); - si.AddValue("m_HttpResponseHeaders", headers); - si.AddValue("m_Uri", new Uri("http://localhost")); - si.AddValue("m_Certificate", null); - si.AddValue("m_Version", HttpVersion.Version11); - si.AddValue("m_StatusCode", HttpStatusCode.OK); - si.AddValue("m_ContentLength", 0); - si.AddValue("m_Verb", "GET"); - si.AddValue("m_StatusDescription", "Local Response"); - si.AddValue("m_MediaType", null); + public override WebResponse GetResponse() + { + SerializationInfo si = new SerializationInfo(typeof(HttpWebResponse), new FormatterConverter()); + StreamingContext sc = new StreamingContext(); + WebHeaderCollection headers = new WebHeaderCollection(); + si.AddValue("m_HttpResponseHeaders", headers); + si.AddValue("m_Uri", new Uri("http://localhost")); + si.AddValue("m_Certificate", null); + si.AddValue("m_Version", HttpVersion.Version11); + si.AddValue("m_StatusCode", HttpStatusCode.OK); + si.AddValue("m_ContentLength", 0); + si.AddValue("m_Verb", "GET"); + si.AddValue("m_StatusDescription", "Local Response"); + si.AddValue("m_MediaType", null); - WebResponseLocal response = new WebResponseLocal(si, sc); - response.ResponseString = ResponseString; - return response; - } - } + WebResponseLocal response = new(si, sc); + response.ResponseString = ResponseString; + return response; + } + } - public class WebResponseLocal : HttpWebResponse - { - public WebResponseLocal(SerializationInfo serializationInfo, StreamingContext streamingContext) - : base(serializationInfo, streamingContext) - { - } + public class WebResponseLocal : HttpWebResponse + { + public WebResponseLocal(SerializationInfo serializationInfo, StreamingContext streamingContext) + : base(serializationInfo, streamingContext) + { + } - public string ResponseString { get; set; } + public string ResponseString { get; set; } - public override Stream GetResponseStream() - { - Encoding ascii = Encoding.ASCII; - byte[] bytes = ascii.GetBytes(ResponseString); - MemoryStream ms = new MemoryStream(); - ms.Write(bytes, 0, bytes.Length); - ms.Seek(0, SeekOrigin.Begin); - return ms; - } - } + public override Stream GetResponseStream() + { + Encoding ascii = Encoding.ASCII; + byte[] bytes = ascii.GetBytes(ResponseString); + MemoryStream ms = new MemoryStream(); + ms.Write(bytes, 0, bytes.Length); + ms.Seek(0, SeekOrigin.Begin); + return ms; + } + } } diff --git a/AuthorizeNETtest/upgrade-assistant.clef b/AuthorizeNETtest/upgrade-assistant.clef new file mode 100644 index 00000000..7127bbd2 --- /dev/null +++ b/AuthorizeNETtest/upgrade-assistant.clef @@ -0,0 +1,399 @@ +{"@t":"2021-12-08T13:49:18.1131213Z","@mt":"Hosting starting","@l":"Debug","EventId":{"Id":1,"Name":"Starting"},"SourceContext":"Microsoft.Extensions.Hosting.Internal.Host"} +{"@t":"2021-12-08T13:49:18.1487425Z","@mt":"Configuration loaded from context base directory: {BaseDirectory}","@l":"Debug","BaseDirectory":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleRunner"} +{"@t":"2021-12-08T13:49:18.1763287Z","@mt":"Found extension '{Name}' [{Location}]","@l":"Debug","Name":"NuGet","Location":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\extensions\\nuget","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.1769195Z","@mt":"Found extension '{Name}' [{Location}]","@l":"Debug","Name":"Default","Location":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\extensions\\default","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.1770885Z","@mt":"Found extension '{Name}' [{Location}]","@l":"Debug","Name":"VB","Location":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\extensions\\vb","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.1774029Z","@mt":"Found extension '{Name}' [{Location}]","@l":"Debug","Name":"Web","Location":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\extensions\\web","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.1775826Z","@mt":"Found extension '{Name}' [{Location}]","@l":"Debug","Name":"windows","Location":"C:\\Users\\jrlh\\.dotnet\\tools\\.store\\upgrade-assistant\\0.3.256001\\upgrade-assistant\\0.3.256001\\tools\\net6.0\\any\\extensions\\windows","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.1790271Z","@mt":"Loaded {Count} extensions","Count":5,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionProvider"} +{"@t":"2021-12-08T13:49:18.2366438Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Common, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.2746843Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Packaging, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.3214699Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Frameworks, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.3590427Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Protocol, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.4039247Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Versioning, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.4398151Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.ProjectModel, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.4999496Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.5270213Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.5566777Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.5955604Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.6158742Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.6410900Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Source, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.6674901Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Templates, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.7011332Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.7477253Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.CodeFixes, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.8397062Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Steps.Razor, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Web0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.8823932Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.AspNetCore.Razor.Language, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","Extension":"UA_Web0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:18.9291507Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"DiffPlex, Version=1.6.3.0, Culture=neutral, PublicKeyToken=1d35e91d1bd7bc0f","Extension":"UA_Web0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:19.0235439Z","@mt":"Using Visual Studio v{VsVersion} [{VsPath}]","@l":"Debug","VsVersion":"17.0.31912.275","VsPath":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.VisualStudioFinder"} +{"@t":"2021-12-08T13:49:19.1526867Z","@mt":"Using MSBuild from {Path}","Path":"C:\\Program Files\\dotnet\\sdk\\6.0.100\\","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.WorkspaceOptions"} +{"@t":"2021-12-08T13:49:19.1539891Z","@mt":"Using Visual Studio install from {Path} [v{Version}]","Path":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise","Version":17,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.WorkspaceOptions"} +{"@t":"2021-12-08T13:49:19.9113302Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Credentials, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:19.9428658Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.Configuration, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:20.1856936Z","@mt":"Loading {Name} with pdb from {Extension}","@l":"Debug","Name":"MSBuild.Abstractions, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:20.2908830Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2909978Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2910332Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2910607Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2910878Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2911133Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2911460Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2911761Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.NextProjectStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2912120Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.FinalizeSolutionStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2912416Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.EntrypointSelectionStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2912794Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2913144Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Templates.TemplateInserterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2913444Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Extensions.VisualBasic.VisualBasicProjectUpdaterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2913762Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Steps.Razor.RazorUpdaterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2914170Z","@mt":"Using {Step} upgrade step","@l":"Debug","Step":"Microsoft.DotNet.UpgradeAssistant.Extensions.Windows.WinformsUpdateStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2938537Z","@mt":"Finished ordering upgrade steps: {UpgradeStepList}","@l":"Debug","UpgradeStepList":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.EntrypointSelectionStep, Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep, Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep, Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep, Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep, Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep, Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterStep, Microsoft.DotNet.UpgradeAssistant.Steps.Templates.TemplateInserterStep, Microsoft.DotNet.UpgradeAssistant.Extensions.VisualBasic.VisualBasicProjectUpdaterStep, Microsoft.DotNet.UpgradeAssistant.Extensions.Windows.WinformsUpdateStep, Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep, Microsoft.DotNet.UpgradeAssistant.Steps.Razor.RazorUpdaterStep, Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep, Microsoft.DotNet.UpgradeAssistant.Steps.Solution.NextProjectStep, Microsoft.DotNet.UpgradeAssistant.Steps.Solution.FinalizeSolutionStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgradeStepOrderer"} +{"@t":"2021-12-08T13:49:20.2982059Z","@mt":"Generating context","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildUpgradeContextFactory"} +{"@t":"2021-12-08T13:49:20.3082087Z","@mt":"Unable to resolve assembly {AssemblyName}","@l":"Debug","AssemblyName":"Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildRegistrationStartup"} +{"@t":"2021-12-08T13:49:20.3087409Z","@mt":"Unable to resolve assembly {AssemblyName}","@l":"Debug","AssemblyName":"Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildRegistrationStartup"} +{"@t":"2021-12-08T13:49:20.3333434Z","@mt":"Initializing context","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildUpgradeContextFactory"} +{"@t":"2021-12-08T13:49:21.0864663Z","@mt":"Unable to resolve assembly {AssemblyName}","@l":"Debug","AssemblyName":"Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildRegistrationStartup"} +{"@t":"2021-12-08T13:49:21.4001654Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\MSBuild\\Microsoft\\Microsoft.NET.Build.Extensions\\Microsoft.NET.Build.Extensions.ConflictResolution.targets: (30, 5): The \"ResolvePackageFileConflicts\" task could not be loaded from the assembly C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\MSBuild\\Microsoft\\Microsoft.NET.Build.Extensions\\\\tools\\net6.0\\Microsoft.NET.Build.Extensions.Tasks.dll. Could not load file or assembly 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\MSBuild\\Microsoft\\Microsoft.NET.Build.Extensions\\tools\\net6.0\\Microsoft.NET.Build.Extensions.Tasks.dll'. The system cannot find the path specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:23.8145198Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:23.8500621Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:24.0405905Z","@mt":"Done initializing context","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildUpgradeContextFactory"} +{"@t":"2021-12-08T13:49:24.2576534Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:24.3704670Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"NuGet.LibraryModel, Version=6.0.0.258, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:24.4824122Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Select an entrypoint","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.4861164Z","@mt":"Setting entrypoint to user selected project: {Project}","Project":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.EntrypointSelectionStep"} +{"@t":"2021-12-08T13:49:24.4876688Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Select an entrypoint","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.4895958Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Select project to upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.5073180Z","@mt":"Setting user-selected project as the current project: {Project}","@l":"Debug","Project":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep"} +{"@t":"2021-12-08T13:49:24.5081822Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Select project to upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.5083354Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Back up project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.5114122Z","@mt":"Determining backup path","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:24.5115684Z","@mt":"Using backup path {BackupPath}","@l":"Debug","BackupPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:24.5116047Z","@mt":"Backup upgrade step initialized as incomplete; will backup to {BackupLocation}","@l":"Debug","BackupLocation":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:24.5117069Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Back up project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.5117441Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:24.5309542Z","@mt":"Loading {Name} without pdb from {Extension}","@l":"Debug","Name":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers.Common, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:26.6590114Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Back up project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8240713Z","@mt":"Determining backup path","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8241819Z","@mt":"Using backup path {BackupPath}","@l":"Debug","BackupPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8256140Z","@mt":"Backing up {ProjectDir} to {BackupPath}","ProjectDir":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest","BackupPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8316363Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\App.config","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\App.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8323892Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8330489Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\BaseTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\BaseTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8451207Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\packages.config","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\packages.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8456395Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\UnitTestData.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\UnitTestData.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8459404Z","@mt":"Could not copy file {Path} due to '{Message}'","@l":"Warning","Path":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\upgrade-assistant.clef","Message":"The process cannot access the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\upgrade-assistant.clef' because it is being used by another process.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8477377Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\upgrade-assistant.clef","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\upgrade-assistant.clef","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8481630Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\WebRequestLocal.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\WebRequestLocal.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8585486Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\ControllerTemplateTest.cst","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\ControllerTemplateTest.cst","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8596893Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBCancelSubscriptionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBCancelSubscriptionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8603129Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBCreateSubscriptionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBCreateSubscriptionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8610690Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBGetSubscriptionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBGetSubscriptionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8616068Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBGetSubscriptionListControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBGetSubscriptionListControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8620560Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBGetSubscriptionStatusControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBGetSubscriptionStatusControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8625971Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ARBUpdateSubscriptionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ARBUpdateSubscriptionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8631240Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\AuthenticateTestControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\AuthenticateTestControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8635606Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createCustomerPaymentProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createCustomerPaymentProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8639762Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createCustomerProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createCustomerProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8645073Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createCustomerProfileFromTransactionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createCustomerProfileFromTransactionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8650414Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createCustomerProfileTransactionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createCustomerProfileTransactionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8656163Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createCustomerShippingAddressControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createCustomerShippingAddressControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8660850Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createFingerPrintControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createFingerPrintControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8665972Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8670514Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\createTransactionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\createTransactionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8679235Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\decryptPaymentDataControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\decryptPaymentDataControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8685816Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\deleteCustomerPaymentProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\deleteCustomerPaymentProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8690869Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\deleteCustomerProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\deleteCustomerProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8695472Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\deleteCustomerShippingAddressControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\deleteCustomerShippingAddressControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8700915Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getAUJobDetailsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getAUJobDetailsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8705914Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getAUJobSummaryControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getAUJobSummaryControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8709991Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getBatchStatisticsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getBatchStatisticsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8715636Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getCustomerPaymentProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getCustomerPaymentProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8720673Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getCustomerPaymentProfileListControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getCustomerPaymentProfileListControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8725455Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getCustomerProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getCustomerProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8730094Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getCustomerProfileIdsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getCustomerProfileIdsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8734234Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getCustomerShippingAddressControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getCustomerShippingAddressControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8739080Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getHostedPaymentPageControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getHostedPaymentPageControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8778373Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getHostedProfilePageControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getHostedProfilePageControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8783455Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getMerchantDetailsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getMerchantDetailsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8793129Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getSettledBatchListControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getSettledBatchListControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8796960Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getTransactionDetailsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getTransactionDetailsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8800963Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getTransactionListControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getTransactionListControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8805188Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getTransactionListForCustomerControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getTransactionListForCustomerControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8809283Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\getUnsettledTransactionListControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\getUnsettledTransactionListControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8813378Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\isAliveControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\isAliveControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8816973Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\logoutControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\logoutControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8821082Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\mobileDeviceLoginControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\mobileDeviceLoginControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8827467Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\MobileDeviceRegistrationControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\MobileDeviceRegistrationControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8831907Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\SecurePaymentContainerControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\SecurePaymentContainerControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8835865Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\SendCustomerTransactionReceiptControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\SendCustomerTransactionReceiptControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8840590Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\transactionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\transactionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8845079Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\transactionResponseEmvControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\transactionResponseEmvControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8849876Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateCustomerPaymentProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateCustomerPaymentProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8854544Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateCustomerProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateCustomerProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8859044Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateCustomerShippingAddressControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateCustomerShippingAddressControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8864780Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateHeldTransactionControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateHeldTransactionControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8869338Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateMerchantDetailsControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateMerchantDetailsControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8873617Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\UpdateSplitTenderGroupControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\UpdateSplitTenderGroupControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8878405Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\MockTest\\ValidateCustomerPaymentProfileControllerTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\MockTest\\ValidateCustomerPaymentProfileControllerTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8886802Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\ArbSubscriptionSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\ArbSubscriptionSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8891203Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\CreateCustomerProfileFromTransactionSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\CreateCustomerProfileFromTransactionSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8897369Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\CreateTransactionSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\CreateTransactionSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8901480Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\CustomerProfileSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\CustomerProfileSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8908302Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\eCheckTransactionSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\eCheckTransactionSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8916374Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\SampleTest\\ErrorMessagesSampleTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\SampleTest\\ErrorMessagesSampleTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8925846Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\Test\\AllGeneratedEnumTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\Test\\AllGeneratedEnumTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8930219Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\Test\\ApiCoreTestBase.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\Test\\ApiCoreTestBase.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8938013Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\Test\\APIInvalidCredentials.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\Test\\APIInvalidCredentials.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8942518Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\Test\\ArbSubscriptionTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\Test\\ArbSubscriptionTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.8947033Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Api\\Controllers\\Test\\CreateTransactionTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Api\\Controllers\\Test\\CreateTransactionTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.9466142Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNET.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNET.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.9538054Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNET.pdb","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNET.pdb","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:27.9697258Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNET.xml","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNET.xml","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.0490789Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNETtest.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNETtest.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.0518395Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNETtest.dll.config","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNETtest.dll.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.0617856Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\AuthorizeNETtest.pdb","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\AuthorizeNETtest.pdb","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.1341219Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\NMock3.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\NMock3.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.1958469Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\NMock3.xml","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\NMock3.xml","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.2354069Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\nunit-console-runner.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\nunit-console-runner.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.2931936Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\nunit.core.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\nunit.core.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.3279983Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\nunit.core.interfaces.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\nunit.core.interfaces.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.3669219Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\nunit.framework.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\nunit.framework.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4210894Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\bin\\Debug\\nunit.util.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\bin\\Debug\\nunit.util.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4331749Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\NMock3\\NMock3 Cheat Sheet.pdf","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\NMock3\\NMock3 Cheat Sheet.pdf","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4336822Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\NMock3\\NMockTest.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\NMock3\\NMockTest.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4347842Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4440451Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.csproj.AssemblyReference.cache","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.csproj.AssemblyReference.cache","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4492386Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.csproj.CopyComplete","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.csproj.CopyComplete","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4572865Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.csproj.CoreCompileInputs.cache","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.csproj.CoreCompileInputs.cache","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.4660172Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.csproj.FileListAbsolute.txt","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.csproj.FileListAbsolute.txt","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5443239Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.dll","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.dll","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5547789Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\AuthorizeNETtest.pdb","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\AuthorizeNETtest.pdb","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5633859Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\obj\\Debug\\DesignTimeResolveAssemblyReferencesInput.cache","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\obj\\Debug\\DesignTimeResolveAssemblyReferencesInput.cache","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5643640Z","@mt":"Copied {SourceFile} to {DestinationFile}","@l":"Debug","SourceFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\Properties\\AssemblyInfo.cs","DestinationFile":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup\\Properties\\AssemblyInfo.cs","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5679367Z","@mt":"Project backed up to {BackupPath}","BackupPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest.backup","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:28.5694595Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Back up project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Backup.BackupStep"} +{"@t":"2021-12-08T13:49:29.5939692Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Convert project file to SDK style","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:29.5957649Z","@mt":"Project {ProjectPath} not yet converted","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep"} +{"@t":"2021-12-08T13:49:29.5963414Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Convert project file to SDK style","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:29.5963586Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:31.9304827Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Convert project file to SDK style","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep"} +{"@t":"2021-12-08T13:49:31.9332340Z","@mt":"Converting project file format with try-convert, version 0.3.256001+8aa571efd8bac422c95c35df9c7b9567ad534ad0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep"} +{"@t":"2021-12-08T13:49:31.9346384Z","@mt":"Loading {Name} with pdb from {Extension}","@l":"Debug","Name":"MSBuild.Conversion.Project, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:31.9761556Z","@mt":"Loading {Name} with pdb from {Extension}","@l":"Debug","Name":"MSBuild.Conversion.Facts, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:32.3269412Z","@mt":"Converting project {Path} to SDK style","Path":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertInProcessTool"} +{"@t":"2021-12-08T13:49:32.3322098Z","@mt":"Loading {Name} with pdb from {Extension}","@l":"Debug","Name":"MSBuild.Conversion.Package, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","Extension":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:49:33.3562534Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:33.3563230Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:33.4596711Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:33.4712751Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:33.4757100Z","@mt":"Project file converted successfully! The project may require additional changes to build successfully against the new .NET target.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep"} +{"@t":"2021-12-08T13:49:33.4774539Z","@mt":"Restoring packages for {ProjectPath} with dotnet restore","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.DotnetRestorePackageRestorer"} +{"@t":"2021-12-08T13:49:33.9988880Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Determining projects to restore...","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:35.1689004Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Restored D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj (in 1.02 sec).","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:35.1712845Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" 1 of 2 projects are up-to-date for restore.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:35.5428828Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:35.5429673Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:35.5429863Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:35.6239448Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:35.6350948Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:35.6379660Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Convert project file to SDK style","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.TryConvertProjectConverterStep"} +{"@t":"2021-12-08T13:49:37.1148150Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Clean up NuGet package references","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:37.1178751Z","@mt":"Restoring packages for {ProjectPath} with dotnet restore","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.DotnetRestorePackageRestorer"} +{"@t":"2021-12-08T13:49:37.6855646Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Determining projects to restore...","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:37.9186737Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" All projects are up-to-date for restore.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:38.2868738Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:38.2869375Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:38.2869505Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:38.3654098Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:38.3768216Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:38.4840869Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Duplicate reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:38.4852559Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Transitive reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:38.4925102Z","@mt":"Marking package {PackageName} for removal because it appears to be a transitive dependency","PackageName":"System.Data.DataSetExtensions","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TransitiveReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:38.4956772Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Package map reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:38.4983234Z","@mt":"Marking assembly reference {ReferenceName} for removal based on package mapping configuration {PackageMapSet}","ReferenceName":"System.Configuration","PackageMapSet":"System.Configuration","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.PackageMapReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:38.5008214Z","@mt":"Adding package {PackageName} based on package mapping configuration {PackageMapSet}","PackageName":"System.Configuration.ConfigurationManager","PackageMapSet":"System.Configuration","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.PackageMapReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:38.5019430Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Target compatibility reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:38.5045065Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"NMock3, Version=3.5.44","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\NMock3\\3.5.44\\NMock3.3.5.44.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:38.5414019Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"NMock3.3.5.44","TargetFrameworks":[".NETFramework,Version=v3.5",".NETFramework,Version=v4.0","Silverlight,Version=v4.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:38.5509347Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"NMock3, Version=3.5.44","TargetFramework":["net48"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:38.5510937Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\System.Configuration.ConfigurationManager\\5.0.0\\System.Configuration.ConfigurationManager.5.0.0.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:38.5560221Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager.5.0.0","TargetFrameworks":[".NETFramework,Version=v4.6.1",".NETStandard,Version=v2.0","MonoAndroid,Version=v1.0","MonoTouch,Version=v1.0","Xamarin.iOS,Version=v1.0","Xamarin.Mac,Version=v2.0","Xamarin.TVOS,Version=v1.0","Xamarin.WatchOS,Version=v1.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:38.5561387Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","TargetFramework":["net48"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:38.5561927Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Upgrade assistant reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:38.5587943Z","@mt":"Found package sources: {PackageSources}","@l":"Debug","PackageSources":["https://api.nuget.org/v3/index.json [https://api.nuget.org/v3/index.json]"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.NuGetPackageSourceFactory"} +{"@t":"2021-12-08T13:49:38.6670922Z","@mt":"[NuGet] GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet.upgradeassistant.extensions.default.analyzers/index.json","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:38.9178368Z","@mt":"[NuGet] OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet.upgradeassistant.extensions.default.analyzers/index.json 246ms","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:39.0648295Z","@mt":"Reference to .NET Upgrade Assistant analyzer package ({AnalyzerPackageName}, version {AnalyzerPackageVersion}) needs to be added","AnalyzerPackageName":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers","AnalyzerPackageVersion":"0.3.256001","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.UpgradeAssistantReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:39.0669786Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Windows Compatibility Pack Analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:39.0680712Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"MyDotAnalyzer reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:39.0691302Z","@mt":"None of the tfms match packages from {PackageName}","@l":"Debug","PackageName":"System.Configuration.ConfigurationManager","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.VisualBasic.MyDotAnalyzer"} +{"@t":"2021-12-08T13:49:39.0691794Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Newtonsoft.Json reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:39.0717888Z","@mt":"References to be removed: {References}","References":"System.Configuration","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:39.0732067Z","@mt":"Packages to be removed: {Packages}","Packages":"System.Data.DataSetExtensions, Version=4.5.0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:39.0741432Z","@mt":"Packages to be added: {Packages}","Packages":"System.Configuration.ConfigurationManager, Version=5.0.0\r\nMicrosoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:39.0753879Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Clean up NuGet package references","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:39.0754370Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:42.5062349Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Clean up NuGet package references","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:42.5089338Z","@mt":"Removing outdated assembly reference: {Reference}","Reference":"System.Configuration","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.5109952Z","@mt":"Removing outdated package reference: {PackageReference}","PackageReference":"System.Data.DataSetExtensions, Version=4.5.0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.5125145Z","@mt":"Adding package reference: {PackageReference}","PackageReference":"System.Configuration.ConfigurationManager, Version=5.0.0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.5134820Z","@mt":"Adding package reference: {PackageReference}","PackageReference":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.5147071Z","@mt":"Saving changes to project file","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.8693139Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.8693828Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.8693982Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.9409185Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.9523553Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:42.9544413Z","@mt":"Re-running analysis to check whether additional changes are needed","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:42.9545281Z","@mt":"Restoring packages for {ProjectPath} with dotnet restore","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.DotnetRestorePackageRestorer"} +{"@t":"2021-12-08T13:49:43.4847193Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Determining projects to restore...","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7396421Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: Detected package downgrade: System.Configuration.ConfigurationManager from 6.0.0 to 5.0.0. Reference the package directly from the project to select a different version. ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7397053Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> AuthorizeNET -> System.Configuration.ConfigurationManager (>= 6.0.0) ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7397148Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> System.Configuration.ConfigurationManager (>= 5.0.0)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7640735Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Failed to restore D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj (in 125 ms).","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7666762Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" 1 of 2 projects are up-to-date for restore.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:43.7899004Z","@mt":"[{Tool}] Error: Exited with non-success code: {ExitCode}","@l":"Debug","Tool":"dotnet-restore","ExitCode":1,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:44.1433737Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:44.1434294Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:44.1434420Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:44.2438534Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:44.2545092Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:44.3318717Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Duplicate reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3325194Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Transitive reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3384175Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Package map reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3385893Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Target compatibility reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3386653Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"NMock3, Version=3.5.44","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\NMock3\\3.5.44\\NMock3.3.5.44.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3390085Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"NMock3.3.5.44","TargetFrameworks":[".NETFramework,Version=v3.5",".NETFramework,Version=v4.0","Silverlight,Version=v4.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3393873Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"NMock3, Version=3.5.44","TargetFramework":["net48"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:44.3394359Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\System.Configuration.ConfigurationManager\\5.0.0\\System.Configuration.ConfigurationManager.5.0.0.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3397045Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager.5.0.0","TargetFrameworks":[".NETFramework,Version=v4.6.1",".NETStandard,Version=v2.0","MonoAndroid,Version=v1.0","MonoTouch,Version=v1.0","Xamarin.iOS,Version=v1.0","Xamarin.Mac,Version=v2.0","Xamarin.TVOS,Version=v1.0","Xamarin.WatchOS,Version=v1.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3397619Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","TargetFramework":["net48"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:44.3398181Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers\\0.3.256001\\Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers.0.3.256001.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3401533Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers.0.3.256001","TargetFrameworks":["Any,Version=v0.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:44.3406226Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","TargetFramework":["net48"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:44.3406546Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Upgrade assistant reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3406893Z","@mt":"Reference to .NET Upgrade Assistant analyzer package ({AnalyzerPackageName}) already exists","@l":"Debug","AnalyzerPackageName":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.UpgradeAssistantReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:44.3407069Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Windows Compatibility Pack Analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3407561Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"MyDotAnalyzer reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3408183Z","@mt":"None of the tfms match packages from {PackageName}","@l":"Debug","PackageName":"System.Configuration.ConfigurationManager","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.VisualBasic.MyDotAnalyzer"} +{"@t":"2021-12-08T13:49:44.3408339Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Newtonsoft.Json reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:44.3416578Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Clean up NuGet package references","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterPreTFMStep"} +{"@t":"2021-12-08T13:49:45.6376922Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Update TFM","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:45.6740534Z","@mt":"TFM needs updated to {TargetTFM}","TargetTFM":"netstandard2.0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep"} +{"@t":"2021-12-08T13:49:45.6759531Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Update TFM","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:45.6759800Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:47.0422780Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Update TFM","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep"} +{"@t":"2021-12-08T13:49:47.0457330Z","@mt":"Saving changes to project file","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4048007Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4048972Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4049287Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4813986Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4915052Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:47.4936249Z","@mt":"Restoring packages for {ProjectPath} with dotnet restore","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.DotnetRestorePackageRestorer"} +{"@t":"2021-12-08T13:49:48.0376658Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Determining projects to restore...","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3058464Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : warning NU1701: Package 'NMock3 3.5.44' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3179143Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: Detected package downgrade: System.Configuration.ConfigurationManager from 6.0.0 to 5.0.0. Reference the package directly from the project to select a different version. ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3179737Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> AuthorizeNET -> System.Configuration.ConfigurationManager (>= 6.0.0) ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3179838Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> System.Configuration.ConfigurationManager (>= 5.0.0)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3448117Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Failed to restore D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj (in 150 ms).","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3463019Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" 1 of 2 projects are up-to-date for restore.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.3692373Z","@mt":"[{Tool}] Error: Exited with non-success code: {ExitCode}","@l":"Debug","Tool":"dotnet-restore","ExitCode":1,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:48.7746237Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:48.7747134Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:48.7747785Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:48.8400420Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:48.8441114Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:48.8462695Z","@mt":"Updated TFM to {TargetTFM}","TargetTFM":"netstandard2.0","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep"} +{"@t":"2021-12-08T13:49:48.8474148Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Update TFM","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.ProjectFormat.SetTFMStep"} +{"@t":"2021-12-08T13:49:49.6087687Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Update NuGet Packages","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:49.6099855Z","@mt":"Restoring packages for {ProjectPath} with dotnet restore","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.DotnetRestorePackageRestorer"} +{"@t":"2021-12-08T13:49:50.1330987Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Determining projects to restore...","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.3943913Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : warning NU1701: Package 'NMock3 3.5.44' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4054415Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: Detected package downgrade: System.Configuration.ConfigurationManager from 6.0.0 to 5.0.0. Reference the package directly from the project to select a different version. ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4054990Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> AuthorizeNET -> System.Configuration.ConfigurationManager (>= 6.0.0) ","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4055061Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj : error NU1605: AuthorizeNETtest -> System.Configuration.ConfigurationManager (>= 5.0.0)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4359258Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" Failed to restore D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj (in 145 ms).","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4375371Z","@mt":"[{Tool}] {Data}","@l":"Debug","Tool":"dotnet-restore","Data":" 1 of 2 projects are up-to-date for restore.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.4611354Z","@mt":"[{Tool}] Error: Exited with non-success code: {ExitCode}","@l":"Debug","Tool":"dotnet-restore","ExitCode":1,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.ProcessRunner"} +{"@t":"2021-12-08T13:49:50.8083488Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:50.8084104Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:50.8084213Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:50.8960999Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:50.9008353Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:50.9770147Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Duplicate reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:50.9772097Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Transitive reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:50.9799482Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Package map reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:50.9801170Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Target compatibility reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:50.9802114Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"NMock3, Version=3.5.44","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\NMock3\\3.5.44\\NMock3.3.5.44.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:50.9805520Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"NMock3.3.5.44","TargetFrameworks":[".NETFramework,Version=v3.5",".NETFramework,Version=v4.0","Silverlight,Version=v4.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:50.9815722Z","@mt":"[NuGet] GET https://api.nuget.org/v3/registration5-gz-semver2/nmock3/index.json","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1270223Z","@mt":"[NuGet] OK https://api.nuget.org/v3/registration5-gz-semver2/nmock3/index.json 145ms","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1396854Z","@mt":"No version of {PackageName} found that supports {TargetFramework}; leaving unchanged","@l":"Warning","PackageName":"NMock3","TargetFramework":["netstandard2.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:51.1427956Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\System.Configuration.ConfigurationManager\\5.0.0\\System.Configuration.ConfigurationManager.5.0.0.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1434587Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager.5.0.0","TargetFrameworks":[".NETFramework,Version=v4.6.1",".NETStandard,Version=v2.0","MonoAndroid,Version=v1.0","MonoTouch,Version=v1.0","Xamarin.iOS,Version=v1.0","Xamarin.Mac,Version=v2.0","Xamarin.TVOS,Version=v1.0","Xamarin.WatchOS,Version=v1.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1435630Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"System.Configuration.ConfigurationManager, Version=5.0.0","TargetFramework":["netstandard2.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:51.1436250Z","@mt":"NuGet package {NuGetPackage} loaded from {PackagePath}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","PackagePath":"C:\\Users\\jrlh\\.nuget\\packages\\Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers\\0.3.256001\\Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers.0.3.256001.nupkg","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1438521Z","@mt":"Found target frameworks for package {NuGetPackage}: {TargetFrameworks}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers.0.3.256001","TargetFrameworks":["Any,Version=v0.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.NuGet.PackageLoader"} +{"@t":"2021-12-08T13:49:51.1439440Z","@mt":"Package {NuGetPackage} will work on {TargetFramework}","@l":"Debug","NuGetPackage":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.256001","TargetFramework":["netstandard2.0"],"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.TargetCompatibilityReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:51.1439665Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Upgrade assistant reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:51.1440060Z","@mt":"Reference to .NET Upgrade Assistant analyzer package ({AnalyzerPackageName}) already exists","@l":"Debug","AnalyzerPackageName":"Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.Analyzers.UpgradeAssistantReferenceAnalyzer"} +{"@t":"2021-12-08T13:49:51.1440147Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Windows Compatibility Pack Analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:51.1440227Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"MyDotAnalyzer reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:51.1440879Z","@mt":"None of the tfms match packages from {PackageName}","@l":"Debug","PackageName":"System.Configuration.ConfigurationManager","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.VisualBasic.MyDotAnalyzer"} +{"@t":"2021-12-08T13:49:51.1440960Z","@mt":"Analyzing packages with {AnalyzerName}","@l":"Debug","AnalyzerName":"Newtonsoft.Json reference analyzer","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.DependencyAnalyzerRunner"} +{"@t":"2021-12-08T13:49:51.1452475Z","@mt":"No package updates needed","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Packages.PackageUpdaterStep"} +{"@t":"2021-12-08T13:49:51.1460646Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Update NuGet Packages","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.1460877Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Add template files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.1510241Z","@mt":"{FilesNeededCount} expected template items needed","FilesNeededCount":0,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Templates.TemplateInserterStep"} +{"@t":"2021-12-08T13:49:51.1518721Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Add template files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.1539050Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Upgrade app config files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.1558868Z","@mt":"Loading config files: {ConfigFiles}","@l":"Debug","ConfigFiles":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\app.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:51.1564712Z","@mt":"Loaded {ConfigCount} config files","@l":"Debug","ConfigCount":1,"SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:51.1745076Z","@mt":"Found app setting {AppSettingName} in {ConfigFilePath}","@l":"Debug","AppSettingName":"api.login.id","ConfigFilePath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\app.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.AppSettingsConfigUpdater"} +{"@t":"2021-12-08T13:49:51.1747862Z","@mt":"Found app setting {AppSettingName} in {ConfigFilePath}","@l":"Debug","AppSettingName":"transaction.key","ConfigFilePath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\app.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.AppSettingsConfigUpdater"} +{"@t":"2021-12-08T13:49:51.1748065Z","@mt":"Found app setting {AppSettingName} in {ConfigFilePath}","@l":"Debug","AppSettingName":"md5.hash.key","ConfigFilePath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\app.config","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.AppSettingsConfigUpdater"} +{"@t":"2021-12-08T13:49:51.1803402Z","@mt":"Found {AppSettingCount} app settings for upgrade: {AppSettingNames}","AppSettingCount":3,"AppSettingNames":"api.login.id, transaction.key, md5.hash.key","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.AppSettingsConfigUpdater"} +{"@t":"2021-12-08T13:49:51.1825805Z","@mt":"Found {ConnectionStringsCount} connection strings for upgrade: {ConnectionStringNames}","ConnectionStringsCount":0,"ConnectionStringNames":"","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.ConnectionStringsConfigUpdater"} +{"@t":"2021-12-08T13:49:51.1852764Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Upgrade app config files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.1854873Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.Updaters.AppSettingsConfigUpdater","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:51.9952378Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Convert Application Settings","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:51.9996221Z","@mt":"Saving changes to project file","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.3953364Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets: (267, 5): Error reading assets file: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.3954020Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.3954129Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.Sdk.DefaultItems.Shared.targets: (190, 5): Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Api\\Controllers\\Test\\AllGeneratedEnumTest.cs'; 'Api\\Controllers\\Test\\ApiCoreTestBase.cs'; 'Api\\Controllers\\Test\\APIInvalidCredentials.cs'; 'Api\\Controllers\\Test\\ArbSubscriptionTest.cs'; 'Api\\Controllers\\Test\\CreateTransactionTest.cs'","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.4522914Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Failure","Message":"Msbuild failed when processing the file 'D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj' with message: C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.CSharp.CurrentVersion.targets: (130, 9): Could not find rule set file \"ManagedMinimumRules.ruleset\".","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.4799821Z","@mt":"[{Level}] Problem loading file in MSBuild workspace {Message}","@l":"Debug","Level":"Warning","Message":"Found project reference without a matching metadata reference: D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\Authorize.NET\\AuthorizeNET.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildWorkspaceUpgradeContext"} +{"@t":"2021-12-08T13:49:52.4827769Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Convert Application Settings","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:52.4842963Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Upgrade app config files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:52.4849835Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Upgrade app config files","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Configuration.ConfigUpdaterStep"} +{"@t":"2021-12-08T13:49:54.4180369Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Update source code","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:54.4200575Z","@mt":"Opening project {ProjectPath}","@l":"Debug","ProjectPath":"D:\\Repos\\4D\\Staccato\\Services\\lib\\authorize.net\\AuthorizeNETtest\\AuthorizeNETtest.csproj","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:54.4218647Z","@mt":"Running analyzers on {ProjectName}","ProjectName":"AuthorizeNETtest","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.RoslynDiagnosticProvider"} +{"@t":"2021-12-08T13:49:56.8685398Z","@mt":"Identified {DiagnosticCount} diagnostics in project {ProjectName}","DiagnosticCount":0,"ProjectName":"AuthorizeNETtest","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.RoslynDiagnosticProvider"} +{"@t":"2021-12-08T13:49:56.8704036Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0001","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8704652Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0002","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8704773Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0005","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8704841Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0006","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8704911Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0007","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8705035Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0008","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8705131Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0010","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8705197Z","@mt":"Identified {DiagnosticCount} fixable {DiagnosticId} diagnostics","@l":"Debug","DiagnosticCount":0,"DiagnosticId":"UA0012","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Source.SourceUpdaterStep"} +{"@t":"2021-12-08T13:49:56.8706040Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Update source code","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:56.8759005Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Move to next project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:56.8771509Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Move to next project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:56.8771846Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.NextProjectStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:58.0328788Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Move to next project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.NextProjectStep"} +{"@t":"2021-12-08T13:49:58.0338780Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Move to next project","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.NextProjectStep"} +{"@t":"2021-12-08T13:49:59.6451957Z","@mt":"Initializing upgrade step {StepTitle}","StepTitle":"Finalize upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:59.6464681Z","@mt":"Step {StepTitle} initialized","@l":"Debug","StepTitle":"Finalize upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:49:59.6464959Z","@mt":"Identified upgrade step {UpgradeStep} as the next step","@l":"Debug","UpgradeStep":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.FinalizeSolutionStep","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:50:01.2574032Z","@mt":"Applying upgrade step {StepTitle}","StepTitle":"Finalize upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.FinalizeSolutionStep"} +{"@t":"2021-12-08T13:50:01.2586180Z","@mt":"Upgrade step {StepTitle} applied successfully","StepTitle":"Finalize upgrade","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Steps.Solution.FinalizeSolutionStep"} +{"@t":"2021-12-08T13:50:02.3760211Z","@mt":"No applicable upgrade steps found","@l":"Debug","SourceContext":"Microsoft.DotNet.UpgradeAssistant.UpgraderManager"} +{"@t":"2021-12-08T13:50:02.3763304Z","@mt":"Upgrade has completed. Please review any changes.","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade"} +{"@t":"2021-12-08T13:50:02.3867868Z","@mt":"Hosting started","@l":"Debug","EventId":{"Id":2,"Name":"Started"},"SourceContext":"Microsoft.Extensions.Hosting.Internal.Host"} +{"@t":"2021-12-08T13:50:02.3897567Z","@mt":"Hosting stopping","@l":"Debug","EventId":{"Id":3,"Name":"Stopping"},"SourceContext":"Microsoft.Extensions.Hosting.Internal.Host"} +{"@t":"2021-12-08T13:50:02.3900165Z","@mt":"Hosting stopped","@l":"Debug","EventId":{"Id":4,"Name":"Stopped"},"SourceContext":"Microsoft.Extensions.Hosting.Internal.Host"} +{"@t":"2021-12-08T13:50:02.3928443Z","@mt":"{Name} extension is unloading","@l":"Debug","Name":"UA_NuGet0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:50:02.3929681Z","@mt":"{Name} extension is unloading","@l":"Debug","Name":"UA_Default0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:50:02.3929856Z","@mt":"{Name} extension is unloading","@l":"Debug","Name":"UA_VB0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:50:02.3929918Z","@mt":"{Name} extension is unloading","@l":"Debug","Name":"UA_Web0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} +{"@t":"2021-12-08T13:50:02.3929979Z","@mt":"{Name} extension is unloading","@l":"Debug","Name":"UA_windows0a4934075c314f1ab464f64b4898c995","SourceContext":"Microsoft.DotNet.UpgradeAssistant.Extensions.ExtensionInstance"} diff --git a/MigrationBackup/293b108f/AuthorizeNETtest/AuthorizeNETtest.csproj b/MigrationBackup/293b108f/AuthorizeNETtest/AuthorizeNETtest.csproj new file mode 100644 index 00000000..9ec10718 --- /dev/null +++ b/MigrationBackup/293b108f/AuthorizeNETtest/AuthorizeNETtest.csproj @@ -0,0 +1,163 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {CDA0D4D8-E4AA-4BEA-8839-04D69607D914} + Library + Properties + AuthorizeNETtest + AuthorizeNETtest + v4.8 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + 3.5 + + + + + AnyCPU + true + full + false + bin/Debug + DEBUG;TRACE + prompt + 4 + 0219,1591,1635 + false + + + AnyCPU + pdbonly + true + bin/Release + TRACE + prompt + 4 + false + + + + ..\packages\NMock3.3.5.44\lib\net40\NMock3.dll + + + ..\NUnit-2.6.3\bin\lib\nunit-console-runner.dll + + + ..\NUnit-2.6.3\bin\lib\nunit.core.dll + + + ..\NUnit-2.6.3\bin\lib\nunit.core.interfaces.dll + + + ..\NUnit-2.6.3\bin\nunit.framework.dll + + + ..\NUnit-2.6.3\bin\lib\nunit.util.dll + + + + + 3.5 + + + + 3.5 + + + + + 3.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {5D52EAEC-42FB-4313-83B8-69E2F55EBF14} + AuthorizeNET + + + + + + Designer + + + + + + + + + + + diff --git a/MigrationBackup/293b108f/AuthorizeNETtest/NuGetUpgradeLog.html b/MigrationBackup/293b108f/AuthorizeNETtest/NuGetUpgradeLog.html new file mode 100644 index 00000000..4cb26a9b --- /dev/null +++ b/MigrationBackup/293b108f/AuthorizeNETtest/NuGetUpgradeLog.html @@ -0,0 +1,162 @@ + + + + + NuGetMigrationLog +

+ NuGet Migration Report - AuthorizeNETtest

Overview

Migration to PackageReference was completed successfully. Please build and run your solution to verify that all packages are available.
+ If you run into any problems, have feedback, questions, or concerns, please + file an issue on the NuGet GitHub repository.
+ Changed files and this report have been backed up here: + D:\Repos\4D\Staccato\Services\lib\authorize.net\MigrationBackup\293b108f\AuthorizeNETtest

Packages processed

Top-level dependencies:

Package IdVersion
NMock3 + v3.5.44

Transitive dependencies:

Package IdVersion
+ No transitive dependencies found. +

Package compatibility issues

Description
+ No issues were found. +
\ No newline at end of file diff --git a/AuthorizeNETtest/packages.config b/MigrationBackup/293b108f/AuthorizeNETtest/packages.config similarity index 100% rename from AuthorizeNETtest/packages.config rename to MigrationBackup/293b108f/AuthorizeNETtest/packages.config diff --git a/NUnit-2.6.3/Logo.ico b/NUnit-2.6.3/Logo.ico deleted file mode 100644 index 13c4ff9d..00000000 Binary files a/NUnit-2.6.3/Logo.ico and /dev/null differ diff --git a/NUnit-2.6.3/bin/NUnitFitTests.html b/NUnit-2.6.3/bin/NUnitFitTests.html deleted file mode 100644 index ca5cd4ff..00000000 --- a/NUnit-2.6.3/bin/NUnitFitTests.html +++ /dev/null @@ -1,277 +0,0 @@ - - - -

NUnit Acceptance Tests

-

- Developers love self-referential programs! Hence, NUnit has always run all it's - own tests, even those that are not really unit tests. -

Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's - FIT framework. At this time, the tests are pretty rudimentary, but it's a start - and it's a framework for doing more. -

Running the Tests

-

Open a console or shell window and navigate to the NUnit bin directory, which - contains this file. To run the test under Microsoft .Net, enter the command -

    runFile NUnitFitTests.html TestResults.html .
- To run it under Mono, enter -
    mono runFile.exe NUnitFitTests.html TestResults.html .
- Note the space and dot at the end of each command. The results of your test - will be in TestResults.html in the same directory. -

Platform and CLR Version

- - - - -
NUnit.Fixtures.PlatformInfo
-

Verify Unit Tests

-

- Load and run the NUnit unit tests, verifying that the results are as expected. - When these tests are run on different platforms, different numbers of tests may - be skipped, so the values for Skipped and Run tests are informational only. -

- The number of tests in each assembly should be constant across all platforms - - any discrepancy usually means that one of the test source files was not - compiled on the platform. There should be no failures and no tests ignored. -

Note: - At the moment, the nunit.extensions.tests assembly is failing because the - fixture doesn't initialize addins in the test domain. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NUnit.Fixtures.AssemblyRunner
AssemblyTests()Run()Skipped()Ignored()Failures()
nunit.framework.tests.dll397  00
nunit.core.tests.dll355  00
nunit.util.tests.dll238  00
nunit.mocks.tests.dll43  00
nunit.extensions.tests.dll5  00
nunit-console.tests.dll40  00
nunit.uikit.tests.dll34  00
nunit-gui.tests.dll15  00
nunit.fixtures.tests.dll6  00
-

Code Snippet Tests

-

- These tests create a test assembly from a snippet of code and then load and run - the tests that it contains, verifying that the structure of the loaded tests is - as expected and that the number of tests run, skipped, ignored or failed is - correct. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NUnit.Fixtures.SnippetRunner
CodeTree()Run()Skipped()Ignored()Failures()
public class TestClass
-{
-}
-
EMPTY0000
using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
-}
-
TestClass0000
using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
-    [Test]
-    public void T1() { }
-    [Test]
-    public void T2() { }
-    [Test]
-    public void T3() { }
-}
-
TestClass
->T1
->T2
->T3
-
3000
using NUnit.Framework;
-
-[TestFixture]
-public class TestClass1
-{
-    [Test]
-    public void T1() { }
-}
-
-[TestFixture]
-public class TestClass2
-{
-    [Test]
-    public void T2() { }
-    [Test]
-    public void T3() { }
-}
-
TestClass1
->T1
-TestClass2
->T2
->T3
-
3000
using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
-    [Test]
-    public void T1() { }
-    [Test, Ignore]
-    public void T2() { }
-    [Test]
-    public void T3() { }
-}
-
TestClass
->T1
->T2
->T3
-
2010
using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
-    [Test]
-    public void T1() { }
-    [Test, Explicit]
-    public void T2() { }
-    [Test]
-    public void T3() { }
-}
-
TestClass
->T1
->T2
->T3
-
2100
-

Summary Information

- - - - -
fit.Summary
- - diff --git a/NUnit-2.6.3/bin/NUnitTests.config b/NUnit-2.6.3/bin/NUnitTests.config deleted file mode 100644 index 72ed67c7..00000000 --- a/NUnit-2.6.3/bin/NUnitTests.config +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/NUnitTests.nunit b/NUnit-2.6.3/bin/NUnitTests.nunit deleted file mode 100644 index 15b98d3f..00000000 --- a/NUnit-2.6.3/bin/NUnitTests.nunit +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/TestResult-net-3.5.xml b/NUnit-2.6.3/bin/TestResult-net-3.5.xml deleted file mode 100644 index 81a5622c..00000000 --- a/NUnit-2.6.3/bin/TestResult-net-3.5.xml +++ /dev/null @@ -1,5991 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/agent.conf b/NUnit-2.6.3/bin/agent.conf deleted file mode 100644 index ddbcd8ea..00000000 --- a/NUnit-2.6.3/bin/agent.conf +++ /dev/null @@ -1,4 +0,0 @@ - - 8080 - . - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/agent.log.conf b/NUnit-2.6.3/bin/agent.log.conf deleted file mode 100644 index b5bcd9da..00000000 --- a/NUnit-2.6.3/bin/agent.log.conf +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/framework/nunit.framework.dll b/NUnit-2.6.3/bin/framework/nunit.framework.dll deleted file mode 100644 index 780727f2..00000000 Binary files a/NUnit-2.6.3/bin/framework/nunit.framework.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/framework/nunit.framework.xml b/NUnit-2.6.3/bin/framework/nunit.framework.xml deleted file mode 100644 index f40847c7..00000000 --- a/NUnit-2.6.3/bin/framework/nunit.framework.xml +++ /dev/null @@ -1,10960 +0,0 @@ - - - - nunit.framework - - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. - - The message to initialize the with. - Arguments to be used in formatting the message - - - - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. - - The message to initialize the with. - - - - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. - - - - - Throws an with the message and arguments - that are passed in. This is used by the other Assert functions. - - The message to initialize the with. - Arguments to be used in formatting the message - - - - Throws an with the message that is - passed in. This is used by the other Assert functions. - - The message to initialize the with. - - - - Throws an . - This is used by the other Assert functions. - - - - - Throws an with the message and arguments - that are passed in. This causes the test to be reported as ignored. - - The message to initialize the with. - Arguments to be used in formatting the message - - - - Throws an with the message that is - passed in. This causes the test to be reported as ignored. - - The message to initialize the with. - - - - Throws an . - This causes the test to be reported as ignored. - - - - - Throws an with the message and arguments - that are passed in. This causes the test to be reported as inconclusive. - - The message to initialize the with. - Arguments to be used in formatting the message - - - - Throws an with the message that is - passed in. This causes the test to be reported as inconclusive. - - The message to initialize the with. - - - - Throws an . - This causes the test to be reported as Inconclusive. - - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. - - A TestDelegate to be executed - A ThrowsConstraint used in the test - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - The actual value to test - A Constraint to be applied - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - The actual value to test - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws a particular exception when called. - - A constraint to be satisfied by the exception - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws a particular exception when called. - - A constraint to be satisfied by the exception - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws a particular exception when called. - - A constraint to be satisfied by the exception - A TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - - - - Verifies that a delegate throws an exception when called - and returns it. - - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws an exception when called - and returns it. - - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws an exception when called - and returns it. - - A TestDelegate - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Verifies that a delegate does not throw an exception. - - A TestDelegate - The message that will be displayed on failure - - - - Verifies that a delegate does not throw an exception. - - A TestDelegate - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display in case of failure - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display in case of failure - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - - - - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - - - - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - The message to display in case of failure - - - - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. - - The object that is to be tested - - - - Verifies that two ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two unsigned ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two unsigned ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two unsigned ints are equal. If they are not, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two unsigned longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two unsigned longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two unsigned longs are equal. If they are not, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two decimals are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two decimals are equal. If they are not, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two decimals are equal. If they are not, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - - - - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - - - - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. - - The value that is expected - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. - - The value that is expected - The actual value - The message to display in case of failure - - - - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. - - The value that is expected - The actual value - - - - Verifies that two ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two unsigned ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two unsigned ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two unsigned ints are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two unsigned longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two unsigned longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two unsigned longs are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two decimals are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two decimals are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two decimals are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two floats are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two floats are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two floats are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two doubles are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two doubles are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - The message to display in case of failure - - - - Verifies that two doubles are not equal. If they are equal, then an - is thrown. - - The expected value - The actual value - - - - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. - - The value that is expected - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. - - The value that is expected - The actual value - The message to display in case of failure - - - - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. - - The value that is expected - The actual value - - - - Asserts that two objects refer to the same object. If they - are not the same an is thrown. - - The expected object - The actual object - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that two objects refer to the same object. If they - are not the same an is thrown. - - The expected object - The actual object - The message to display in case of failure - - - - Asserts that two objects refer to the same object. If they - are not the same an is thrown. - - The expected object - The actual object - - - - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. - - The expected object - The actual object - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. - - The expected object - The actual object - The message to display in case of failure - - - - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. - - The expected object - The actual object - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - The message to display in case of failure - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - The message to display in case of failure - - - - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. - - The value that is to be tested - - - - Assert that a string is empty - that is equal to string.Empty - - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that a string is empty - that is equal to string.Empty - - The string to be tested - The message to display in case of failure - - - - Assert that a string is empty - that is equal to string.Empty - - The string to be tested - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing ICollection - The message to display in case of failure - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing ICollection - - - - Assert that a string is not empty - that is not equal to string.Empty - - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that a string is not empty - that is not equal to string.Empty - - The string to be tested - The message to display in case of failure - - - - Assert that a string is not empty - that is not equal to string.Empty - - The string to be tested - - - - Assert that an array, list or other collection is not empty - - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that an array, list or other collection is not empty - - An array, list or other collection implementing ICollection - The message to display in case of failure - - - - Assert that an array, list or other collection is not empty - - An array, list or other collection implementing ICollection - - - - Assert that a string is either null or equal to string.Empty - - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that a string is either null or equal to string.Empty - - The string to be tested - The message to display in case of failure - - - - Assert that a string is either null or equal to string.Empty - - The string to be tested - - - - Assert that a string is not null or empty - - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Assert that a string is not null or empty - - The string to be tested - The message to display in case of failure - - - - Assert that a string is not null or empty - - The string to be tested - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - - - - Asserts that an object may be assigned a value of a given Type. - - The expected Type. - The object under examination - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - The message to display in case of failure - - - - Asserts that an object may not be assigned a value of a given Type. - - The expected Type. - The object under examination - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is an instance of a given type. - - The expected Type - The object being examined - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - The message to display in case of failure - - - - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - - - - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. - - The first value, expected to be greater - The second value, expected to be less - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - - - - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. - - The first value, expected to be less - The second value, expected to be greater - - - - Asserts that an object is contained in a list. - - The expected object - The list to be examined - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Asserts that an object is contained in a list. - - The expected object - The list to be examined - The message to display in case of failure - - - - Asserts that an object is contained in a list. - - The expected object - The list to be examined - - - - Helper for Assert.AreEqual(double expected, double actual, ...) - allowing code generation to work consistently. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Gets the number of assertions executed so far and - resets the counter to zero. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter names for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns a constraint that tests two items for equality - - - - - Returns a constraint that tests that two references are the same object - - - - - Returns a constraint that tests whether the - actual value is greater than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new ContainsConstraint. This constraint - will, in turn, make use of the appropriate second-level - constraint, depending on the type of the actual argument. - This overload is only used if the item sought is a string, - since any other type implies that we are looking for a - collection member. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. - - - - - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the actual value falls - within a specified range. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. - - - - - Returns a constraint that tests for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - Returns a constraint that tests for NaN - - - - - Returns a constraint that tests for empty - - - - - Returns a constraint that tests whether a collection - contains all unique items. - - - - - Returns a constraint that tests whether an object graph is serializable in binary format. - - - - - Returns a constraint that tests whether an object graph is serializable in xml format. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That. - - The actual value to test - A Constraint to be applied - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That. - - The actual value to test - A Constraint to be applied - The message to be displayed in case of failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That. - - The actual value to test - A Constraint to be applied - The message to be displayed in case of failure - Arguments to use in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to - . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to - . - - The evaluated condition - The message to display if the condition is false - - - - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to . - - The evaluated condition - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - - The actual value to test - A Constraint to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. - - A TestDelegate to be executed - A ThrowsConstraint used in the test - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - Provides static methods to express the assumptions - that must be met for a test to give a meaningful - result. If an assumption is not met, the test - should produce an inconclusive result. - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - - - - Asserts that a condition is true. If the condition is false the - method throws an . - - The evaluated condition - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - - - - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. - - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. - - A TestDelegate to be executed - A ThrowsConstraint used in the test - - - - Waits for pending asynchronous operations to complete, if appropriate, - and returns a proper result of the invocation by unwrapping task results - - The raw result of the method invocation - The unwrapped result, if necessary - - - - A set of Assert methods operationg on one or more collections - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - Asserts that all items contained in collection are of the type specified by expectedType. - - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - - - - Asserts that all items contained in collection are of the type specified by expectedType. - - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure - - - - Asserts that all items contained in collection are of the type specified by expectedType. - - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that all items contained in collection are not equal to null. - - IEnumerable containing objects to be considered - - - - Asserts that all items contained in collection are not equal to null. - - IEnumerable containing objects to be considered - The message that will be displayed on failure - - - - Asserts that all items contained in collection are not equal to null. - - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Ensures that every object contained in collection exists within the collection - once and only once. - - IEnumerable of objects to be considered - - - - Ensures that every object contained in collection exists within the collection - once and only once. - - IEnumerable of objects to be considered - The message that will be displayed on failure - - - - Ensures that every object contained in collection exists within the collection - once and only once. - - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - - - - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - - - - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are not exactly equal. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - - - - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - - - - Asserts that expected and actual are not exactly equal. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - - - - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - - - - Asserts that expected and actual are not exactly equal. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that expected and actual are not equivalent. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - - - - Asserts that expected and actual are not equivalent. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - - - - Asserts that expected and actual are not equivalent. - - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that collection contains actual as an item. - - IEnumerable of objects to be considered - Object to be found within collection - - - - Asserts that collection contains actual as an item. - - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure - - - - Asserts that collection contains actual as an item. - - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that collection does not contain actual as an item. - - IEnumerable of objects to be considered - Object that cannot exist within collection - - - - Asserts that collection does not contain actual as an item. - - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure - - - - Asserts that collection does not contain actual as an item. - - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that superset is not a subject of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that superset is not a subject of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - - - - Asserts that superset is not a subject of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that superset is a subset of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that superset is a subset of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - - - - Asserts that superset is a subset of subset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - - - - Assert that an array,list or other collection is empty - - An array, list or other collection implementing IEnumerable - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message - - - - Assert that an array, list or other collection is empty - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - - - - Assert that an array,list or other collection is empty - - An array, list or other collection implementing IEnumerable - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure - Arguments to be used in formatting the message - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure - - - - Assert that an array, list or other collection is ordered - - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Summary description for DirectoryAssert - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. - - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory containing the value that is expected - A directory containing the actual value - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal - Arguments to be used in formatting the message - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal - - - - Asserts that two directories are not equal. If they are equal - an is thrown. - - A directory path string containing the value that is expected - A directory path string containing the actual value - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - The message to display if directories are not equal - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - The message to display if directories are not equal - - - - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - The message to display if directories are not equal - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - The message to display if directories are not equal - - - - Asserts that the directory is not empty. If it is empty - an is thrown. - - A directory to search - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - - - - Asserts that path contains actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - - - - Asserts that path does not contain actual as a subdirectory or - an is thrown. - - A directory to search - sub-directory asserted to exist under directory - - - - Summary description for FileAssert. - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. - - - - - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The expected Stream - The actual Stream - The message to display if Streams are not equal - Arguments to be used in formatting the message - - - - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The expected Stream - The actual Stream - The message to display if objects are not equal - - - - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The expected Stream - The actual Stream - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - A file containing the value that is expected - A file containing the actual value - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal - - - - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - - - - Asserts that two Streams are not equal. If they are equal - an is thrown. - - The expected Stream - The actual Stream - The message to be displayed when the two Stream are the same. - Arguments to be used in formatting the message - - - - Asserts that two Streams are not equal. If they are equal - an is thrown. - - The expected Stream - The actual Stream - The message to be displayed when the Streams are the same. - - - - Asserts that two Streams are not equal. If they are equal - an is thrown. - - The expected Stream - The actual Stream - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - A file containing the value that is expected - A file containing the actual value - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal - - - - Asserts that two files are not equal. If they are equal - an is thrown. - - The path to a file containing the value that is expected - The path to a file containing the actual value - - - - GlobalSettings is a place for setting default values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Class used to guard against unexpected argument values - by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. - - - - - Interface implemented by a user fixture in order to - validate any expected exceptions. It is only called - for test methods marked with the ExpectedException - attribute. - - - - - Method to handle an expected exception - - The exception to be handled - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a constraint that tests two items for equality - - - - - Returns a constraint that tests that two references are the same object - - - - - Returns a constraint that tests whether the - actual value is greater than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the actual value falls - within a specified range. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - Returns a constraint that tests for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - Returns a constraint that tests for NaN - - - - - Returns a constraint that tests for empty - - - - - Returns a constraint that tests whether a collection - contains all unique items. - - - - - Returns a constraint that tests whether an object graph is serializable in binary format. - - - - - Returns a constraint that tests whether an object graph is serializable in xml format. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - NOTE: This interface is used in both the framework - and the core, even though that results in two different - types. However, sharing the source code guarantees that - the various implementations will be compatible and that - the core is able to reflect successfully over the - framework implementations of ITestCaseData. - - - - - Gets the argument list to be provided to the test - - - - - Gets the expected result - - - - - Indicates whether a result has been specified. - This is necessary because the result may be - null, so it's value cannot be checked. - - - - - Gets the expected exception Type - - - - - Gets the FullName of the expected exception - - - - - Gets the name to be used for the test - - - - - Gets the description of the test - - - - - Gets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets a value indicating whether this is explicit. - - true if explicit; otherwise, false. - - - - Gets the ignore reason. - - The ignore reason. - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - The List class is a helper class with properties and methods - that supply a number of constraints used with lists and collections. - - - - - List.Map returns a ListMapper, which can be used to map - the original collection to another collection. - - - - - - - ListMapper is used to transform a collection used as an actual argument - producing another collection to be used in the assertion. - - - - - Construct a ListMapper based on a collection - - The collection to be transformed - - - - Produces a collection containing all the values of a property - - The collection of property values - - - - - Randomizer returns a set of random values in a repeatable - way, to allow re-running of tests if necessary. - - - - - Get a randomizer for a particular member, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. - - - - - Get a randomizer for a particular parameter, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. - - - - - Construct a randomizer using a random seed - - - - - Construct a randomizer using a specified seed - - - - - Return an array of random doubles between 0.0 and 1.0. - - - - - - - Return an array of random doubles with values in a specified range. - - - - - Return an array of random ints with values in a specified range. - - - - - Get a random seed for use in creating a randomizer. - - - - - The SpecialValue enum is used to represent TestCase arguments - that cannot be used as arguments to an Attribute. - - - - - Null represents a null value, which cannot be used as an - argument to an attribute under .NET 1.x - - - - - Basic Asserts on strings. - - - - - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - - - - - - - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - - - - - - - Asserts that a string is found within another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string is found within another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string is found within another string. - - The expected string - The string to be examined - - - - Asserts that a string is not found within another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string is found within another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string is found within another string. - - The expected string - The string to be examined - - - - Asserts that a string starts with another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string starts with another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string starts with another string. - - The expected string - The string to be examined - - - - Asserts that a string does not start with another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string does not start with another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string does not start with another string. - - The expected string - The string to be examined - - - - Asserts that a string ends with another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string ends with another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string ends with another string. - - The expected string - The string to be examined - - - - Asserts that a string does not end with another string. - - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string does not end with another string. - - The expected string - The string to be examined - The message to display in case of failure - - - - Asserts that a string does not end with another string. - - The expected string - The string to be examined - - - - Asserts that two strings are equal, without regard to case. - - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that two strings are equal, without regard to case. - - The expected string - The actual string - The message to display in case of failure - - - - Asserts that two strings are equal, without regard to case. - - The expected string - The actual string - - - - Asserts that two strings are not equal, without regard to case. - - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that two strings are Notequal, without regard to case. - - The expected string - The actual string - The message to display in case of failure - - - - Asserts that two strings are not equal, without regard to case. - - The expected string - The actual string - - - - Asserts that a string matches an expected regular expression pattern. - - The regex pattern to be matched - The actual string - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string matches an expected regular expression pattern. - - The regex pattern to be matched - The actual string - The message to display in case of failure - - - - Asserts that a string matches an expected regular expression pattern. - - The regex pattern to be matched - The actual string - - - - Asserts that a string does not match an expected regular expression pattern. - - The regex pattern to be used - The actual string - The message to display in case of failure - Arguments used in formatting the message - - - - Asserts that a string does not match an expected regular expression pattern. - - The regex pattern to be used - The actual string - The message to display in case of failure - - - - Asserts that a string does not match an expected regular expression pattern. - - The regex pattern to be used - The actual string - - - - The TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It provides a number of instance modifiers - for use in initializing the test case. - - Note: Instance modifiers are getters that return - the same instance after modifying it's state. - - - - - The argument list to be provided to the test - - - - - The expected result to be returned - - - - - Set to true if this has an expected result - - - - - The expected exception Type - - - - - The FullName of the expected exception - - - - - The name to be used for the test - - - - - The description of the test - - - - - A dictionary of properties, used to add information - to tests without requiring the class to change. - - - - - If true, indicates that the test case is to be ignored - - - - - If true, indicates that the test case is marked explicit - - - - - The reason for ignoring a test case - - - - - Initializes a new instance of the class. - - The arguments. - - - - Initializes a new instance of the class. - - The argument. - - - - Initializes a new instance of the class. - - The first argument. - The second argument. - - - - Initializes a new instance of the class. - - The first argument. - The second argument. - The third argument. - - - - Sets the expected result for the test - - The expected result - A modified TestCaseData - - - - Sets the expected exception type for the test - - Type of the expected exception. - The modified TestCaseData instance - - - - Sets the expected exception type for the test - - FullName of the expected exception. - The modified TestCaseData instance - - - - Sets the name of the test case - - The modified TestCaseData instance - - - - Sets the description for the test case - being constructed. - - The description. - The modified TestCaseData instance. - - - - Applies a category to the test - - - - - - - Applies a named property to the test - - - - - - - - Applies a named property to the test - - - - - - - - Applies a named property to the test - - - - - - - - Ignores this TestCase. - - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Marks this TestCase as Explicit - - - - - - Marks this TestCase as Explicit, specifying the reason. - - The reason. - - - - - Gets the argument list to be provided to the test - - - - - Gets the expected result - - - - - Returns true if the result has been set - - - - - Gets the expected exception Type - - - - - Gets the FullName of the expected exception - - - - - Gets the name to be used for the test - - - - - Gets the description of the test - - - - - Gets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets a value indicating whether this is explicit. - - true if explicit; otherwise, false. - - - - Gets the ignore reason. - - The ignore reason. - - - - Gets a list of categories associated with this test. - - - - - Gets the property dictionary for this test - - - - - Provide the context information of the current test - - - - - Constructs a TestContext using the provided context dictionary - - A context dictionary - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TestAdapter representing the currently executing test in this context. - - - - - Gets a ResultAdapter representing the current result for the test - executing in this context. - - - - - Gets the directory containing the current test assembly. - - - - - Gets the directory to be used for outputing files created - by this test run. - - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Constructs a TestAdapter for this context - - The context dictionary - - - - The name of the test. - - - - - The FullName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a context - - The context holding the result - - - - The TestState of current test. This maps to the ResultState - used in nunit.core and is subject to change in the future. - - - - - The TestStatus of current test. This enum will be used - in future versions of NUnit and so is to be preferred - to the TestState value. - - - - - Provides details about a test - - - - - Creates an instance of TestDetails - - The fixture that the test is a member of, if available. - The method that implements the test, if available. - The full name of the test. - A string representing the type of test, e.g. "Test Case". - Indicates if the test represents a suite of tests. - - - - The fixture that the test is a member of, if available. - - - - - The method that implements the test, if available. - - - - - The full name of the test. - - - - - A string representing the type of test, e.g. "Test Case". - - - - - Indicates if the test represents a suite of tests. - - - - - The ResultState enum indicates the result of running a test - - - - - The result is inconclusive - - - - - The test was not runnable. - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - Helper class with static methods used to supply constraints - that operate on strings. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. - - - - - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - TextMessageWriter writes constraint descriptions and messages - in displayable form as a text stream. It tailors the display - of individual message components to form the standard message - format of NUnit assertion failure messages. - - - - - MessageWriter is the abstract base for classes that write - constraint descriptions and messages in some form. The - class has separate methods for writing various components - of a message, allowing implementations to tailor the - presentation as needed. - - - - - Construct a MessageWriter given a culture - - - - - Method to write single line message with optional args, usually - written to precede the general failure message. - - The message to be written - Any arguments used in formatting the message - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. - - The indentation level of the message - The message to be written - Any arguments used in formatting the message - - - - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. - - The constraint that failed - - - - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. - - The expected value - The actual value causing the failure - - - - Display Expected and Actual lines for given values, including - a tolerance value on the Expected line. - - The expected value - The actual value causing the failure - The tolerance within which the test was made - - - - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. - - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in locating the point where the strings differ - If true, the strings should be clipped to fit the line - - - - Writes the text for a connector. - - The connector. - - - - Writes the text for a predicate. - - The predicate. - - - - Writes the text for an expected value. - - The expected value. - - - - Writes the text for a modifier - - The modifier. - - - - Writes the text for an actual value. - - The actual value. - - - - Writes the text for a generalized value. - - The value. - - - - Writes the text for a collection value, - starting at a particular point, to a max length - - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write - - - - Abstract method to get the max line length - - - - - Prefix used for the expected value line of a message - - - - - Prefix used for the actual value line of a message - - - - - Length of a message prefix - - - - - Construct a TextMessageWriter - - - - - Construct a TextMessageWriter, specifying a user message - and optional formatting arguments. - - - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. - - The indentation level of the message - The message to be written - Any arguments used in formatting the message - - - - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. - - The constraint that failed - - - - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. - - The expected value - The actual value causing the failure - - - - Display Expected and Actual lines for given values, including - a tolerance value on the expected line. - - The expected value - The actual value causing the failure - The tolerance within which the test was made - - - - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. - - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in string comparisons - If true, clip the strings to fit the max line length - - - - Writes the text for a connector. - - The connector. - - - - Writes the text for a predicate. - - The predicate. - - - - Write the text for a modifier. - - The modifier. - - - - Writes the text for an expected value. - - The expected value. - - - - Writes the text for an actual value. - - The actual value. - - - - Writes the text for a generalized value. - - The value. - - - - Writes the text for a collection value, - starting at a particular point, to a max length - - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write - - - - Write the generic 'Expected' line for a constraint - - The constraint that failed - - - - Write the generic 'Expected' line for a given value - - The expected value - - - - Write the generic 'Expected' line for a given value - and tolerance. - - The expected value - The tolerance within which the test was made - - - - Write the generic 'Actual' line for a constraint - - The constraint for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - Gets or sets the maximum line length for this writer - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - Creates a constraint specifying the exact type of exception expected - - - - - Creates a constraint specifying the exact type of exception expected - - - - - Creates a constraint specifying the type of exception expected - - - - - Creates a constraint specifying the type of exception expected - - - - - Creates a constraint specifying an expected exception - - - - - Creates a constraint specifying an exception with a given InnerException - - - - - Creates a constraint specifying an expected TargetInvocationException - - - - - Creates a constraint specifying an expected TargetInvocationException - - - - - Creates a constraint specifying an expected TargetInvocationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - Attribute used to apply a category to a test - - - - - The name of the category - - - - - Construct attribute for a given category based on - a name. The name may not contain the characters ',', - '+', '-' or '!'. However, this is not checked in the - constructor since it would cause an error to arise at - as the test was loaded without giving a clear indication - of where the problem is located. The error is handled - in NUnitFramework.cs by marking the test as not - runnable. - - The name of the category - - - - Protected constructor uses the Type name as the name - of the category. - - - - - The name of the category - - - - - Used to mark a field for use as a datapoint when executing a theory - within the same fixture that requires an argument of the field's Type. - - - - - Used to mark an array as containing a set of datapoints to be used - executing a theory within the same fixture that requires an argument - of the Type of the array elements. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct the attribute - - Text describing the test - - - - Gets the test description - - - - - Enumeration indicating how the expected message parameter is to be used - - - - Expect an exact match - - - Expect a message containing the parameter string - - - Match the regular expression provided as a parameter - - - Expect a message that starts with the parameter string - - - - ExpectedExceptionAttribute - - - - - - Constructor for a non-specific exception - - - - - Constructor for a given type of exception - - The type of the expected exception - - - - Constructor for a given exception name - - The full name of the expected exception - - - - Gets or sets the expected exception type - - - - - Gets or sets the full Type name of the expected exception - - - - - Gets or sets the expected message text - - - - - Gets or sets the user message displayed in case of failure - - - - - Gets or sets the type of match to be performed on the expected message - - - - - Gets the name of a method to be used as an exception handler - - - - - ExplicitAttribute marks a test or test fixture so that it will - only be run if explicitly executed from the gui or command line - or if it is included by use of a filter. The test will not be - run simply because an enclosing suite is run. - - - - - Default constructor - - - - - Constructor with a reason - - The reason test is marked explicit - - - - The reason test is marked explicit - - - - - Attribute used to mark a test that is to be ignored. - Ignored tests result in a warning message when the - tests are run. - - - - - Constructs the attribute without giving a reason - for ignoring the test. - - - - - Constructs the attribute giving a reason for ignoring the test - - The reason for ignoring the test - - - - The reason for ignoring a test - - - - - Abstract base for Attributes that are used to include tests - in the test run based on environmental settings. - - - - - Constructor with no included items specified, for use - with named property syntax. - - - - - Constructor taking one or more included items - - Comma-delimited list of included items - - - - Name of the item that is needed in order for - a test to run. Multiple itemss may be given, - separated by a comma. - - - - - Name of the item to be excluded. Multiple items - may be given, separated by a comma. - - - - - The reason for including or excluding the test - - - - - PlatformAttribute is used to mark a test fixture or an - individual method as applying to a particular platform only. - - - - - Constructor with no platforms specified, for use - with named property syntax. - - - - - Constructor taking one or more platforms - - Comma-deliminted list of platforms - - - - CultureAttribute is used to mark a test fixture or an - individual method as applying to a particular Culture only. - - - - - Constructor with no cultures specified, for use - with named property syntax. - - - - - Constructor taking one or more cultures - - Comma-deliminted list of cultures - - - - Marks a test to use a combinatorial join of any argument data - provided. NUnit will create a test case for every combination of - the arguments provided. This can result in a large number of test - cases and so should be used judiciously. This is the default join - type, so the attribute need not be used except as documentation. - - - - - PropertyAttribute is used to attach information to a test as a name/value pair.. - - - - - Construct a PropertyAttribute with a name and string value - - The name of the property - The property value - - - - Construct a PropertyAttribute with a name and int value - - The name of the property - The property value - - - - Construct a PropertyAttribute with a name and double value - - The name of the property - The property value - - - - Constructor for derived classes that set the - property dictionary directly. - - - - - Constructor for use by derived classes that use the - name of the type as the property name. Derived classes - must ensure that the Type of the property value is - a standard type supported by the BCL. Any custom - types will cause a serialization Exception when - in the client. - - - - - Gets the property dictionary for this attribute - - - - - Default constructor - - - - - Marks a test to use pairwise join of any argument data provided. - NUnit will attempt too excercise every pair of argument values at - least once, using as small a number of test cases as it can. With - only two arguments, this is the same as a combinatorial join. - - - - - Default constructor - - - - - Marks a test to use a sequential join of any argument data - provided. NUnit will use arguements for each parameter in - sequence, generating test cases up to the largest number - of argument values provided and using null for any arguments - for which it runs out of values. Normally, this should be - used with the same number of arguments for each parameter. - - - - - Default constructor - - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - RandomAttribute is used to supply a set of random values - to a single parameter of a parameterized test. - - - - - ValuesAttribute is used to provide literal arguments for - an individual parameter of a test. - - - - - Abstract base class for attributes that apply to parameters - and supply data for the parameter. - - - - - Gets the data to be provided to the specified parameter - - - - - The collection of data to be returned. Must - be set by any derived attribute classes. - We use an object[] so that the individual - elements may have their type changed in GetData - if necessary. - - - - - Construct with one argument - - - - - - Construct with two arguments - - - - - - - Construct with three arguments - - - - - - - - Construct with an array of arguments - - - - - - Get the collection of values to be used as arguments - - - - - Construct a set of doubles from 0.0 to 1.0, - specifying only the count. - - - - - - Construct a set of doubles from min to max - - - - - - - - Construct a set of ints from min to max - - - - - - - - Get the collection of values to be used as arguments - - - - - RangeAttribute is used to supply a range of values to an - individual parameter of a parameterized test. - - - - - Construct a range of ints using default step of 1 - - - - - - - Construct a range of ints specifying the step size - - - - - - - - Construct a range of longs - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - RepeatAttribute may be applied to test case in order - to run it multiple times. - - - - - Construct a RepeatAttribute - - The number of times to run the test - - - - RequiredAddinAttribute may be used to indicate the names of any addins - that must be present in order to run some or all of the tests in an - assembly. If the addin is not loaded, the entire assembly is marked - as NotRunnable. - - - - - Initializes a new instance of the class. - - The required addin. - - - - Gets the name of required addin. - - The required addin name. - - - - Summary description for SetCultureAttribute. - - - - - Construct given the name of a culture - - - - - - Summary description for SetUICultureAttribute. - - - - - Construct given the name of a culture - - - - - - SetUpAttribute is used in a TestFixture to identify a method - that is called immediately before each test is run. It is - also used in a SetUpFixture to identify the method that is - called once, before any of the subordinate tests are run. - - - - - Attribute used to mark a class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - Attribute used to mark a static (shared in VB) property - that returns a list of tests. - - - - - Attribute used in a TestFixture to identify a method that is - called immediately after each test is run. It is also used - in a SetUpFixture to identify the method that is called once, - after all subordinate tests have run. In either case, the method - is guaranteed to be called, even if an exception is thrown. - - - - - Provide actions to execute before and after tests. - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - Provides details about the test that is going to be run. - - - - Executed after each test is run - - Provides details about the test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. - - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - Construct a TestCaseAttribute with a list of arguments. - This constructor is not CLS-Compliant - - - - - - Construct a TestCaseAttribute with a single argument - - - - - - Construct a TestCaseAttribute with a two arguments - - - - - - - Construct a TestCaseAttribute with a three arguments - - - - - - - - Gets the list of arguments to a test case - - - - - Gets or sets the expected result. Use - ExpectedResult by preference. - - The result. - - - - Gets or sets the expected result. - - The result. - - - - Gets a flag indicating whether an expected - result has been set. - - - - - Gets a list of categories associated with this test; - - - - - Gets or sets the category associated with this test. - May be a single category or a comma-separated list. - - - - - Gets or sets the expected exception. - - The expected exception. - - - - Gets or sets the name the expected exception. - - The expected name of the exception. - - - - Gets or sets the expected message of the expected exception - - The expected message of the exception. - - - - Gets or sets the type of match to be performed on the expected message - - - - - Gets or sets the description. - - The description. - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the ignored status of the test - - - - - Gets or sets the ignored status of the test - - - - - Gets or sets the explicit status of the test - - - - - Gets or sets the reason for not running the test - - - - - Gets or sets the reason for not running the test. - Set has the side effect of marking the test as ignored. - - The ignore reason. - - - - FactoryAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the data source, which must - be a property, field or method of the test class itself. - - An array of the names of the factories that will provide data - - - - Construct with a Type, which must implement IEnumerable - - The Type that will provide data - - - - Construct with a Type and name. - that don't support params arrays. - - The Type that will provide data - The name of the method, property or field that will provide data - - - - The name of a the method, property or fiend to be used as a source - - - - - A Type to be used as a source - - - - - Gets or sets the category associated with this test. - May be a single category or a comma-separated list. - - - - - [TestFixture] - public class ExampleClass - {} - - - - - Default constructor - - - - - Construct with a object[] representing a set of arguments. - In .NET 2.0, the arguments may later be separated into - type arguments and constructor arguments. - - - - - - Descriptive text for this fixture - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Gets a list of categories for this fixture - - - - - The arguments originally provided to the attribute - - - - - Gets or sets a value indicating whether this should be ignored. - - true if ignore; otherwise, false. - - - - Gets or sets the ignore reason. May set Ignored as a side effect. - - The ignore reason. - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Attribute used to identify a method that is - called before any tests in a fixture are run. - - - - - Attribute used to identify a method that is called after - all the tests in a fixture have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. - - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - - - - - Used on a method, marks the test with a timeout value in milliseconds. - The test will be run in a separate thread and is cancelled if the timeout - is exceeded. Used on a method or assembly, sets the default timeout - for all contained test methods. - - - - - Construct a TimeoutAttribute given a time in milliseconds - - The timeout value in milliseconds - - - - Marks a test that must run in the STA, causing it - to run in a separate thread if necessary. - - On methods, you may also use STAThreadAttribute - to serve the same purpose. - - - - - Construct a RequiresSTAAttribute - - - - - Marks a test that must run in the MTA, causing it - to run in a separate thread if necessary. - - On methods, you may also use MTAThreadAttribute - to serve the same purpose. - - - - - Construct a RequiresMTAAttribute - - - - - Marks a test that must run on a separate thread. - - - - - Construct a RequiresThreadAttribute - - - - - Construct a RequiresThreadAttribute, specifying the apartment - - - - - ValueSourceAttribute indicates the source to be used to - provide data for one parameter of a test method. - - - - - Construct with the name of the factory - for use with languages - that don't support params arrays. - - The name of the data source to be used - - - - Construct with a Type and name - for use with languages - that don't support params arrays. - - The Type that will provide data - The name of the method, property or field that will provide data - - - - The name of a the method, property or fiend to be used as a source - - - - - A Type to be used as a source - - - - - AllItemsConstraint applies another constraint to each - item in a collection, succeeding if they all succeed. - - - - - Abstract base class used for prefixes - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - The IConstraintExpression interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - Static UnsetObject used to detect derived constraints - failing to set the actual value. - - - - - The actual value being tested against a constraint - - - - - The display name of this Constraint for use by ToString() - - - - - Argument fields used by ToString(); - - - - - The builder holding this constraint - - - - - Construct a constraint with no arguments - - - - - Construct a constraint with one argument - - - - - Construct a constraint with two arguments - - - - - Sets the ConstraintBuilder holding this constraint - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the constraint and the actual value to the writer, which - then displays the constraint description and the value. - - Constraints that need to provide additional details, - such as where the error occured can override this. - - The MessageWriter on which to display the message - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Test whether the constraint is satisfied by an - ActualValueDelegate that returns the value to be tested. - The default implementation simply evaluates the delegate - but derived classes may override it to provide for delayed - processing. - - An - True for success, false for failure - - - - Test whether the constraint is satisfied by a given reference. - The default implementation simply dereferences the value but - derived classes may override it to provide for delayed processing. - - A reference to the value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - Default override of ToString returns the constraint DisplayName - followed by any arguments within angle brackets. - - - - - - Returns the string representation of this constraint - - - - - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. - - - - - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. - - - - - This operator creates a constraint that is satisfied if the - argument constraint is not satisfied. - - - - - Returns a DelayedConstraint with the specified delay time. - - The delay in milliseconds. - - - - - Returns a DelayedConstraint with the specified delay time - and polling interval. - - The delay in milliseconds. - The interval at which to test the constraint. - - - - - The display name of this Constraint for use by ToString(). - The default value is the name of the constraint with - trailing "Constraint" removed. Derived classes may set - this to another name in their constructors. - - - - - Returns a ConstraintExpression by appending And - to the current constraint. - - - - - Returns a ConstraintExpression by appending And - to the current constraint. - - - - - Returns a ConstraintExpression by appending Or - to the current constraint. - - - - - Class used to detect any derived constraints - that fail to set the actual value in their - Matches override. - - - - - The base constraint - - - - - Construct given a base constraint - - - - - - Construct an AllItemsConstraint on top of an existing constraint - - - - - - Apply the item constraint to each item in the collection, - failing if any item fails. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - AndConstraint succeeds only if both members succeed. - - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Apply both member constraints to an actual value, succeeding - succeeding only if both of them succeed. - - The actual value - True if the constraints both succeeded - - - - Write a description for this contraint to a MessageWriter - - The MessageWriter to receive the description - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - Construct a TypeConstraint for a given Type - - - - - - Write the actual value for a failing constraint test to a - MessageWriter. TypeConstraints override this method to write - the name of the type. - - The writer on which the actual value is displayed - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Test whether an object can be assigned from the specified type - - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. - - - - Write a description of this constraint to a MessageWriter - - The MessageWriter to use - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Test whether an object can be assigned to the specified type - - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. - - - - Write a description of this constraint to a MessageWriter - - The MessageWriter to use - - - - AttributeConstraint tests that a specified attribute is present - on a Type or other provider and that the value of the attribute - satisfies some other constraint. - - - - - Constructs an AttributeConstraint for a specified attriute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Writes a description of the attribute to the specified writer. - - - - - Writes the actual value supplied to the specified writer. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - Writes the description of the constraint to the specified writer - - - - - BasicConstraint is the abstract base for constraints that - perform a simple comparison to a constant value. - - - - - Initializes a new instance of the class. - - The expected. - The description. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - BinarySerializableConstraint tests whether - an object is serializable in binary format. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - Returns the string representation - - - - - CollectionConstraint is the abstract base class for - constraints that operate on collections. - - - - - Construct an empty CollectionConstraint - - - - - Construct a CollectionConstraint - - - - - - Determines whether the specified enumerable is empty. - - The enumerable. - - true if the specified enumerable is empty; otherwise, false. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Protected method to be implemented by derived classes - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - CollectionItemsEqualConstraint is the abstract base class for all - collection constraints that apply some notion of item equality - as a part of their operation. - - - - - Construct an empty CollectionConstraint - - - - - Construct a CollectionConstraint - - - - - - Flag the constraint to use the supplied EqualityAdapter. - NOTE: For internal use only. - - The EqualityAdapter to use. - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied Comparison object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - Flag the constraint to ignore case and return self. - - - - - Construct a CollectionContainsConstraint - - - - - - Test whether the expected item is contained in the collection - - - - - - - Write a descripton of the constraint to a MessageWriter - - - - - - CollectionEquivalentCOnstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - Test whether two collections are equivalent - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - Modifies the constraint to use an IComparer and returns self. - - - - - Modifies the constraint to use an IComparer<T> and returns self. - - - - - Modifies the constraint to use a Comparison<T> and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - Test whether the collection is ordered - - - - - - - Write a description of the constraint to a MessageWriter - - - - - - Returns the string representation of the constraint. - - - - - - If used performs a reverse comparison - - - - - CollectionSubsetConstraint is used to determine whether - one collection is a subset of another - - - - - Construct a CollectionSubsetConstraint - - The collection that the actual value is expected to be a subset of - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - CollectionTally counts (tallies) the number of - occurences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - Try to remove an object from the tally - - The object to remove - True if successful, false if the object was not found - - - - Try to remove a set of objects from the tally - - The objects to remove - True if successful, false if any object was not found - - - - The number of objects remaining in the tally - - - - - ComparisonAdapter class centralizes all comparisons of - values in NUnit, adapting to the use of any provided - IComparer, IComparer<T> or Comparison<T> - - - - - Returns a ComparisonAdapter that wraps an IComparer - - - - - Returns a ComparisonAdapter that wraps an IComparer<T> - - - - - Returns a ComparisonAdapter that wraps a Comparison<T> - - - - - Compares two objects - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Construct a ComparisonAdapter for an IComparer - - - - - Compares two objects - - - - - - - - Construct a default ComparisonAdapter - - - - - ComparisonAdapter<T> extends ComparisonAdapter and - allows use of an IComparer<T> or Comparison<T> - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an IComparer<T> - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a Comparison<T> - - - - - Compare a Type T to an object - - - - - Abstract base class for constraints that compare values to - determine if one is greater than, equal to or less than - the other. This class supplies the Using modifiers. - - - - - ComparisonAdapter to be used in making the comparison - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Modifies the constraint to use an IComparer and returns self - - - - - Modifies the constraint to use an IComparer<T> and returns self - - - - - Modifies the constraint to use a Comparison<T> and returns self - - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - ConstraintBuilder maintains the stacks that are used in - processing a ConstraintExpression. An OperatorStack - is used to hold operators that are waiting for their - operands to be reognized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - Initializes a new instance of the class. - - - - - Appends the specified operator to the expression by first - reducing the operator stack and then pushing the new - operator on the stack. - - The operator to push. - - - - Appends the specified constraint to the expresson by pushing - it on the constraint stack. - - The constraint to push. - - - - Sets the top operator right context. - - The right context. - - - - Reduces the operator stack until the topmost item - precedence is greater than or equal to the target precedence. - - The target precedence. - - - - Resolves this instance, returning a Constraint. If the builder - is not currently in a resolvable state, an exception is thrown. - - The resolved constraint - - - - Gets a value indicating whether this instance is resolvable. - - - true if this instance is resolvable; otherwise, false. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The builder. - - - - Pushes the specified operator onto the stack. - - The op. - - - - Pops the topmost operator from the stack. - - - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - The top. - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The builder. - - - - Pushes the specified constraint. As a side effect, - the constraint's builder field is set to the - ConstraintBuilder owning this stack. - - The constraint. - - - - Pops this topmost constrait from the stack. - As a side effect, the constraint's builder - field is set to null. - - - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost constraint without modifying the stack. - - The topmost constraint - - - - ConstraintExpression represents a compound constraint in the - process of being constructed from a series of syntactic elements. - - Individual elements are appended to the expression as they are - reognized. Once an actual Constraint is appended, the expression - returns a resolvable Constraint. - - - - - ConstraintExpressionBase is the abstract base class for the - ConstraintExpression class, which represents a - compound constraint in the process of being constructed - from a series of syntactic elements. - - NOTE: ConstraintExpressionBase is separate because the - ConstraintExpression class was generated in earlier - versions of NUnit. The two classes may be combined - in a future version. - - - - - The ConstraintBuilder holding the elements recognized so far - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. - - The builder. - - - - Returns a string representation of the expression as it - currently stands. This should only be used for testing, - since it has the side-effect of resolving the expression. - - - - - - Appends an operator to the expression and returns the - resulting expression itself. - - - - - Appends a self-resolving operator to the expression and - returns a new ResolvableConstraintExpression. - - - - - Appends a constraint to the expression and returns that - constraint, which is associated with the current state - of the expression being built. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. - - The builder. - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. - - - - - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. - - - - - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. - - - - - Returns a constraint that tests two items for equality - - - - - Returns a constraint that tests that two references are the same object - - - - - Returns a constraint that tests whether the - actual value is greater than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new ContainsConstraint. This constraint - will, in turn, make use of the appropriate second-level - constraint, depending on the type of the actual argument. - This overload is only used if the item sought is a string, - since any other type implies that we are looking for a - collection member. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. - - - - - Returns a constraint that tests whether the actual value falls - within a specified range. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. - - - - - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. - - - - - With is currently a NOP - reserved for future use. - - - - - Returns a constraint that tests for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - Returns a constraint that tests for NaN - - - - - Returns a constraint that tests for empty - - - - - Returns a constraint that tests whether a collection - contains all unique items. - - - - - Returns a constraint that tests whether an object graph is serializable in binary format. - - - - - Returns a constraint that tests whether an object graph is serializable in xml format. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - ContainsConstraint tests a whether a string contains a substring - or a collection contains an object. It postpones the decision of - which test to use until the type of the actual argument is known. - This allows testing whether a string is contained in a collection - or as a substring of another string using the same syntax. - - - - - Initializes a new instance of the class. - - The expected. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied Comparison object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to ignore case and return self. - - - - - Applies a delay to the match so that a match can be evaluated in the future. - - - - - Creates a new DelayedConstraint - - The inner constraint two decorate - The time interval after which the match is performed - If the value of is less than 0 - - - - Creates a new DelayedConstraint - - The inner constraint two decorate - The time interval after which the match is performed - The time interval used for polling - If the value of is less than 0 - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for if the base constraint fails, false if it succeeds - - - - Test whether the constraint is satisfied by a delegate - - The delegate whose value is to be tested - True for if the base constraint fails, false if it succeeds - - - - Test whether the constraint is satisfied by a given reference. - Overridden to wait for the specified delay period before - calling the base constraint with the dereferenced value. - - A reference to the value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a MessageWriter. - - The writer on which the actual value is displayed - - - - Returns the string representation of the constraint. - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - Check that the collection is empty - - - - - - - Write the constraint description to a MessageWriter - - - - - - EmptyConstraint tests a whether a string or collection is empty, - postponing the decision about which test is applied until the - type of the actual argument is known. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - EmptyDirectoryConstraint is used to test that a directory is empty - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - EmptyStringConstraint tests whether a string is empty. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - EndsWithConstraint can test whether a string ends - with an expected substring. - - - - - StringConstraint is the abstract base for constraints - that operate on strings. It supports the IgnoreCase - modifier for string operations. - - - - - The expected value - - - - - Indicates whether tests should be case-insensitive - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Test whether the constraint is satisfied by a given string - - The string to be tested - True for success, false for failure - - - - Modify the constraint to ignore case in matching. - - - - - Initializes a new instance of the class. - - The expected string - - - - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. - - - - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - EqualConstraint is able to compare an actual value with the - expected value provided in its constructor. Two objects are - considered equal if both are null, or if both have the same - value. NUnit has special semantics for some object types. - - - - - If true, strings in error messages will be clipped - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied Comparison object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Flag the constraint to use the supplied IEqualityComparer object. - - The IComparer object to use. - Self. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - The MessageWriter to write to - - - - Write description of this constraint - - The MessageWriter to write to - - - - Display the failure information for two collections that did not match. - - The MessageWriter on which to display - The expected collection. - The actual collection - The depth of this failure in a set of nested collections - - - - Displays a single line showing the types and sizes of the expected - and actual enumerations, collections or arrays. If both are identical, - the value is only shown once. - - The MessageWriter on which to display - The expected collection or array - The actual collection or array - The indentation level for the message line - - - - Displays a single line showing the point in the expected and actual - arrays at which the comparison failed. If the arrays have different - structures or dimensions, both values are shown. - - The MessageWriter on which to display - The expected array - The actual array - Index of the failure point in the underlying collections - The indentation level for the message line - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - Flag the constraint to ignore case and return self. - - - - - Flag the constraint to suppress string clipping - and return self. - - - - - Flag the constraint to compare arrays as collections - and return self. - - - - - Switches the .Within() modifier to interpret its tolerance as - a distance in representable values (see remarks). - - Self. - - Ulp stands for "unit in the last place" and describes the minimum - amount a given value can change. For any integers, an ulp is 1 whole - digit. For floating point values, the accuracy of which is better - for smaller numbers and worse for larger numbers, an ulp depends - on the size of the number. Using ulps for comparison of floating - point results instead of fixed tolerances is safer because it will - automatically compensate for the added inaccuracy of larger numbers. - - - - - Switches the .Within() modifier to interpret its tolerance as - a percentage that the actual values is allowed to deviate from - the expected value. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in days. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in hours. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in minutes. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in seconds. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in milliseconds. - - Self - - - - Causes the tolerance to be interpreted as a TimeSpan in clock ticks. - - Self - - - - EqualityAdapter class handles all equality comparisons - that use an IEqualityComparer, IEqualityComparer<T> - or a ComparisonAdapter. - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an EqualityAdapter that wraps an IComparer. - - - - - Returns an EqualityAdapter that wraps an IEqualityComparer. - - - - - Returns an EqualityAdapter that wraps an IEqualityComparer<T>. - - - - - Returns an EqualityAdapter that wraps an IComparer<T>. - - - - - Returns an EqualityAdapter that wraps a Comparison<T>. - - - - - EqualityAdapter that wraps an IComparer. - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - EqualityAdapter that wraps an IComparer. - - - - - EqualityAdapterList represents a list of EqualityAdapters - in a common class across platforms. - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - ExactTypeConstraint is used to test that an object - is of the exact type provided in the constructor - - - - - Construct an ExactTypeConstraint for a given Type - - The expected Type. - - - - Test that an object is of the exact type specified - - The actual value. - True if the tested object is of the exact type provided, otherwise false. - - - - Write the description of this constraint to a MessageWriter - - The MessageWriter to use - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Write the actual value for a failing constraint test to a - MessageWriter. Overriden to write additional information - in the case of an Exception. - - The MessageWriter to use - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - FailurePointList represents a set of FailurePoints - in a cross-platform way. - - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - Helper routines for working with floating point numbers - - - The floating point comparison code is based on this excellent article: - http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm - - - "ULP" means Unit in the Last Place and in the context of this library refers to - the distance between two adjacent floating point numbers. IEEE floating point - numbers can only represent a finite subset of natural numbers, with greater - accuracy for smaller numbers and lower accuracy for very large numbers. - - - If a comparison is allowed "2 ulps" of deviation, that means the values are - allowed to deviate by up to 2 adjacent floating point values, which might be - as low as 0.0000001 for small numbers or as high as 10.0 for large numbers. - - - - - Compares two floating point values for equality - First floating point value to be compared - Second floating point value t be compared - - Maximum number of representable floating point values that are allowed to - be between the left and the right floating point values - - True if both numbers are equal or close to being equal - - - Floating point values can only represent a finite subset of natural numbers. - For example, the values 2.00000000 and 2.00000024 can be stored in a float, - but nothing inbetween them. - - - This comparison will count how many possible floating point values are between - the left and the right number. If the number of possible values between both - numbers is less than or equal to maxUlps, then the numbers are considered as - being equal. - - - Implementation partially follows the code outlined here: - http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ - - - - - Compares two double precision floating point values for equality - First double precision floating point value to be compared - Second double precision floating point value t be compared - - Maximum number of representable double precision floating point values that are - allowed to be between the left and the right double precision floating point values - - True if both numbers are equal or close to being equal - - - Double precision floating point values can only represent a limited series of - natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004 - can be stored in a double, but nothing inbetween them. - - - This comparison will count how many possible double precision floating point - values are between the left and the right number. If the number of possible - values between both numbers is less than or equal to maxUlps, then the numbers - are considered as being equal. - - - Implementation partially follows the code outlined here: - http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ - - - - - - Reinterprets the memory contents of a floating point value as an integer value - - - Floating point value whose memory contents to reinterpret - - - The memory contents of the floating point value interpreted as an integer - - - - - Reinterprets the memory contents of a double precision floating point - value as an integer value - - - Double precision floating point value whose memory contents to reinterpret - - - The memory contents of the double precision floating point value - interpreted as an integer - - - - - Reinterprets the memory contents of an integer as a floating point value - - Integer value whose memory contents to reinterpret - - The memory contents of the integer value interpreted as a floating point value - - - - - Reinterprets the memory contents of an integer value as a double precision - floating point value - - Integer whose memory contents to reinterpret - - The memory contents of the integer interpreted as a double precision - floating point value - - - - Union of a floating point variable and an integer - - - The union's value as a floating point variable - - - The union's value as an integer - - - The union's value as an unsigned integer - - - Union of a double precision floating point variable and a long - - - The union's value as a double precision floating point variable - - - The union's value as a long - - - The union's value as an unsigned long - - - - Tests whether a value is greater than the value supplied to its constructor - - - - - The value against which a comparison is to be made - - - - - Initializes a new instance of the class. - - The expected value. - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Tests whether a value is greater than or equal to the value supplied to its constructor - - - - - The value against which a comparison is to be made - - - - - Initializes a new instance of the class. - - The expected value. - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - InstanceOfTypeConstraint is used to test that an object - is of the same type provided or derived from it. - - - - - Construct an InstanceOfTypeConstraint for the type provided - - The expected Type - - - - Test whether an object is of the specified type or a derived type - - The object to be tested - True if the object is of the provided type or derives from it, otherwise false. - - - - Write a description of this constraint to a MessageWriter - - The MessageWriter to use - - - - Tests whether a value is less than the value supplied to its constructor - - - - - The value against which a comparison is to be made - - - - - Initializes a new instance of the class. - - The expected value. - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Tests whether a value is less than or equal to the value supplied to its constructor - - - - - The value against which a comparison is to be made - - - - - Initializes a new instance of the class. - - The expected value. - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Returns the representation of a type as used in NUnitLite. - This is the same as Type.ToString() except for arrays, - which are displayed with their declared sizes. - - - - - - - Converts any control characters in a string - to their escaped representation. - - The string to be converted - The converted string - - - - Return the a string representation for a set of indices into an array - - Array of indices for which a string is needed - - - - Get an array of indices representing the point in a enumerable, - collection or array corresponding to a single int index into the - collection. - - The collection to which the indices apply - Index in the collection - Array of indices - - - - Clip a string to a given length, starting at a particular offset, returning the clipped - string with ellipses representing the removed parts - - The string to be clipped - The maximum permitted length of the result string - The point at which to start clipping - The clipped string - - - - Clip the expected and actual strings in a coordinated fashion, - so that they may be displayed together. - - - - - - - - - Shows the position two strings start to differ. Comparison - starts at the start index. - - The expected string - The actual string - The index in the strings at which comparison should start - Boolean indicating whether case should be ignored - -1 if no mismatch found, or the index where mismatch found - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - Test that the actual value is an NaN - - - - - - - Write the constraint description to a specified writer - - - - - - NoItemConstraint applies another constraint to each - item in a collection, failing if any of them succeeds. - - - - - Construct a NoItemConstraint on top of an existing constraint - - - - - - Apply the item constraint to each item in the collection, - failing if any item fails. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - NotConstraint negates the effect of some other constraint - - - - - Initializes a new instance of the class. - - The base constraint to be negated. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for if the base constraint fails, false if it succeeds - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a MessageWriter. - - The writer on which the actual value is displayed - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - NullEmptyStringConstraint tests whether a string is either null or empty. - - - - - Constructs a new NullOrEmptyStringConstraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - The Numerics class contains common operations on numeric values. - - - - - Checks the type of the object, returning true if - the object is a numeric type. - - The object to check - true if the object is a numeric type - - - - Checks the type of the object, returning true if - the object is a floating point numeric type. - - The object to check - true if the object is a floating point numeric type - - - - Checks the type of the object, returning true if - the object is a fixed point numeric type. - - The object to check - true if the object is a fixed point numeric type - - - - Test two numeric values for equality, performing the usual numeric - conversions and using a provided or default tolerance. If the tolerance - provided is Empty, this method may set it to a default tolerance. - - The expected value - The actual value - A reference to the tolerance in effect - True if the values are equal - - - - Compare two numeric values, performing the usual numeric conversions. - - The expected value - The actual value - The relationship of the values to each other - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Compares two objects - - - - - - - - Returns the default NUnitComparer. - - - - - Generic version of NUnitComparer - - - - - - Compare two objects of the same type - - - - - NUnitEqualityComparer encapsulates NUnit's handling of - equality tests between objects. - - - - - - - - - - Compares two objects for equality within a tolerance - - The first object to compare - The second object to compare - The tolerance to use in the comparison - - - - - If true, all string comparisons will ignore case - - - - - If true, arrays will be treated as collections, allowing - those of different dimensions to be compared - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occured. - - - - - RecursionDetector used to check for recursion when - evaluating self-referencing enumerables. - - - - - Compares two objects for equality within a tolerance, setting - the tolerance to the actual tolerance used if an empty - tolerance is supplied. - - - - - Helper method to compare two arrays - - - - - Method to compare two DirectoryInfo objects - - first directory to compare - second directory to compare - true if equivalent, false if not - - - - Returns the default NUnitEqualityComparer - - - - - Gets and sets a flag indicating whether case should - be ignored in determining equality. - - - - - Gets and sets a flag indicating that arrays should be - compared as collections, without regard to their shape. - - - - - Gets the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - RecursionDetector detects when a comparison - between two enumerables has reached a point - where the same objects that were previously - compared are again being compared. This allows - the caller to stop the comparison if desired. - - - - - Check whether two objects have previously - been compared, returning true if they have. - The two objects are remembered, so that a - second call will always return true. - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Apply the member constraints to an actual value, succeeding - succeeding as soon as one of them succeeds. - - The actual value - True if either constraint succeeded - - - - Write a description for this contraint to a MessageWriter - - The MessageWriter to receive the description - - - - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. - - - - - The expected path used in the constraint - - - - - Flag indicating whether a caseInsensitive comparison should be made - - - - - Construct a PathConstraint for a give expected path - - The expected path - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns true if the expected path and actual path match - - - - - Returns the string representation of this constraint - - - - - Transform the provided path to its canonical form so that it - may be more easily be compared with other paths. - - The original path - The path in canonical form - - - - Test whether one path in canonical form is under another. - - The first path - supposed to be the parent path - The second path - supposed to be the child path - Indicates whether case should be ignored - - - - - Modifies the current instance to be case-insensitve - and returns it. - - - - - Modifies the current instance to be case-sensitve - and returns it. - - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Writes the description to a MessageWriter - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained constraint. - - - - - Initializes a new instance of the class. - - The name. - The constraint to apply to the property. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - Returns the string representation of the constraint. - - - - - - PropertyExistsConstraint tests that a named property - exists on the object provided through Match. - - Originally, PropertyConstraint provided this feature - in addition to making optional tests on the vaue - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. - - The writer on which the actual value is displayed - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two values are within a - specified range. - - - - - Initializes a new instance of the class. - - From. - To. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - RegexConstraint can test whether a string matches - the pattern provided. - - - - - Initializes a new instance of the class. - - The pattern. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - ResolvableConstraintExpression is used to represent a compound - constraint being constructed at a point where the last operator - may either terminate the expression or may have additional - qualifying constraints added to it. - - It is used, for example, for a Property element or for - an Exception element, either of which may be optionally - followed by constraints that apply to the property or - exception. - - - - - Create a new instance of ResolvableConstraintExpression - - - - - Create a new instance of ResolvableConstraintExpression, - passing in a pre-populated ConstraintBuilder. - - - - - Resolve the current expression to a Constraint - - - - - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. - - - - - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. - - - - - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. - - - - - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. - - - - - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. - - - - - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. - - - - - This operator creates a constraint that is satisfied if the - argument constraint is not satisfied. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns the string representation of the constraint. - - A string representing the constraint - - - - Resolves the ReusableConstraint by returning the constraint - that it originally wrapped. - - A resolved constraint - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Summary description for SamePathConstraint. - - - - - Initializes a new instance of the class. - - The expected path - - - - Test whether the constraint is satisfied by a given value - - The expected path - The actual path - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - SamePathOrUnderConstraint tests that one path is under another - - - - - Initializes a new instance of the class. - - The expected path - - - - Test whether the constraint is satisfied by a given value - - The expected path - The actual path - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - SomeItemsConstraint applies another constraint to each - item in a collection, succeeding if any of them succeeds. - - - - - Construct a SomeItemsConstraint on top of an existing constraint - - - - - - Apply the item constraint to each item in the collection, - succeeding if any item succeeds. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - StartsWithConstraint can test whether a string starts - with an expected substring. - - - - - Initializes a new instance of the class. - - The expected string - - - - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. - - - - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - SubPathConstraint tests that the actual path is under the expected path - - - - - Initializes a new instance of the class. - - The expected path - - - - Test whether the constraint is satisfied by a given value - - The expected path - The actual path - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - SubstringConstraint can test whether a string contains - the expected substring. - - - - - Initializes a new instance of the class. - - The expected. - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - ThrowsConstraint is used to test the exception thrown by - a delegate by applying a constraint to it. - - - - - Initializes a new instance of the class, - using a constraint to be applied to the exception. - - A constraint to apply to the caught exception. - - - - Executes the code of the delegate and captures any exception. - If a non-null base constraint was provided, it applies that - constraint to the exception. - - A delegate representing the code to be tested - True if an exception is thrown and the constraint succeeds, otherwise false - - - - Converts an ActualValueDelegate to a TestDelegate - before calling the primary overload. - - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - Returns the string representation of this constraint - - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. Overridden in ThrowsNothingConstraint to write - information about the exception that was actually caught. - - The writer on which the actual value is displayed - - - - The Tolerance class generalizes the notion of a tolerance - within which an equality test succeeds. Normally, it is - used with numeric types, but it can be used with any - type that supports taking a difference between two - objects and comparing that difference to a value. - - - - - Constructs a linear tolerance of a specdified amount - - - - - Constructs a tolerance given an amount and ToleranceMode - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - Returns an empty Tolerance object, equivalent to - specifying no tolerance. In most cases, it results - in an exact match but for floats and doubles a - default tolerance may be used. - - - - - Returns a zero Tolerance object, equivalent to - specifying an exact match. - - - - - Gets the ToleranceMode for the current Tolerance - - - - - Gets the value of the current Tolerance instance. - - - - - Returns a new tolerance, using the current amount as a percentage. - - - - - Returns a new tolerance, using the current amount in Ulps. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance is empty. - - - - - Modes in which the tolerance value for a comparison can be interpreted. - - - - - The tolerance was created with a value, without specifying - how the value would be used. This is used to prevent setting - the mode more than once and is generally changed to Linear - upon execution of the test. - - - - - The tolerance is used as a numeric range within which - two compared values are considered to be equal. - - - - - Interprets the tolerance as the percentage by which - the two compared values my deviate from each other. - - - - - Compares two values based in their distance in - representable numbers. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - Check that all items are unique. - - - - - - - Write a description of this constraint to a MessageWriter - - - - - - XmlSerializableConstraint tests whether - an object is serializable in XML format. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. - - The writer on which the actual value is displayed - - - - Returns the string representation of this constraint - - - - - Represents a constraint that succeeds if all the - members of a collection match a base constraint. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - PrefixOperator takes a single constraint and modifies - it's action in some way. - - - - - The ConstraintOperator class is used internally by a - ConstraintBuilder to represent an operator that - modifies or combines constraints. - - Constraint operators use left and right precedence - values to determine whether the top operator on the - stack should be reduced before pushing a new operator. - - - - - The precedence value used when the operator - is about to be pushed to the stack. - - - - - The precedence value used when the operator - is on the top of the stack. - - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - - The syntax element preceding this operator - - - - - The syntax element folowing this operator - - - - - The precedence value used when the operator - is about to be pushed to the stack. - - - - - The precedence value used when the operator - is on the top of the stack. - - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - - Returns the constraint created by applying this - prefix to another constraint. - - - - - - - Constructs a CollectionOperator - - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - they all succeed. - - - - - Operator that requires both it's arguments to succeed - - - - - Abstract base class for all binary operators - - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - Operator that tests for the presence of a particular attribute - on a type and optionally applies further tests to the attribute. - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - Construct an AttributeOperator for a particular Type - - The Type of attribute tested - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. - - - - - Represents a constraint that succeeds if none of the - members of a collection match a base constraint. - - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - Operator used to test for the presence of a named Property - on an object and optionally apply further tests to the - value of that property. - - - - - Constructs a PropOperator for a particular named property - - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - - Gets the name of the property to which the operator applies - - - - - Represents a constraint that succeeds if any of the - members of a collection match a base constraint. - - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - any of them succeed. - - - - - Operator that tests that an exception is thrown and - optionally applies further tests to the exception. - - - - - Construct a ThrowsOperator - - - - - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifes the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - Thrown when an assertion failed. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Thrown when a test executes inconclusively. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - - - - - - - Compares two objects of a given Type for equality within a tolerance - - The first object to compare - The second object to compare - The tolerance to use in the comparison - - - - diff --git a/NUnit-2.6.3/bin/framework/nunit.mocks.dll b/NUnit-2.6.3/bin/framework/nunit.mocks.dll deleted file mode 100644 index 50393b3f..00000000 Binary files a/NUnit-2.6.3/bin/framework/nunit.mocks.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/framework/pnunit.framework.dll b/NUnit-2.6.3/bin/framework/pnunit.framework.dll deleted file mode 100644 index 573b9fcb..00000000 Binary files a/NUnit-2.6.3/bin/framework/pnunit.framework.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/launcher.log.conf b/NUnit-2.6.3/bin/launcher.log.conf deleted file mode 100644 index b5bcd9da..00000000 --- a/NUnit-2.6.3/bin/launcher.log.conf +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/lib/Images/Ellipsis.gif b/NUnit-2.6.3/bin/lib/Images/Ellipsis.gif deleted file mode 100644 index e11f26b6..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Ellipsis.gif and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Failure.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Failure.jpg deleted file mode 100644 index c245548b..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Failure.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Ignored.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Ignored.jpg deleted file mode 100644 index 0549b705..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Ignored.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Inconclusive.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Inconclusive.jpg deleted file mode 100644 index 8d36153c..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Inconclusive.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Skipped.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Skipped.jpg deleted file mode 100644 index 3d84255c..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Skipped.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Success.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Success.jpg deleted file mode 100644 index 15ec1b7f..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Circles/Success.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Failure.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Failure.jpg deleted file mode 100644 index 658905fd..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Failure.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Ignored.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Ignored.jpg deleted file mode 100644 index 95b7fdbd..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Ignored.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Inconclusive.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Inconclusive.jpg deleted file mode 100644 index 32a0ff72..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Inconclusive.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Skipped.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Skipped.jpg deleted file mode 100644 index 3d84255c..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Skipped.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Success.jpg b/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Success.jpg deleted file mode 100644 index 3d8e7609..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Classic/Success.jpg and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Failure.png b/NUnit-2.6.3/bin/lib/Images/Tree/Default/Failure.png deleted file mode 100644 index 2e400b27..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Failure.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Ignored.png b/NUnit-2.6.3/bin/lib/Images/Tree/Default/Ignored.png deleted file mode 100644 index 05715cbb..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Ignored.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Inconclusive.png b/NUnit-2.6.3/bin/lib/Images/Tree/Default/Inconclusive.png deleted file mode 100644 index 4807b7ce..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Inconclusive.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Skipped.png b/NUnit-2.6.3/bin/lib/Images/Tree/Default/Skipped.png deleted file mode 100644 index 7c9fc64e..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Skipped.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Success.png b/NUnit-2.6.3/bin/lib/Images/Tree/Default/Success.png deleted file mode 100644 index 2a301508..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Default/Success.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Failure.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Failure.png deleted file mode 100644 index ba03e848..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Failure.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Ignored.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Ignored.png deleted file mode 100644 index 9271d6e7..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Ignored.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Inconclusive.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Inconclusive.png deleted file mode 100644 index 76219b5c..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Inconclusive.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/SeriousWarning.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/SeriousWarning.png deleted file mode 100644 index 6a578cca..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/SeriousWarning.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Skipped.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Skipped.png deleted file mode 100644 index 7c9fc64e..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Skipped.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Success.png b/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Success.png deleted file mode 100644 index 346fe8f9..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/Tree/Visual Studio/Success.png and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/pinned.gif b/NUnit-2.6.3/bin/lib/Images/pinned.gif deleted file mode 100644 index cb07448d..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/pinned.gif and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Images/unpinned.gif b/NUnit-2.6.3/bin/lib/Images/unpinned.gif deleted file mode 100644 index f25fbb53..00000000 Binary files a/NUnit-2.6.3/bin/lib/Images/unpinned.gif and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/NSubstitute.dll b/NUnit-2.6.3/bin/lib/NSubstitute.dll deleted file mode 100644 index fba0966c..00000000 Binary files a/NUnit-2.6.3/bin/lib/NSubstitute.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/NSubstitute.xml b/NUnit-2.6.3/bin/lib/NSubstitute.xml deleted file mode 100644 index 4bd55c1c..00000000 --- a/NUnit-2.6.3/bin/lib/NSubstitute.xml +++ /dev/null @@ -1,259 +0,0 @@ - - - - NSubstitute - - - - - Argument matchers used for specifying calls to substitutes. - - - - - Match any argument value compatible with type . - - - - - - - Match argument that is equal to . - - - - - - - - Match argument that satisfies . - If the throws an exception for an argument it will be treated as non-matching. - - - - - - - - Invoke any argument as soon as a matching call is made to the substitute. - - - - - - Invoke any argument with specified argument as soon as a matching call is made to the substitute. - - - - - - - - Invoke any argument with specified arguments as soon as a matching call is made to the substitute. - - - - - - - - - - Invoke any argument with specified arguments as soon as a matching call is made to the substitute. - - - - - - - - - - - - Invoke any argument with specified arguments as soon as a matching call is made to the substitute. - - - - - - - - - - - - - - Invoke any argument with specified arguments as soon as a matching call is made to the substitute. - - - Arguments to pass to delegate. - - - - - Capture any argument compatible with type and use it to call the function - as soon as a matching call is made to the substitute. - - - - - - - - Provides a specification for arguments for use with . - Can additionally implement to give descriptions when arguments do not match. - - - - - Checks whether the satisfies the condition of the matcher. - If this throws an exception the argument will be treated as non-matching. - - - - - - - Describes how the does not match the condition specified by this class, or - if a detailed description can not be provided for the argument. - - - Description of the non-match, or if no description can be provided. - - - - Combines two enumerables into a new enumerable using the given selector. - - - - - - - - - - This implementation was sanity-checked against the - Edulinq implementation and - Eric Lippert's implementation. - - - - - Checks if the instance can be used when a is expected. - - - - - - - - Join the using . - - - - - - - - Delegates to ThreadLocal<T>, but wraps Value property access in try/catch to swallow ObjectDisposedExceptions. - These can occur if the Value property is accessed from the finalizer thread. Because we can't detect this, we'll - just swallow the exception (the finalizer thread won't be using any of the values from thread local storage anyway). - - - - - - Provides a specification for arguments for use with . - Can additionally implement to give descriptions when arguments do not match. - - Matches arguments of type or compatible type. - - - - Checks whether the satisfies the condition of the matcher. - If this throws an exception the argument will be treated as non-matching. - - - - - - - Raise an event for an EventHandler<TEventArgs> event with the provided and . - - - - - Raise an event for an EventHandler<TEventArgs> event with the substitute as the sender and the provided . - - - - - Raise an event for an EventHandler<EventArgsT> event with the substitute as the sender - and with a default instance of . - - - - - Raise an event for an EventHandler or EventHandler<EventArgs> event with the substitute - as the sender and with empty EventArgs. - - - - - Raise an event of type with the provided arguments. If no arguments are provided - NSubstitute will try and provide reasonble defaults. - - - - - Create a substitute for one or more types. For example: Substitute.For<ISomeType>() - - - - - Substitute for an interface or class. - Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members - can be recorded or have return values specified. - - The type of interface or class to substitute. - Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors. - A substitute for the interface or class. - - - - Substitute for multiple interfaces or a class that implements an interface. At most one class can be specified. - Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members - can be recorded or have return values specified. - - The type of interface or class to substitute. - An additional interface or class (maximum of one class) the substitute should implement. - Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors. - A substitute of type T1, that also implements T2. - - - - Substitute for multiple interfaces or a class that implements multiple interfaces. At most one class can be specified. - If additional interfaces are required use the overload. - Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members - can be recorded or have return values specified. - - The type of interface or class to substitute. - An additional interface or class (maximum of one class) the substitute should implement. - An additional interface or class (maximum of one class) the substitute should implement. - Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors. - A substitute of type T1, that also implements T2 and T3. - - - - Substitute for multiple interfaces or a class that implements multiple interfaces. At most one class can be specified. - Be careful when specifying a class, as all non-virtual members will actually be executed. Only virtual members - can be recorded or have return values specified. - - The types of interfaces or a type of class and multiple interfaces the substitute should implement. - Arguments required to construct a class being substituted. Not required for interfaces or classes with default constructors. - A substitute implementing the specified types. - - - diff --git a/NUnit-2.6.3/bin/lib/Rhino.Mocks.dll b/NUnit-2.6.3/bin/lib/Rhino.Mocks.dll deleted file mode 100644 index 3fc4b2ae..00000000 Binary files a/NUnit-2.6.3/bin/lib/Rhino.Mocks.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/Rhino.Mocks.xml b/NUnit-2.6.3/bin/lib/Rhino.Mocks.xml deleted file mode 100644 index f9b8912b..00000000 --- a/NUnit-2.6.3/bin/lib/Rhino.Mocks.xml +++ /dev/null @@ -1,5413 +0,0 @@ - - - - Rhino.Mocks - - - - - Defines constraints and return values for arguments of a mock. - Only use Arg inside a method call on a mock that is recording. - Example: - ExpectCall( - mock.foo( - Arg<int>.Is.GreaterThan(2), - Arg<string>.Is.Anything - )); - Use Arg.Text for string specific constraints - Use Arg<ListClass>.List for list specific constraints - - - - - - Register the predicate as a constraint for the current call. - - The predicate. - default(T) - - Allow you to use code to create constraints - - demo.AssertWasCalled(x => x.Bar(Arg{string}.Matches(a => a.StartsWith("b") && a.Contains("ba")))); - - - - - - Define a complex constraint for this argument by passing several constraints - combined with operators. (Use Is in simple cases.) - Example: Arg<string>.Matches(Is.Equal("Hello") || Text.EndsWith("u")); - - Constraints using Is, Text and List - Dummy to satisfy the compiler - - - - Define a Ref argument. - - Constraints for this argument - value returned by the mock - - - - - Define a out parameter. Use it together with the keyword out and use the - Dummy field available by the return value. - Example: mock.foo( out Arg<string>.Out("hello").Dummy ); - - - - - - - Define a simple constraint for this argument. (Use Matches in simple cases.) - Example: - Arg<int>.Is.Anthing - Arg<string>.Is.Equal("hello") - - - - - Define Constraints on list arguments. - - - - - Use the Arg class (without generic) to define Text constraints - - - - - Evaluate an equal constraint for . - - The object the parameter should equal to - - - - Define constraints on text arguments. - - - - - Used to manage the static state of the Arg<T> class"/> - - - - - Resets the static state - - - - - Returns return values for the out and ref parameters - Note: the array returned has the size of the number of out and ref - argument definitions - - - - - - Returns the constraints for all arguments. - Out arguments have an Is.Anything constraint and are also in the list. - - - - - - What should BackToRecord clear - - - - - Retain all expectations and behaviors and return to mock - - - - - All expectations - - - - - Event subscribers for this instance - - - - - Methods that should be forwarded to the base class implementation - - - - - Properties that should behave like properties - - - - - Remove all the behavior of the object - - - - - Interface for constraints - - - - - Determines if the object pass the constraints - - - - - And operator for constraints - - - - - Not operator for constraints - - - - - Or operator for constraints - - - - - Allow overriding of || or && - - - - - - - Allow overriding of || or && - - - - - - - Gets the message for this constraint - - - - - - Constrain that the public field has a specified value - - - - - Constrain that the public field matches another constraint. - - - - - Creates a new instance. - - Name of the public field. - Constraint to place on the public field value. - - - - Creates a new instance, specifying a disambiguating - for the public field. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - Constraint to place on the public field value. - - - - Determines if the object passes the constraint. - - - - - Gets the message for this constraint - - - - - - Creates a new instance. - - Name of the public field. - Expected value. - - - - Creates a new instance, specifying a disambiguating - for the public field. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - Expected value. - - - - Constrain that the property has a specified value - - - - - Constrain that the property matches another constraint. - - - - - Creates a new instance. - - Name of the property. - Constraint to place on the property value. - - - - Creates a new instance, specifying a disambiguating - for the property. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - Constraint to place on the property value. - - - - Determines if the object passes the constraint. - - - - - Gets the message for this constraint - - - - - - Creates a new instance. - - Name of the property. - Expected value. - - - - Creates a new instance, specifying a disambiguating - for the property. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - Expected value. - - - - Constrain that the parameter must be of the specified type - - - - - Creates a new instance. - - Type. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that determines whether an object is the same object as another. - - - - - Creates a new instance. - - Obj. - - - - Determines if the object passes the constraints. - - - - - Gets the message for this constraint. - - - - - Evaluate a parameter using constraints - - - - - Create new instance - - - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - A constraint based on lambda expression, we are using Expression{T} - because we want to be able to get good error reporting on that. - - - - - Initializes a new instance of the class. - - The expr. - - - - Determines if the object pass the constraints - - - - - - - Gets the message for this constraint - - - - - - Constrain that the list contains the same items as the parameter list - - - - - Creates a new instance. - - In list. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constrain that the parameter is one of the items in the list - - - - - Creates a new instance. - - In list. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constrain that the object is inside the parameter list - - - - - Creates a new instance. - - In list. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Applies another AbstractConstraint to the collection count. - - - - - Creates a new instance. - - The constraint that should be applied to the collection count. - - - - Determines if the parameter conforms to this constraint. - - - - - Gets the message for this constraint. - - - - - Applies another AbstractConstraint to a specific list element. - - - - - Creates a new instance. - - The zero-based index of the list element. - The constraint that should be applied to the list element. - - - - Determines if the parameter conforms to this constraint. - - - - - Gets the message for this constraint - - - - - - Applies another AbstractConstraint to a specific generic keyed list element. - - - - - Creates a new instance. - - The key of the list element. - The constraint that should be applied to the list element. - - - - Determines if the parameter conforms to this constraint. - - - - - Gets the message for this constraint - - - - - - Constrains that all elements are in the parameter list - - - - - Initializes a new instance of the class. - - The these. - - - - Determines if the object pass the constraints - - - - - - - Gets the message for this constraint - - - - - - Combines two constraints, constraint pass if either is fine. - - - - - Creates a new instance. - - C1. - C2. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Negate a constraint - - - - - Creates a new instance. - - C1. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Combines two constraints - - - - - - Creates a new instance. - - C1. - C2. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constrain the argument to validate according to regex pattern - - - - - Creates a new instance. - - Pattern. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that evaluate whatever an argument contains the specified string. - - - - - Creates a new instance. - - Inner string. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that evaluate whatever an argument ends with the specified string - - - - - Creates a new instance. - - End. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that evaluate whatever an argument start with the specified string - - - - - Creates a new instance. - - Start. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that evaluate whatever an object equals another - - - - - Creates a new instance. - - Obj. - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that always returns true - - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Constraint that evaluate whatever a comparable is greater than another - - - - - Creates a new instance. - - - - - Determines if the object pass the constraints - - - - - Gets the message for this constraint - - - - - - Initializes a new constraint object. - - The expected object, The actual object is passed in as a parameter to the method - - - - Evaluate this constraint. - - The actual object that was passed in the method call to the mock. - True when the constraint is met, else false. - - - - Checks if the properties of the object - are the same as the properies of the object. - - The expected object - The actual object - True when both objects have the same values, else False. - - - - - - - - - This is the real heart of the beast. - - - - Used by CheckReferenceType to check all properties of the reference type. - - The expected object - The actual object - True when both objects have the same values, else False. - - - - Used by CheckReferenceType to check all fields of the reference type. - - The expected object - The actual object - True when both objects have the same values, else False. - - - - Checks the items of both collections - - The expected collection - - True if both collections contain the same items in the same order. - - - - Builds a propertyname from the Stack _properties like 'Order.Product.Price' - to be used in the error message. - - A nested property name. - - - - Rhino.Mocks uses this property to generate an error message. - - - A message telling the tester why the constraint failed. - - - - - Provides access to the constraintes defined in the class to be used in context - with the syntax. - - The type of the argument - - - - Evaluate a greater than constraint for . - - The object the parameter should be greater than - - - - Evaluate a less than constraint for . - - The object the parameter should be less than - - - - Evaluate a less than or equal constraint for . - - The object the parameter should be less than or equal to - - - - Evaluate a greater than or equal constraint for . - - The object the parameter should be greater than or equal to - - - - Evaluate an equal constraint for . - - The object the parameter should equal to - - - - Evaluate a not equal constraint for . - - The object the parameter should not equal to - - - - Evaluate a same as constraint. - - The object the parameter should the same as. - - - - Evaluate a not same as constraint. - - The object the parameter should not be the same as. - - - - Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead. - - - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - A constraints that accept anything - - - - - - A constraint that accept only nulls - - - - - - A constraint that accept only non null values - - - - - - A constraint that accept only value of the specified type. - The check is performed on the type that has been defined - as the argument type. - - - - - Provides access to the constraints defined in the class to be used in context - with the syntax. - - - - - Determines whether the specified object is in the parameter. - The parameter must be IEnumerable. - - Obj. - - - - - Determines whatever the parameter is in the collection. - - - - - Determines that the parameter collection is identical to the specified collection - - - - - Determines that the parameter collection has the specified number of elements. - - The constraint that should be applied to the collection count. - - - - Determines that an element of the parameter collections conforms to another AbstractConstraint. - - The zero-based index of the list element. - The constraint which should be applied to the list element. - - - - Determines that all elements of the specified collection are in the the parameter collection - - The collection to compare against - The constraint which should be applied to the list parameter. - - - - Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead. - - - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Provides a dummy field to pass as out or ref argument. - - - - - - Dummy field to satisfy the compiler. Used for out and ref arguments. - - - - - Central location for constraints for object's public fields - - - - - Constrains the parameter to have a public field with the specified value - - Name of the public field. - Expected value. - - - - - Constrains the parameter to have a public field with the specified value. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - Expected value. - - - - - Constrains the parameter to have a public field satisfying a specified constraint. - - Name of the public field. - Constraint for the public field. - - - - Constrains the parameter to have a public field satisfying a specified constraint. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - Constraint for the public field. - - - - Determines whether the parameter has the specified public field and that it is null. - - Name of the public field. - - - - - Determines whether the parameter has the specified public field and that it is null. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - - - - - Determines whether the parameter has the specified public field and that it is not null. - - Name of the public field. - - - - - Determines whether the parameter has the specified public field and that it is not null. - - The type that declares the public field, used to disambiguate between public fields. - Name of the public field. - - - - - Central location for constraints - - - - - Evaluate a greater than constraint for . - - The object the parameter should be greater than - - - - Evaluate a less than constraint for . - - The object the parameter should be less than - - - - Evaluate a less than or equal constraint for . - - The object the parameter should be less than or equal to - - - - Evaluate a greater than or equal constraint for . - - The object the parameter should be greater than or equal to - - - - Evaluate an equal constraint for . - - The object the parameter should equal to - - - - Evaluate a not equal constraint for . - - The object the parameter should not equal to - - - - Evaluate a same as constraint. - - The object the parameter should the same as. - - - - Evaluate a not same as constraint. - - The object the parameter should not be the same as. - - - - A constraints that accept anything - - - - - - A constraint that accept only nulls - - - - - - A constraint that accept only non null values - - - - - - A constraint that accept only value of the specified type - - - - - A constraint that accept only value of the specified type - - - - - Evaluate a parameter using a predicate - - The predicate to use - - - - Central location for constraints about lists and collections - - - - - Determines whether the specified obj is in the parameter. - The parameter must be IEnumerable. - - Obj. - - - - - Determines whatever the parameter is in the collection. - - - - - Determines that the parameter collection is identical to the specified collection - - - - - Determines that the parameter collection has the specified number of elements. - - The constraint that should be applied to the collection count. - - - - Determines that an element of the parameter collections conforms to another AbstractConstraint. - - The zero-based index of the list element. - The constraint which should be applied to the list element. - - - - Determines that an element of the parameter collections conforms to another AbstractConstraint. - - The key of the element. - The constraint which should be applied to the element. - - - - Determines that all elements of the specified collection are in the the parameter collection - - The collection to compare against - The constraint which should be applied to the list parameter. - - - - Central location for constraints for object's properties - - - - - Constrains the parameter to have property with the specified value - - Name of the property. - Expected value. - - - - - Constrains the parameter to have property with the specified value. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - Expected value. - - - - - Constrains the parameter to have a property satisfying a specified constraint. - - Name of the property. - Constraint for the property. - - - - Constrains the parameter to have a property satisfying a specified constraint. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - Constraint for the property. - - - - Determines whether the parameter has the specified property and that it is null. - - Name of the property. - - - - - Determines whether the parameter has the specified property and that it is null. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - - - - - Determines whether the parameter has the specified property and that it is not null. - - Name of the property. - - - - - Determines whether the parameter has the specified property and that it is not null. - - The type that declares the property, used to disambiguate between properties. - Name of the property. - - - - - constraints the parameter to have the exact same property values as the expected object. - - An object, of the same type as the parameter, whose properties are set with the expected values. - An instance of the constraint that will do the actual check. - - The parameter's public property values and public field values will be matched against the expected object's - public property values and public field values. The first mismatch will be reported and no further matching is done. - The matching is recursive for any property or field that has properties or fields of it's own. - Collections are supported through IEnumerable, which means the constraint will check if the actual and expected - collection contain the same values in the same order, where the values contained by the collection can have properties - and fields of their own that will be checked as well because of the recursive nature of this constraint. - - - - - Central location for all text related constraints - - - - - Constrain the argument to starts with the specified string - - - - - Constrain the argument to end with the specified string - - - - - Constrain the argument to contain the specified string - - - - - Constrain the argument to validate according to regex pattern - - - - - Provides access to the constraintes defined in the class to be used in context - with the syntax. - - - - - Constrain the argument to starts with the specified string - - - - - - Constrain the argument to end with the specified string - - - - - Constrain the argument to contain the specified string - - - - - Constrain the argument to validate according to regex pattern - - - - - Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead. - - - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - This class defines a lot of method signatures, which we will use - to allow compatability on net-2.0 - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - dummy - - - - - Allows expectations to be set on methods that should never be called. - For methods with void return value, you need to use LastCall or - DoNotExpect.Call() with a delegate. - - - - - Sets LastCall.Repeat.Never() on /any/ proxy on /any/ repository on the current thread. - This method if not safe for multi threading scenarios. - - - - - Accepts a delegate that will execute inside the method which - LastCall.Repeat.Never() will be applied to. - It is expected to be used with anonymous delegates / lambda expressions and only one - method should be called. - - - IService mockSrv = mocks.CreateMock(typeof(IService)) as IService; - DoNotExpect.Call(delegate{ mockSrv.Stop(); }); - ... - - - - - An expectaton violation was detected. - - - - - Creates a new instance. - - Message. - - - - Serialization constructor - - - - - Signals that an object was call on a mock repository which doesn't - belong to this mock repository or not a mock - - - - - Creates a new instance. - - Message. - - - - Serialization constructor - - - - - Allows to set expectation on methods that has return values. - For methods with void return value, you need to use LastCall - - - - - The method options for the last call on /any/ proxy on /any/ repository on the current thread. - This method if not safe for multi threading scenarios, use . - - - - - Accepts a delegate that will execute inside the method, and then return the resulting - instance. - It is expected to be used with anonymous delegates / lambda expressions and only one - method should be called. - - - IService mockSrv = mocks.CreateMock(typeof(IService)) as IService; - Expect.Call(delegate{ mockSrv.Start(); }).Throw(new NetworkException()); - ... - - - - - Get the method options for the last method call on the mockInstance. - - - - - A delegate that can be used to get better syntax on Expect.Call(delegate { foo.DoSomething(); }); - - - - - Abstract class that holds common information for - expectations. - - - - - Interface to validate that a method call is correct. - - - - - Validate the arguments for the method. - This method can be called numerous times, so be careful about side effects - - The arguments with which the method was called - - - - Add an actual method call to this expectation - - - - - Returns the return value or throw the exception and setup any output / ref parameters - that has been set. - - - - - Builds the verification failure message. - - - - - - Gets the error message. - - - - - - Range of expected calls - - - - - Number of call actually made for this method - - - - - If this expectation is still waiting for calls. - - - - - The return value for a method matching this expectation - - - - - Gets or sets the exception to throw on a method matching this expectation. - - - - - Gets a value indicating whether this instance's action is staisfied. - A staisfied instance means that there are no more requirements from - this method. A method with non void return value must register either - a return value or an exception to throw. - - - - - Gets the method this expectation is for. - - - - - Gets or sets what special condtions there are for this method - repeating. - - - - - Gets a value indicating whether this expectation was satisfied - - - - - Specify whatever this expectation has a return value set - You can't check ReturnValue for this because a valid return value include null. - - - - - An action to execute when the method is matched. - - - - - Set the out / ref parameters for the method call. - The indexing is zero based and ignores any non out/ref parameter. - It is possible not to pass all the parameters. This method can be called only once. - - - - - Documentation Message - - - - - Gets the invocation for this expectation - - The invocation. - - - - Occurs when the exceptation is match on a method call - - - - - Allow to set the return value in the future, if it was already set. - - - - - Number of actuall calls made that passed this expectation - - - - - Range of expected calls that should pass this expectation. - - - - - The return value for a method matching this expectation - - - - - The exception to throw on a method matching this expectation. - - - - - The method this expectation is for. - - - - - The return value for this method was set - - - - - Whether this method will repeat - unlimited number of times. - - - - - A delegate that will be run when the - expectation is matched. - - - - - The arguments that matched this expectation. - - - - - Documentation message - - - - - The method originalInvocation - - - - - Get the hash code - - - - - Add an actual actualMethodCall call to this expectation - - - - - Builds the verification failure message. - - - - - - Returns the return value or throw the exception and setup output / ref parameters - - - - - Validate the arguments for the method on the child methods - - The arguments with which the method was called - - - - Creates a new instance. - - The originalInvocation for this method, required because it contains the generic type infromation - Number of method calls for this expectations - - - - Creates a new instance. - - Expectation. - - - - Validate the arguments for the method on the child methods - - The arguments with which the method was called - - - - Determines if this object equal to obj - - - - - The error message for these arguments - - - - - Asserts that the delegate has the same parameters as the expectation's method call - - - - - Setter for the outpur / ref parameters for this expecataion. - Can only be set once. - - - - - Specify whether this expectation has a return value set - You can't check ReturnValue for this because a valid return value include null. - - - - - Gets the method this expectation is for. - - - - - Gets the originalInvocation for this expectation - - The originalInvocation. - - - - Gets or sets what special condtions there are for this method - - - - - Range of expected calls - - - - - Number of call actually made for this method - - - - - If this expectation is still waiting for calls. - - - - - Gets a value indicating whether this expectation was satisfied - - - - - The return value for a method matching this expectation - - - - - An action to execute when the method is matched. - - - - - Gets or sets the exception to throw on a method matching this expectation. - - - - - Gets a value indicating whether this instance's action is staisfied. - A staisfied instance means that there are no more requirements from - this method. A method with non void return value must register either - a return value or an exception to throw or an action to execute. - - - - - Documentation message - - - - - Occurs when the exceptation is match on a method call - - - - - Allow to set the return value in the future, if it was already set. - - - - - Gets the error message. - - - - - - Expectation that matches any arguments for the method. - - - - - Creates a new instance. - - Invocation for this expectation - Number of method calls for this expectations - - - - Creates a new instance. - - Expectation. - - - - Validate the arguments for the method. - - The arguments with which the method was called - - - - Determines if the object equal to expectation - - - - - Get the hash code - - - - - Gets the error message. - - - - - - Summary description for ArgsEqualExpectation. - - - - - Creates a new instance. - - Expected args. - The invocation for this expectation - Number of method calls for this expectations - - - - Validate the arguments for the method. - - The arguments with which the method was called - - - - Determines if the object equal to expectation - - - - - Get the hash code - - - - - Gets the error message. - - - - - - Get the expected args. - - - - - Call a specified callback to verify the expectation - - - - - Creates a new instance. - - Expectation. - Callback. - - - - Creates a new instance. - - Invocation for this expectation - Callback. - Number of method calls for this expectations - - - - Validate the arguments for the method on the child methods - - The arguments with which the method was called - - - - Determines if the object equal to expectation - - - - - Get the hash code - - - - - Gets the error message. - - - - - - Expect the method's arguments to match the contraints - - - - - Creates a new instance. - - Invocation for this expectation - Constraints. - Number of method calls for this expectations - - - - Creates a new instance. - - Expectation. - Constraints. - - - - Validate the arguments for the method. - - The arguments with which the method was called - - - - Determines if the object equal to expectation - - - - - Get the hash code - - - - - Gets the error message. - - - - - - Doesn't log anything, just makes happy noises - - - - - Log expectations - allows to see what is going on inside Rhino Mocks - - - - - Logs the expectation as is was recorded - - The invocation. - The expectation. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the unexpected method call. - - The invocation. - The message. - - - - Logs the expectation as is was recorded - - The invocation. - The expectation. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the unexpected method call. - - The invocation. - The message. - - - - Operation on a remoting proxy - - - It is not possible to directly communicate to a real proxy via transparent proxy. - Transparent proxy impersonates a user type and only methods of that user type are callable. - The only methods that are guaranteed to exist on any transparent proxy are methods defined - in Object: namely ToString(), GetHashCode(), and Equals()). - - These three methods are the only way to tell the real proxy to do something. - Equals() is the most suitable of all, since it accepts an arbitrary object parameter. - The RemotingProxy code is built so that if it is compared to an IRemotingProxyOperation, - transparentProxy.Equals(operation) will call operation.Process(realProxy). - This way we can retrieve a real proxy from transparent proxy and perform - arbitrary operation on it. - - - - - Generates remoting proxies and provides utility functions - - - - - Create the proxy using remoting - - - - - Check whether an object is a transparent proxy with a RemotingProxy behind it - - Object to check - true if the object is a transparent proxy with a RemotingProxy instance behind it, false otherwise - We use Equals() method to communicate with the real proxy behind the object. - See IRemotingProxyOperation for more details - - - - Retrieve a mocked object from a transparent proxy - - Transparent proxy with a RemotingProxy instance behind it - Mocked object associated with the proxy - We use Equals() method to communicate with the real proxy behind the object. - See IRemotingProxyOperation for more details - - - - Implementation of IInvocation based on remoting proxy - - Some methods are marked NotSupported since they either don't make sense - for remoting proxies, or they are never called by Rhino Mocks - - - - Rudimetry implementation that simply logs methods calls as text. - - - - - Initializes a new instance of the class. - - The writer. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the unexpected method call. - - The invocation. - The message. - - - - Behave like a stub, all properties and events acts normally, methods calls - return default values by default (but can use expectations to set them up), etc. - - - - - Records all the expectations for a mock - - - - - Different actions on this mock - - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Verify that this mock expectations have passed. - - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Gets a mock state that match the original mock state of the object. - - - - - Get the options for the last method call - - - - - Set the exception to throw when Verify is called. - This is used to report exception that may have happened but where caught in the code. - This way, they are reported anyway when Verify() is called. - - - - - This method is called to indicate that a property behavior call. - This is done so we generate good error message in the common case of people using - Stubbed properties with Return(). - - - - - Gets the matching verify state for this state - - - - - Get the options for the last method call - - - - - Get the options for the last method call - - - - - Set the exception to throw when Verify is called. - This is used to report exception that may have happened but where caught in the code. - This way, they are reported anyway when Verify() is called. - - - - - This method is called to indicate that a property behavior call. - This is done so we generate good error message in the common case of people using - Stubbed properties with Return(). - - - - - Creates a new instance. - - Repository. - The proxy that generates the method calls - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Verify that this mock expectations have passed. - - - - - Gets a mock state that match the original mock state of the object. - - - - - Asserts the previous method is closed (had an expectation set on it so we can replay it correctly) - - - - - Get the default call count range expectation - - - - - - Gets the last expectation. - - - - - Gets the total method calls count. - - - - - Get the options for the last method call - - - - - Gets the matching verify state for this state - - - - - Initializes a new instance of the class. - - The proxy that generates the method calls - Repository. - - - - We don't care much about expectations here, so we will remove the expectation if - it is not closed. - - - - - Verify that we can move to replay state and move - to the reply state. - - - - - - Get the default call count range expectation - - - - - - Validate expectations on recorded methods, but in general completely ignoring them. - Similar to except that it would return a - when BackToRecord is called. - - - - - Validate all expectations on a mock - - - - - The repository for this state - - - - - The proxy object for this state - - - - - Get the options for the last method call - - - - - Creates a new instance. - - The previous state for this method - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Add a method call for this state' mock. - This allows derived method to cleanly get a the setupresult behavior while adding - their own. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Set the exception to throw when Verify is called. - This is used to report exception that may have happened but where caught in the code. - This way, they are reported anyway when Verify() is called. - - - - - not relevant - - - - - Verify that this mock expectations have passed. - - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Gets a mock state that match the original mock state of the object. - - - - - Get the options for the last method call - - - - - Gets the matching verify state for this state - - - - - Initializes a new instance of the class. - - The previous state for this method - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Gets a mock state that matches the original mock state of the object. - - - - - Write rhino mocks log info to the trace - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if set to true [log recorded]. - if set to true [log replayed]. - if set to true [log unexpected]. - - - - Logs the expectation as is was recorded - - The invocation. - The expectation. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the unexpected method call. - - The invocation. - The message. - - - - Writes log information as stack traces about rhino mocks activity - - - - - Allows to redirect output to a different location. - - - - - Logs the expectation as is was recorded - - The invocation. - The expectation. - - - - Logs the expectation as it was recorded - - The invocation. - The expectation. - - - - Logs the unexpected method call. - - The invocation. - The message. - - - - Marker interface used to indicate that this is a partial mock. - - - - - Options for CallOriginalMethod - - - - - No expectation is created, the method will be called directly - - - - - Normal expectation is created, but when the method is later called, it will also call the original method - - - - - This is a data structure that is used by - to pass - the current method to the relevant delegate - - - - - Initializes a new instance of the class. - - The invocation. - - - - Gets the args for this method invocation - - - - - Get the method that was caused this invocation - - - - - Gets or sets the return value for this method invocation - - The return value. - - - - Adds optional new usage: - using(mockRepository.Record()) { - Expect.Call(mock.Method()).Return(retVal); - } - using(mockRepository.Playback()) { - // Execute code - } - N.B. mockRepository.ReplayAll() and mockRepository.VerifyAll() - calls are taken care of by Record/Playback - - - Creates proxied instances of types. - - - - Generates a stub without needing a - Arguments for 's constructor - The of stub to create. - The stub - - - - Generates a stub without needing a - The of stub. - Arguments for the 's constructor. - The stub - - - - Generate a mock object without needing a - type of mock object to create. - Arguments for 's constructor - the mock object - - - - Generate a multi-mock object without needing a - The typeof object to generate a mock for. - A second interface to generate a multi-mock for. - Arguments for 's constructor - the multi-mock object - - - - Generate a multi-mock object without without needing a - The typeof object to generate a mock for. - An interface to generate a multi-mock for. - A second interface to generate a multi-mock for. - Arguments for 's constructor - the multi-mock object - - - - Creates a multi-mock without without needing a - The type of mock to create, this can be a class - Any extra interfaces to add to the multi-mock, these can only be interfaces. - Arguments for 's constructor - the multi-mock object - - - - Creates a strict mock without without needing a - Any arguments required for the 's constructor - The type of mock object to create. - The mock object with strict replay semantics - - - - Creates a strict multi-mock without needing a - Any arguments required for the 's constructor - The type of mock object to create, this can be a class. - An interface to generate a multi-mock for, this must be an interface! - The multi-mock object with strict replay semantics - - - - Creates a strict multi-mock without needing a - Any arguments required for the 's constructor - The type of mock object to create, this can be a class. - An interface to generate a multi-mock for, this must be an interface! - A second interface to generate a multi-mock for, this must be an interface! - The multi-mock object with strict replay semantics - - - - Creates a strict multi-mock without needing a - The type of mock object to create, this can be a class - Any extra interfaces to generate a multi-mock for, these must be interaces! - Any arguments for the 's constructor - The strict multi-mock object - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generate a mock object with dynamic replay semantics and remoting without needing the mock repository - - - - - Generate a mock object with strict replay semantics and remoting without needing the mock repository - - - - Helper method to create a mock object without a repository instance and put the object back into replay mode. - The type of mock object to create - A delegate that uses a mock repository instance to create the underlying mock - The mock object in the replay mode. - - - - - - - - - - - - - - This is a map of types to ProxyGenerators. - - - - - This is used to record the last repository that has a method called on it. - - - - - this is used to get to the last proxy on this repository. - - - - - For mock delegates, maps the proxy instance from intercepted invocations - back to the delegate that was originally returned to client code, if any. - - - - - All the proxies in the mock repositories - - - - - This is here because we can't put it in any of the recorders, since repeatable methods - have no orderring, and if we try to handle them using the usual manner, we would get into - wierd situations where repeatable method that was defined in an orderring block doesn't - exists until we enter this block. - - - - - Creates a new instance. - - - - - Move the repository to ordered mode - - - - - Move the repository to un-ordered mode - - - - - Creates a mock for the specified type. - - Type. - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a strict mock for the specified type. - - Type. - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a remoting mock for the specified type. - - Type. - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a strict remoting mock for the specified type. - - Type. - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a remoting mock for the specified type. - - - Arguments for the class' constructor, if mocking a concrete class - - - - - Creates a strict remoting mock for the specified type. - - - Arguments for the class' constructor, if mocking a concrete class - - - - - Creates a mock from several types, with strict semantics. - Only may be a class. - - - - - Creates a strict mock from several types, with strict semantics. - Only may be a class. - - - - - Creates a mock from several types, with strict semantics. - Only may be a class. - - The main type to mock. - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class. - - - - Creates a strict mock from several types, with strict semantics. - Only may be a class. - - The main type to mock. - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class. - - - - Creates a mock from several types, with dynamic semantics. - Only may be a class. - - The main type to mock. - Extra interface types to mock. - - - - Creates a mock from several types, with dynamic semantics. - Only may be a class. - - The main type to mock. - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class. - - - Creates a dynamic mock for the specified type. - Type. - Arguments for the class' constructor, if mocking a concrete class - - - Creates a dynamic mock for the specified type. - Type. - Arguments for the class' constructor, if mocking a concrete class - - - Creates a dynamic mock for the specified type. - - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a mock object that defaults to calling the class methods if no expectation is set on the method. - Type. - Arguments for the class' constructor. - - - Creates a mock object that defaults to calling the class methods. - Type. - Extra interface types to mock. - - - Creates a mock object that defaults to calling the class methods. - Type. - Extra interface types to mock. - Arguments for the class' constructor. - - - Creates a mock object using remoting proxies - Type to mock - must be MarshalByRefObject - Mock object - Proxy mock can mock non-virtual methods, but not static methods - Creates the mock state for this proxy - - - - Cause the mock state to change to replay, any further call is compared to the - ones that were called in the record state. - - This method *cannot* be called from inside an ordering. - the object to move to replay state - - - - Cause the mock state to change to replay, any further call is compared to the - ones that were called in the record state. - - the object to move to replay state - - - - Move the mocked object back to record state.You can (and it's recommended) to run {Verify()} before you use this method. - Will delete all current expectations! - - - - Move the mocked object back to record state. - Optionally, can delete all current expectations, but allows more granularity about how - it would behave with regard to the object state. - - - - - Verify that all the expectations for this object were fulfilled. - - the object to verify the expectations for - - - - Get the method options for the last call on - mockedInstance. - - The mock object - Method options for the last call - - - - Maps an invocation proxy back to the mock object instance that was originally - returned to client code which might have been a delegate to this proxy. - - The mock object proxy from the intercepted invocation - The mock object - - - This is provided to allow advance extention functionality, where Rhino Mocks standard functionality is not enough. - The type to mock - Delegate that create the first state of the mocked object (usualy the record state). - Additional types to be implemented, this can be only interfaces - optional arguments for the constructor - - - - - Method: GetMockedObject - Get an IProxy from a mocked object instance, or throws if the - object is not a mock object. - - - - - Method: GetMockedObjectOrNull - Get an IProxy from a mocked object instance, or null if the - object is not a mock object. - - - - Pops the recorder. - - - Pushes the recorder. - New recorder. - - - - All the mock objects in this repository will be moved - to record state. - - - - - All the mock objects in this repository will be moved - to record state. - - - - - Replay all the mocks from this repository - - - - - Verify all the mocks from this repository - - - - - Gets the proxy generator for a specific type. Having a single ProxyGenerator - with multiple types linearly degrades the performance so this implementation - keeps one ProxyGenerator per type. - - - - Set the exception to be thrown when verified is called. - - - - Creates a mock for the spesified type with strict mocking semantics. - Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown. - - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a mock for the spesified type with strict mocking semantics. - Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown. - - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a dynamic mock for the specified type. - - Arguments for the class' constructor, if mocking a concrete class - - - - Creates a mock object from several types. - - - - - Creates a strict mock object from several types. - - - - - Create a mock object from several types with dynamic semantics. - - - - - Create a mock object from several types with partial semantics. - - - - - Create a mock object from several types with strict semantics. - - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class - - - - Create a strict mock object from several types with strict semantics. - - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class - - - - Create a mock object from several types with dynamic semantics. - - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class - - - - Create a mock object from several types with partial semantics. - - Extra interface types to mock. - Arguments for the class' constructor, if mocking a concrete class - - - - Create a mock object with from a class that defaults to calling the class methods - - Arguments for the class' constructor, if mocking a concrete class - - - - Create a stub object, one that has properties and events ready for use, and - can have methods called on it. It requires an explicit step in order to create - an expectation for a stub. - - The arguments for constructor. - - - - Create a stub object, one that has properties and events ready for use, and - can have methods called on it. It requires an explicit step in order to create - an expectation for a stub. - - The type. - The arguments for constructor. - The stub - - - - Returns true if the passed mock is currently in replay mode. - - The mock to test. - True if the mock is in replay mode, false otherwise. - - - - Determines whether the specified proxy is a stub. - - The proxy. - - - - Register a call on a prperty behavior - - - - - - Gets the recorder. - - - - - - Gets the replayer for this repository. - - - - - - Gets the last proxy which had a method call. - - - - - Delegate: CreateMockState - This is used internally to cleanly handle the creation of different - RecordMockStates. - - - - - A set of extension methods that adds Arrange Act Assert mode to Rhino Mocks - - - - - Create an expectation on this mock for this action to occur - - - The mock. - The action. - - - - - Reset all expectations on this mock object - - - The mock. - - - - Reset the selected expectation on this mock object - - - The mock. - The options to reset the expectations on this mock. - - - - Cause the mock state to change to replay, any further call is compared to the - ones that were called in the record state. - - the mocked object to move to replay state - - - - Gets the mock repository for this specificied mock object - - - The mock. - - - - - Create an expectation on this mock for this action to occur - - - - The mock. - The action. - - - - - Tell the mock object to perform a certain action when a matching - method is called. - Does not create an expectation for this method. - - - The mock. - The action. - - - - - Tell the mock object to perform a certain action when a matching - method is called. - Does not create an expectation for this method. - - - - The mock. - The action. - - - - - Gets the arguments for calls made on this mock object and the method that was called - in the action. - - - The mock. - The action. - - - Here we will get all the arguments for all the calls made to DoSomething(int) - - var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0)) - - - - - - Gets the arguments for calls made on this mock object and the method that was called - in the action and matches the given constraints - - - The mock. - The action. - The setup constraints. - - - Here we will get all the arguments for all the calls made to DoSomething(int) - - var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0)) - - - - - - Asserts that a particular method was called on this mock object - - - The mock. - The action. - - - - Asserts that a particular method was called on this mock object that match - a particular constraint set. - - - The mock. - The action. - The setup constraints. - - - - Asserts that a particular method was called on this mock object that match - a particular constraint set. - - - The mock. - The action. - - - - Asserts that a particular method was called on this mock object that match - a particular constraint set. - - - The mock. - The action. - The setup constraints. - - - - Asserts that a particular method was NOT called on this mock object - - - The mock. - The action. - - - - Asserts that a particular method was NOT called on this mock object that match - a particular constraint set. - - - The mock. - The action. - The setup constraints. - - - - Asserts that a particular method was NOT called on this mock object - - - The mock. - The action. - - - - Asserts that a particular method was NOT called on this mock object - - - The mock. - The action. - The setup constraints. - - - - Finds the approprite implementation type of this item. - This is the class or an interface outside of the rhino mocks. - - The mocked obj. - - - - - Verifies all expectations on this mock object - - The mock object. - - - - Gets the event raiser for the event that was called in the action passed - - The type of the event source. - The mock object. - The event subscription. - - - - - Raise the specified event using the passed arguments. - The even is extracted from the passed labmda - - The type of the event source. - The mock object. - The event subscription. - The sender. - The instance containing the event data. - - - - Raise the specified event using the passed arguments. - The even is extracted from the passed labmda - - The type of the event source. - The mock object. - The event subscription. - The args. - - - TODO: Make this better! It currently breaks down when mocking classes or - ABC's that call other virtual methods which are getting intercepted too. I wish - we could just walk Expression{Action{Action{T}} to assert only a single - method is being made. - - The workaround is to not call foo.AssertWasCalled .. rather foo.VerifyAllExpectations() - The type of mock object - The mock repository - The actual mock object to assert expectations on. - - - - Fake type that disallow creating it. - Should have been System.Type, but we can't use it. - - - - - Utility class for dealing with messing generics scenarios. - - - - - There are issues with trying to get this to work correctly with open generic types, since this is an edge case, - I am letting the runtime handle it. - - - - - Gets the real type, including de-constructing and constructing the type of generic - methods parameters. - - The type. - The invocation. - - - - - Because we need to support complex types here (simple generics were handled above) we - need to be aware of the following scenarios: - List[T] and List[Foo[T]] - - - - - ExpectationsList - - - - - Dictionary - - - - - Dictionary class - - - - - Create a new instance of ProxyStateDictionary - - - - - Allows to call a method and immediately get it's options. - - - - - Interface to allow calling a method and immediately get it's options. - - - - - Get the method options for the call - - The method call should go here, the return value is ignored - - - - Creates a new instance. - - - - - Get the method options for the call - - The method call should go here, the return value is ignored - - - - Allows to call a method and immediately get it's options. - Set the expected number for the call to Any() - - - - - Creates a new instance. - - Proxy. - Mocked instance. - - - - Get the method options for the call - - The method call should go here, the return value is ignored - - - - This class is reponsible for taking a delegate and creating a wrapper - interface around it, so it can be mocked. - - - - - The scope for all the delegate interfaces create by this mock repository. - - - - - Gets a type with an "Invoke" method suitable for use as a target of the - specified delegate type. - - - - - - - Raise events for all subscribers for an event - - - - - Raise events for all subscribers for an event - - - - - Raise the event - - - - - The most common form for the event handler signature - - - - - Create an event raiser for the specified event on this instance. - - - - - Creates a new instance of EventRaiser - - - - - Raise the event - - - - - The most common signature for events - Here to allow intellisense to make better guesses about how - it should suggest parameters. - - - - - Allows to define what would happen when a method - is called. - - - - - Allows to define what would happen when a method - is called. - - - - - Set the return value for the method. - - The object the method will return - IRepeat that defines how many times the method will return this value - - - - Allow to override this return value in the future - - IRepeat that defines how many times the method will return this value - - - - Throws the specified exception when the method is called. - - Exception to throw - - - - Ignores the arguments for this method. Any argument will be matched - againt this method. - - - - - Add constraints for the method's arguments. - - - - - Set a callback method for the last call - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched - and allow to optionally modify the invocation as needed - - - - - Call the original method on the class, bypassing the mocking layers. - - - - - - Call the original method on the class, optionally bypassing the mocking layers. - - - - - - Use the property as a simple property, getting/setting the values without - causing mock expectations. - - - - - Expect last (property) call as property setting, ignore the argument given - - - - - - Expect last (property) call as property setting with a given argument. - - - - - - - Get an event raiser for the last subscribed event. - - - - - Set the parameter values for out and ref parameters. - This is done using zero based indexing, and _ignoring_ any non out/ref parameter. - - - - - Documentation message for the expectation - - Message - - - - Better syntax to define repeats. - - - - - Allows to specify the number of time for method calls - - - - - Repeat the method twice. - - - - - Repeat the method once. - - - - - Repeat the method at least once, then repeat as many time as it would like. - - - - - Repeat the method any number of times. - This has special affects in that this method would now ignore orderring. - - - - - Set the range to repeat an action. - - Min. - Max. - - - - Set the amount of times to repeat an action. - - - - - This method must not appear in the replay state. - This has special affects in that this method would now ignore orderring. - - - - - Creates a new instance. - - the repository for this expectation - the recorder for this proxy - the proxy for this expectation - Expectation. - - - - Add constraints for the method's arguments. - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Set the return value for the method. - - The object the method will return - IRepeat that defines how many times the method will return this value - - - - Set the return value for the method, but allow to override this return value in the future - - IRepeat that defines how many times the method will return this value - - - - Throws the specified exception when the method is called. - - Exception to throw - - - - Ignores the arguments for this method. Any argument will be matched - againt this method. - - - - - Call the original method on the class, bypassing the mocking layers. - - - - - - Call the original method on the class, optionally bypassing the mocking layers - - - - - - Use the property as a simple property, getting/setting the values without - causing mock expectations. - - - - - Expect last (property) call as property setting, ignore the argument given - - - - - - Expect last (property) call as property setting with a given argument. - - - - - - - Gets the event raiser for the last event - - - - - Set the parameter values for out and ref parameters. - This is done using zero based indexing, and _ignoring_ any non out/ref parameter. - - - - - Repeat the method twice. - - - - - Repeat the method once. - - - - - Repeat the method at least once, then repeat as many time as it would like. - - - - - This method must not appear in the replay state. - - - - - Documentation message for the expectation - - Message - - - - Repeat the method any number of times. - - - - - Set the range to repeat an action. - - Min. - Max. - - - - Set the amount of times to repeat an action. - - - - - Better syntax to define repeats. - - - - - This class will provide hash code for hashtables without needing - to call the GetHashCode() on the object, which may very well be mocked. - This class has no state so it is a singelton to avoid creating a lot of objects - that does the exact same thing. See flyweight patterns. - - - - - Get the hash code for a proxy object without calling GetHashCode() - on the object. - - - - - Compares two instances of mocked objects - - - - - Compare two mocked objects - - - - - The next hash code value for a mock object. - This is safe for multi threading. - - - - - The sole instance of - - - - - This is a dummy type that is used merely to give DynamicProxy the proxy instance that - it needs to create IProxy's types. - - - - - Interface to find the repository of a mocked object - - - - - Return true if it should call the original method on the object - instead of pass it to the message chain. - - The method to call - - - - Register a method to be called on the object directly - - - - - Register a property on the object that will behave as a simple property - - - - - Check if the method was registered as a property method. - - - - - Do get/set on the property, according to need. - - - - - Do add/remove on the event - - - - - Get the subscribers of a spesific event - - - - - Gets the declaring type of the method, taking into acccount the possible generic - parameters that it was created with. - - - - - Clears the state of the object, remove original calls, property behavior, subscribed events, etc. - - - - - Get all the method calls arguments that were made against this object with the specificed - method. - - - Only method calls in replay mode are counted - - - - - Records the method call - - - - - Mocks that are tied to this mock lifestyle - - - - - The unique hash code of this mock, which is not related - to the value of the GetHashCode() call on the object. - - - - - Gets the repository. - - - - - Gets the implemented types by this mocked object - - The implemented. - - - - Gets or sets the constructor arguments. - - The constructor arguments. - - - - The mocked instance that this is representing - - - - - Create a new instance of - - - - - Return true if it should call the original method on the object - instead of pass it to the message chain. - - The method to call - - - - Register a method to be called on the object directly - - - - - Register a property on the object that will behave as a simple property - Return true if there is already a value for the property - - - - - Check if the method was registered as a property method. - - - - - Do get/set on the property, according to need. - - - - - Do add/remove on the event - - - - - Get the subscribers of a spesific event - - - - - Gets the declaring type of the method, taking into acccount the possible generic - parameters that it was created with. - - - - - Get all the method calls arguments that were made against this object with the specificed - method. - - - - - Only method calls in replay mode are counted - - - - - Records the method call - - - - - - - Clears the state of the object, remove original calls, property behavior, subscribed events, etc. - - - - - Mocks that are tied to this mock lifestyle - - - - - The unique hash code of this proxy, which is not related - to the value of the GetHashCode() call on the object. - - - - - Gets the repository. - - - - - Gets or sets the constructor arguments. - - The constructor arguments. - - - - The mocked instance that this is representing - - - - - Gets the implemented types by this mocked object - - The implemented. - - - - Range for expected method calls - - - - - Creates a new instance. - - Min. - Max. - - - - Return the string representation of this range. - - - - - Gets or sets the min. - - - - - - Gets or sets the max. - - - - - - Records all the expectations for a mock and - return a ReplayDynamicMockState when Replay() - is called. - - - - - Creates a new instance. - - Repository. - The proxy that generates the method calls - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Get the default call count range expectation - - - - - - Gets a mock state that match the original mock state of the object. - - - - - Records all the expectations for a mock and - return a ReplayPartialMockState when Replay() - is called. - - - - - Creates a new instance. - - Repository. - The proxy that generates the method calls - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Gets a mock state that matches the original mock state of the object. - - - - - Options for special repeat option - - - - - This method can be called only as many times as the IMethodOptions.Expect allows. - - - - - This method should never be called - - - - - This method can be call any number of times - - - - - This method will call the original method - - - - - This method will call the original method, bypassing the mocking layer - - - - - This method will simulate simple property behavior - - - - - Validate all expectations on a mock and ignores calls to - any method that was not setup properly. - - - - - Creates a new instance. - - The previous state for this method - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Gets a mock state that match the original mock state of the object. - - - - - Validate all expectations on a mock and ignores calls to - any method that was not setup properly. - - - - - Creates a new instance. - - The previous state for this method - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Gets a mock state that match the original mock state of the object. - - - - - Summary description for RhinoInterceptor. - - - - - Creates a new instance. - - - - - Intercept a method call and direct it to the repository. - - - - - Validate arguments for methods - - - - - Validate that the passed argument is not null. - - The object to validate - The name of the argument - - If the obj is null, an ArgumentNullException with the passed name - is thrown. - - - - - Validate that the arguments are equal. - - Expected args. - Actual Args. - - - - Validate that the two arguments are equals, including validation for - when the arguments are collections, in which case it will validate their values. - - - - - This method is safe for use even if any of the objects is a mocked object - that override equals. - - - - - Throw an object already verified when accessed - - - - - Create a new instance of VerifiedMockState - - The previous mock state, used to get the initial record state - - - - Add a method call for this state' mock. - - The invocation for this method - The method that was called - The arguments this method was called with - - - - Verify that this mock expectations have passed. - - - - - Verify that we can move to replay state and move - to the reply state. - - - - - Gets a mock state that match the original mock state of the object. - - - - - Get the options for the last method call - - - - - Set the exception to throw when Verify is called. - This is used to report exception that may have happened but where caught in the code. - This way, they are reported anyway when Verify() is called. - - - - - not relevant - - - - - Gets the matching verify state for this state - - - - - Get the options for the last method call - - - - - Records the actions on all the mocks created by a repository. - - - - - Records the specified call with the specified args on the mocked object. - - - - - Get the expectation for this method on this object with this arguments - - - - - This check the methods that were setup using the SetupResult.For() - or LastCall.Repeat.Any() and that bypass the whole expectation model. - - - - - Gets the all expectations for a mocked object and method combination, - regardless of the expected arguments / callbacks / contraints. - - Mocked object. - Method. - List of all relevant expectation - - - - Gets the all expectations for proxy. - - Mocked object. - List of all relevant expectation - - - - Removes all the repeatable expectations for proxy. - - Mocked object. - - - - Replaces the old expectation with the new expectation for the specified proxy/method pair. - This replace ALL expectations that equal to old expectations. - - Proxy. - Method. - Old expectation. - New expectation. - - - - Adds the recorder and turn it into the active recorder. - - Recorder. - - - - Moves to previous recorder. - - - - - Gets the recorded expectation or null. - - - - - Gets the next expected calls string. - - - - - Moves to parent recorder. - - - - - Set the expectation so it can repeat any number of times. - - - - - Removes the expectation from the recorder - - - - - Clear the replayer to call (and all its chain of replayers) - This also removes it from the list of expectations, so it will never be considered again - - - - - Get the expectation for this method on this object with this arguments - - - - - Gets a value indicating whether this instance has expectations that weren't satisfied yet. - - - true if this instance has expectations; otherwise, false. - - - - - Allows to set various options for the last method call on - a specified object. - If the method has a return value, it's recommended to use Expect - - - - - Allows to get an interface to work on the last call. - - The mocked object - Interface that allows to set options for the last method call on this object - - - - Set the return value for the method. - - The object the method will return - IRepeat that defines how many times the method will return this value - - - - Set the return value for the method. This overload is needed for LastCall.Return(null) - - The object the method will return - IRepeat that defines how many times the method will return this value - - - - Throws the specified exception when the method is called. - - Exception to throw - - - - Ignores the arguments for this method. Any argument will be matched - againt this method. - - - - - Add constraints for the method's arguments. - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Set a callback method for the last call - - - - - Call the original method on the class, bypassing the mocking layers, for the last call. - - - - - Call the original method on the class, optionally bypassing the mocking layers, for the last call. - - - - - Set a delegate to be called when the expectation is matched. - The delegate return value will be returned from the expectation. - - - - - Gets an interface that will raise the last event when called. - - - - - Set the parameter values for out and ref parameters. - This is done using zero based indexing, and _ignoring_ any non out/ref parameter. - - - - - Documentation message for the expectation - - Message - - - - Use the property as a simple property, getting/setting the values without - causing mock expectations. - - - - - Better syntax to define repeats. - - - - - Base class for method recorders, handle delegating to inner recorder if needed. - - - - - List of the expected actions on for this recorder - The legal values are: - * Expectations - * Method Recorders - - - - - The current recorder. - - - - - The current replayer; - - - - - The parent recorder of this one, may be null. - - - - - This contains a list of all the replayers that should be ignored - for a spesific method call. A replayer gets into this list by calling - ClearReplayerToCall() on its parent. This list is Clear()ed on each new invocation. - - - - - All the repeatable methods calls. - - - - - Counts the recursion depth of the current expectation search stack - - - - - Creates a new instance. - - - - - Creates a new instance. - - Parent recorder. - Repeatable methods - - - - Records the specified call with the specified args on the mocked object. - - - - - Get the expectation for this method on this object with this arguments - - - - - Gets the all expectations for a mocked object and method combination, - regardless of the expected arguments / callbacks / contraints. - - Mocked object. - Method. - List of all relevant expectation - - - - Gets the all expectations for proxy. - - Mocked object. - List of all relevant expectation - - - - Replaces the old expectation with the new expectation for the specified proxy/method pair. - This replace ALL expectations that equal to old expectations. - - Proxy. - Method. - Old expectation. - New expectation. - - - - Remove the all repeatable expectations for proxy. - - Mocked object. - - - - Set the expectation so it can repeat any number of times. - - - - - Removes the expectation from the recorder - - - - - Adds the recorder and turn it into the active recorder. - - Recorder. - - - - Moves to previous recorder. - - - - - Moves to parent recorder. - - - - - Gets the recorded expectation or null. - - - - - Clear the replayer to call (and all its chain of replayers). - This also removes it from the list of expectations, so it will never be considered again - - - - - Get the expectation for this method on this object with this arguments - - - - - Gets the next expected calls string. - - - - - Handles the real getting of the recorded expectation or null. - - - - - Handle the real execution of this method for the derived class - - - - - Handle the real execution of this method for the derived class - - - - - Handle the real execution of this method for the derived class - - - - - Handle the real execution of this method for the derived class - - - - - Handle the real execution of this method for the derived class - - - - - Handle the real execution of this method for the derived class - - - - - Should this replayer be considered valid for this call? - - - - - This check the methods that were setup using the SetupResult.For() - or LastCall.Repeat.Any() and that bypass the whole expectation model. - - - - - Gets a value indicating whether this instance has expectations that weren't satisfied yet. - - - true if this instance has expectations; otherwise, false. - - - - - Handle the real execution of this method for the derived class - - - - - Ordered collection of methods, methods must arrive in specified order - in order to pass. - - - - - Unordered collection of method records, any expectation that exist - will be matched. - - - - - The parent recorder we have redirected to. - Useful for certain edge cases in orderring. - See: FieldProblem_Entropy for the details. - - - - - Creates a new instance. - - Parent recorder. - Repeatable methods - - - - Creates a new instance. - - - - - Records the specified call with the specified args on the mocked object. - - Mocked object. - Method. - Expectation. - - - - Get the expectation for this method on this object with this arguments - - Invocation for this method - Mocked object. - Method. - Args. - True is the call was recorded, false otherwise - - - - Gets the all expectations for a mocked object and method combination, - regardless of the expected arguments / callbacks / contraints. - - Mocked object. - Method. - List of all relevant expectation - - - - Gets the all expectations for proxy. - - Mocked object. - List of all relevant expectation - - - - Replaces the old expectation with the new expectation for the specified proxy/method pair. - This replace ALL expectations that equal to old expectations. - - Proxy. - Method. - Old expectation. - New expectation. - - - - Handle the real execution of this method for the derived class - - - - - Handles the real getting of the recorded expectation or null. - - - - - Handle the real execution of this method for the derived class - - - - - Gets the next expected calls string. - - - - - Create an exception for an unexpected method call. - - - - - Gets a value indicating whether this instance has expectations that weren't satisfied yet. - - - true if this instance has expectations; otherwise, false. - - - - - Creates a new instance. - - Parent recorder. - Repetable methods - - - - Creates a new instance. - - - - - Handles the real getting of the recorded expectation or null. - - - - - Get the expectation for this method on this object with this arguments - - - - - Gets the next expected calls string. - - - - - Hold an expectation for a method call on an object - - - - - Creates a new instance. - - Proxy. - Method. - Expectation. - - - - Determines if the object equal to this instance - - Obj. - - - - - Gets the hash code. - - - - - - Gets the proxy. - - - - - - Gets the method. - - - - - - Gets the expectation. - - - - - - Holds a pair of mocked object and a method - and allows to compare them against each other. - This allows us to have a distinction between mockOne.MyMethod() and - mockTwo.MyMethod()... - - - - - Creates a new instance. - - Proxy. - Method. - - - - Determines whatever obj equals to this instance. - ProxyMethodPairs are equal when they point to the same /instance/ of - an object, and to the same method. - - Obj. - - - - - Gets the hash code. - - - - - - Gets the proxy. - - - - - - Gets the method. - - - - - - Change the recorder from ordered to unordered and vice versa - - - - - Creates a new instance. - - - - - Disposes this instance. - - - - - Accessor for the current mocker - - - - - The current mocker - - - - - Used for [assembly: InternalsVisibleTo(RhinoMocks.StrongName)] - Used for [assembly: InternalsVisibleTo(RhinoMocks.NormalName)] - - - - - Strong name for the Dynamic Proxy assemblies. Used for InternalsVisibleTo specification. - - - - - Normal name for dynamic proxy assemblies. Used for InternalsVisibleTo specification. - - - - - Logs all method calls for methods - - - - - Setup method calls to repeat any number of times. - - - - - Get the method options and set the last method call to repeat - any number of times. - This also means that the method would transcend ordering - - - - - Get the method options for the last method call on the mockInstance and set it - to repeat any number of times. - This also means that the method would transcend ordering - - - - - Utility class for working with method calls. - - - - - Return the string representation of a method call and its arguments. - - The method - The method arguments - Invocation of the method, used to get the generics arguments - Delegate to format the parameter - The string representation of this method call - - - - Return the string representation of a method call and its arguments. - - The invocation of the method, used to get the generic parameters - The method - The method arguments - The string representation of this method call - - - - Delegate to format the argument for the string representation of - the method call. - - - - - Utility to get the default value for a type - - - - - The default value for a type. - Null for reference types and void - 0 for value types. - First element for enums - Note that we need to get the value even for opened generic types, such as those from - generic methods. - - Type. - The invocation. - the default value - - - - Allows easier access to MockRepository, works closely with Mocker.Current to - allow access to a context where the mock repository is automatially verified at - the end of the code block. - - - - - Initialize a code block where Mocker.Current is initialized. - At the end of the code block, all the expectation will be verified. - This overload will create a new MockRepository. - - The code that will be executed under the mock context - - - - Initialize a code block where Mocker.Current is initialized. - At the end of the code block, all the expectation will be verified. - This overload will create a new MockRepository. - - The mock repository to use, at the end of the code block, VerifyAll() will be called on the repository. - The code that will be executed under the mock context - - - - Create a FluentMocker - - The mock repository to use. - - - - A method with no arguments and no return value that will be called under the mock context. - - - - - FluentMocker implements some kind of fluent interface attempt - for saying "With the Mocks [mocks], Expecting (in same order) [things] verify [that]." - - - - - Interface to verify previously defined expectations - - - - - Verifies if a piece of code - - - - - Defines unordered expectations - - A delegate describing the expectations - an IMockVerifier - - - - Defines ordered expectations - - A delegate describing the expectations - an IMockVerifier - - - - Verifies previously defined expectations - - - - - This delegate is compatible with the System.Func{T,R} signature - We have to define our own to get compatability with 2.0 - - - - - This attribute is here so we can get better Pex integration - Using this means that Pex will not try to inspect the work of - the actual proxies being generated by Rhino Mocks - - - - diff --git a/NUnit-2.6.3/bin/lib/log4net.dll b/NUnit-2.6.3/bin/lib/log4net.dll deleted file mode 100644 index 20a2e1c4..00000000 Binary files a/NUnit-2.6.3/bin/lib/log4net.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit-console-runner.dll b/NUnit-2.6.3/bin/lib/nunit-console-runner.dll deleted file mode 100644 index a2a21cee..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit-console-runner.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit-gui-runner.dll b/NUnit-2.6.3/bin/lib/nunit-gui-runner.dll deleted file mode 100644 index 7161b97b..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit-gui-runner.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit.core.dll b/NUnit-2.6.3/bin/lib/nunit.core.dll deleted file mode 100644 index b306faee..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit.core.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit.core.interfaces.dll b/NUnit-2.6.3/bin/lib/nunit.core.interfaces.dll deleted file mode 100644 index 4053b0dd..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit.core.interfaces.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit.uiexception.dll b/NUnit-2.6.3/bin/lib/nunit.uiexception.dll deleted file mode 100644 index 34f2f4ef..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit.uiexception.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit.uikit.dll b/NUnit-2.6.3/bin/lib/nunit.uikit.dll deleted file mode 100644 index d93d8cad..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit.uikit.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/lib/nunit.util.dll b/NUnit-2.6.3/bin/lib/nunit.util.dll deleted file mode 100644 index 122eff44..00000000 Binary files a/NUnit-2.6.3/bin/lib/nunit.util.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-agent-x86.exe b/NUnit-2.6.3/bin/nunit-agent-x86.exe deleted file mode 100644 index fe0d7198..00000000 Binary files a/NUnit-2.6.3/bin/nunit-agent-x86.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-agent-x86.exe.config b/NUnit-2.6.3/bin/nunit-agent-x86.exe.config deleted file mode 100644 index de2caf60..00000000 --- a/NUnit-2.6.3/bin/nunit-agent-x86.exe.config +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/nunit-agent.exe b/NUnit-2.6.3/bin/nunit-agent.exe deleted file mode 100644 index 6f057bc2..00000000 Binary files a/NUnit-2.6.3/bin/nunit-agent.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-agent.exe.config b/NUnit-2.6.3/bin/nunit-agent.exe.config deleted file mode 100644 index de2caf60..00000000 --- a/NUnit-2.6.3/bin/nunit-agent.exe.config +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/nunit-console-x86.exe b/NUnit-2.6.3/bin/nunit-console-x86.exe deleted file mode 100644 index c71d21ff..00000000 Binary files a/NUnit-2.6.3/bin/nunit-console-x86.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-console-x86.exe.config b/NUnit-2.6.3/bin/nunit-console-x86.exe.config deleted file mode 100644 index 81e5346c..00000000 --- a/NUnit-2.6.3/bin/nunit-console-x86.exe.config +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/nunit-console.exe b/NUnit-2.6.3/bin/nunit-console.exe deleted file mode 100644 index 8d65c825..00000000 Binary files a/NUnit-2.6.3/bin/nunit-console.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-console.exe.config b/NUnit-2.6.3/bin/nunit-console.exe.config deleted file mode 100644 index 81e5346c..00000000 --- a/NUnit-2.6.3/bin/nunit-console.exe.config +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/nunit-editor.exe b/NUnit-2.6.3/bin/nunit-editor.exe deleted file mode 100644 index 640a2533..00000000 Binary files a/NUnit-2.6.3/bin/nunit-editor.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-x86.exe b/NUnit-2.6.3/bin/nunit-x86.exe deleted file mode 100644 index bd77b815..00000000 Binary files a/NUnit-2.6.3/bin/nunit-x86.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit-x86.exe.config b/NUnit-2.6.3/bin/nunit-x86.exe.config deleted file mode 100644 index 9301f946..00000000 --- a/NUnit-2.6.3/bin/nunit-x86.exe.config +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/nunit.exe b/NUnit-2.6.3/bin/nunit.exe deleted file mode 100644 index 5cd35b91..00000000 Binary files a/NUnit-2.6.3/bin/nunit.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/nunit.exe.config b/NUnit-2.6.3/bin/nunit.exe.config deleted file mode 100644 index 9301f946..00000000 --- a/NUnit-2.6.3/bin/nunit.exe.config +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/NUnit-2.6.3/bin/nunit.framework.dll b/NUnit-2.6.3/bin/nunit.framework.dll deleted file mode 100644 index 780727f2..00000000 Binary files a/NUnit-2.6.3/bin/nunit.framework.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/pnunit-agent.exe b/NUnit-2.6.3/bin/pnunit-agent.exe deleted file mode 100644 index 9ec9da03..00000000 Binary files a/NUnit-2.6.3/bin/pnunit-agent.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/pnunit-agent.exe.config b/NUnit-2.6.3/bin/pnunit-agent.exe.config deleted file mode 100644 index c1516ef4..00000000 --- a/NUnit-2.6.3/bin/pnunit-agent.exe.config +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/pnunit-launcher.exe b/NUnit-2.6.3/bin/pnunit-launcher.exe deleted file mode 100644 index edc56d32..00000000 Binary files a/NUnit-2.6.3/bin/pnunit-launcher.exe and /dev/null differ diff --git a/NUnit-2.6.3/bin/pnunit-launcher.exe.config b/NUnit-2.6.3/bin/pnunit-launcher.exe.config deleted file mode 100644 index c1516ef4..00000000 --- a/NUnit-2.6.3/bin/pnunit-launcher.exe.config +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/pnunit.framework.dll b/NUnit-2.6.3/bin/pnunit.framework.dll deleted file mode 100644 index 573b9fcb..00000000 Binary files a/NUnit-2.6.3/bin/pnunit.framework.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/pnunit.tests.dll b/NUnit-2.6.3/bin/pnunit.tests.dll deleted file mode 100644 index 7051add9..00000000 Binary files a/NUnit-2.6.3/bin/pnunit.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/runpnunit.bat b/NUnit-2.6.3/bin/runpnunit.bat deleted file mode 100644 index 43b3a69f..00000000 --- a/NUnit-2.6.3/bin/runpnunit.bat +++ /dev/null @@ -1,3 +0,0 @@ -start pnunit-agent 8080 . -start pnunit-agent 8081 . -pnunit-launcher test.conf diff --git a/NUnit-2.6.3/bin/test.conf b/NUnit-2.6.3/bin/test.conf deleted file mode 100644 index ce825ebe..00000000 --- a/NUnit-2.6.3/bin/test.conf +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - Testing - - - Testing - pnunit.tests.dll - TestLibraries.Testing.EqualTo19 - $agent_host:8080 - - - - - - - Parallel_Tests - - - ParallelTest_A_Test - pnunit.tests.dll - TestLibraries.ParallelExample.ParallelTest_A - $agent_host:8080 - - - 2 - - - - ParallelTest_B_Test - pnunit.tests.dll - TestLibraries.ParallelExample.ParallelTest_B - $agent_host:8080 - - 1 - - - - - - - - - Parallel_Barriers - - - Parallel_Barriers_TestA - pnunit.tests.dll - TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersA - $agent_host:8080 - - - - START_BARRIER - WAIT_BARRIER - - - - Parallel_Barriers_TestB - pnunit.tests.dll - TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersB - $agent_host:8081 - - - - START_BARRIER - WAIT_BARRIER - - - - - - - - \ No newline at end of file diff --git a/NUnit-2.6.3/bin/tests/mock-assembly.dll b/NUnit-2.6.3/bin/tests/mock-assembly.dll deleted file mode 100644 index ea303743..00000000 Binary files a/NUnit-2.6.3/bin/tests/mock-assembly.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nonamespace-assembly.dll b/NUnit-2.6.3/bin/tests/nonamespace-assembly.dll deleted file mode 100644 index c46ed264..00000000 Binary files a/NUnit-2.6.3/bin/tests/nonamespace-assembly.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit-console.tests.dll b/NUnit-2.6.3/bin/tests/nunit-console.tests.dll deleted file mode 100644 index 401b63e9..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit-console.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit-editor.tests.dll b/NUnit-2.6.3/bin/tests/nunit-editor.tests.dll deleted file mode 100644 index deba6164..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit-editor.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit-gui.tests.dll b/NUnit-2.6.3/bin/tests/nunit-gui.tests.dll deleted file mode 100644 index 14a389f6..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit-gui.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.core.tests.dll b/NUnit-2.6.3/bin/tests/nunit.core.tests.dll deleted file mode 100644 index f0853a51..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.core.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.core.tests.net45.dll b/NUnit-2.6.3/bin/tests/nunit.core.tests.net45.dll deleted file mode 100644 index 1260dfad..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.core.tests.net45.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.framework.dll b/NUnit-2.6.3/bin/tests/nunit.framework.dll deleted file mode 100644 index 780727f2..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.framework.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.framework.tests.dll b/NUnit-2.6.3/bin/tests/nunit.framework.tests.dll deleted file mode 100644 index 5e2099ae..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.framework.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.framework.tests.net45.dll b/NUnit-2.6.3/bin/tests/nunit.framework.tests.net45.dll deleted file mode 100644 index 75a3d611..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.framework.tests.net45.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.mocks.tests.dll b/NUnit-2.6.3/bin/tests/nunit.mocks.tests.dll deleted file mode 100644 index b9ccf145..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.mocks.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.uiexception.tests.dll b/NUnit-2.6.3/bin/tests/nunit.uiexception.tests.dll deleted file mode 100644 index dc579ca1..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.uiexception.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.uikit.tests.dll b/NUnit-2.6.3/bin/tests/nunit.uikit.tests.dll deleted file mode 100644 index 32554d4a..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.uikit.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/nunit.util.tests.dll b/NUnit-2.6.3/bin/tests/nunit.util.tests.dll deleted file mode 100644 index 1e0b5774..00000000 Binary files a/NUnit-2.6.3/bin/tests/nunit.util.tests.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/test-assembly-net45.dll b/NUnit-2.6.3/bin/tests/test-assembly-net45.dll deleted file mode 100644 index 2e50d5f4..00000000 Binary files a/NUnit-2.6.3/bin/tests/test-assembly-net45.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/test-assembly.dll b/NUnit-2.6.3/bin/tests/test-assembly.dll deleted file mode 100644 index 6ddbe048..00000000 Binary files a/NUnit-2.6.3/bin/tests/test-assembly.dll and /dev/null differ diff --git a/NUnit-2.6.3/bin/tests/test-utilities.dll b/NUnit-2.6.3/bin/tests/test-utilities.dll deleted file mode 100644 index 5783841c..00000000 Binary files a/NUnit-2.6.3/bin/tests/test-utilities.dll and /dev/null differ diff --git a/NUnit-2.6.3/license.txt b/NUnit-2.6.3/license.txt deleted file mode 100644 index b12903af..00000000 --- a/NUnit-2.6.3/license.txt +++ /dev/null @@ -1,15 +0,0 @@ -Copyright © 2002-2013 Charlie Poole -Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov -Copyright © 2000-2002 Philip A. Craig - -This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required. - -Portions Copyright © 2002-2013 Charlie Poole or Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright © 2000-2002 Philip A. Craig - -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source distribution. diff --git a/packages/NMock3.3.5.44/NMock3.3.5.44.nupkg b/packages/NMock3.3.5.44/NMock3.3.5.44.nupkg deleted file mode 100644 index 680b713c..00000000 Binary files a/packages/NMock3.3.5.44/NMock3.3.5.44.nupkg and /dev/null differ diff --git a/packages/NMock3.3.5.44/content/NMock3/NMock3 Cheat Sheet.pdf b/packages/NMock3.3.5.44/content/NMock3/NMock3 Cheat Sheet.pdf deleted file mode 100644 index cbda7f10..00000000 Binary files a/packages/NMock3.3.5.44/content/NMock3/NMock3 Cheat Sheet.pdf and /dev/null differ diff --git a/packages/NMock3.3.5.44/content/NMock3/NMockTest.cs b/packages/NMock3.3.5.44/content/NMock3/NMockTest.cs deleted file mode 100644 index b1831186..00000000 --- a/packages/NMock3.3.5.44/content/NMock3/NMockTest.cs +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This sample test class was added when NMock3 was added - * through NuGet. It demonstrates how to mock properties, - * methods, and events. It is safe to delete if you don't - * need it. - */ - -using System; -using NMock; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace NMockTests -{ - [TestClass] - public class SampleTest - { - // - // For more samples and tutorials: http://nmock3.codeplex.com - // - - private MockFactory _factory = new MockFactory(); - - [TestCleanup] - public void Cleanup() - { - _factory.VerifyAllExpectationsHaveBeenMet(); - _factory.ClearExpectations(); - } - - [TestMethod] - public void PropertyTest() - { - var mock = _factory.CreateMock(); - mock.Expects.One.GetProperty(_ => _.Prop).WillReturn("Hello"); - mock.Expects.One.SetPropertyTo(_ => _.Prop = ", World"); - - var controller = new Controller(mock.MockObject); - Assert.AreEqual("Hello, World", controller.PropActions(", World")); - } - - [TestMethod] - public void MethodTest() - { - var mock = _factory.CreateMock(); - mock.Expects.One.MethodWith(_ => _.Method(1, 2, 3, 4)).WillReturn(new Version(5, 6, 7, 8)); - - var controller = new Controller(mock.MockObject); - var version = controller.GetVersion(1, 2, 3, 4); - - mock.Expects.One.Method(_ => _.Method(null)).With(Is.TypeOf()).WillReturn("3, 4, 5, 6"); - - var result = controller.GetVersion(version); - Assert.AreEqual("3, 4, 5, 6", result); - } - - [TestMethod] - public void EventTest() - { - var mock = _factory.CreateMock(); - var invoker = mock.Expects.One.EventBinding(_ => _.Event += null); - - var controller = new Controller(mock.MockObject); - controller.InitEvents(); - - Assert.IsNull(controller.Status); - invoker.Invoke(); - Assert.AreEqual("Event Fired!", controller.Status); - - } - - public interface ITest - { - string Prop { get; set; } - Version Method(int a, int b, int c, int d); - string Method(Version version); - event EventHandler Event; - } - public class Controller - { - public string Status; - private ITest _test; - public Controller(ITest test) - { - _test = test; - } - - public string PropActions(string arg1) - { - _test.Prop = arg1; - return _test.Prop + arg1; - } - public Version GetVersion(int a, int b, int c, int d) - { - return _test.Method(a, b, c, d); - } - public string GetVersion(Version version) - { - return _test.Method(version).ToString(); - } - public void InitEvents() - { - _test.Event += _test_Event; - } - - void _test_Event(object sender, EventArgs e) - { - Status = "Event Fired!"; - } - } - } -} \ No newline at end of file diff --git a/packages/NMock3.3.5.44/lib/net35/NMock3.dll b/packages/NMock3.3.5.44/lib/net35/NMock3.dll deleted file mode 100644 index 6a331453..00000000 Binary files a/packages/NMock3.3.5.44/lib/net35/NMock3.dll and /dev/null differ diff --git a/packages/NMock3.3.5.44/lib/net35/NMock3.xml b/packages/NMock3.3.5.44/lib/net35/NMock3.xml deleted file mode 100644 index 52687d55..00000000 --- a/packages/NMock3.3.5.44/lib/net35/NMock3.xml +++ /dev/null @@ -1,17587 +0,0 @@ - - - - NMock3 - - - - - Defines that an should be signaled. - - - - - Signals an to synchronizes threads. - - The signal to set. - Action that signals an . - - - - This interface is used to get a description of the implementator. - - - - - Describes this object. - - The text writer the description is added to. - - - - Represents the invocation of a method on an object (receiver). - - - - - Holds the exception to be thrown. When this field has been set, will become true. - - - - - Holds the result of the invocation. - - - - - Initializes a new instance of the class. - - The receiver providing the method. - The method. - The parameters passed to the method.. - - - - Invokes this invocation on the specified receiver and stores the result and exception - returns/thrown by the invocation. - - The receiver. - - - - Checks the returnType of the initialized method if it is valid to be mocked. - - The return value to be checked. - - - - Determines whether the initialized method is a property. - - - Returns true if initialized method is a property; false otherwise. - - - - - Determines whether the initialized method is an index getter. - - - Returns true if initialized method is an index getter; false otherwise. - - - - - Determines whether the initialized method is an index setter. - - - Returns true if initialized method is an index setter; false otherwise. - - - - - Describes the property with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the method with parameters to the specified . - - The writer where the description is written to. - - - - Writes the generic parameters of the method to the specified . - - The writer where the description is written to. - - - - Writes the parameter list to the specified . - - The writer where the description is written to. - The count of parameters to describe. - - - - Describes the event adder to the specified . - - The writer where the description is written to. - - - - Describes the event remover to the specified . - - The writer where the description is written to. - - - - Holds the receiver providing the method. - - - - - Returns the Receiver as an - - - - Gets the that was passed into the constructor of this - - - - Holds the method that is being invoked. - - - - - Gets the name of method or property specified by the - - - - Gets a string that represents the signature of the - - - - Gets a string that represents the signature of the property setter - - - - - Gets the return type of the method specified by the - - - - Gets the parameters of the method specified by the - - - - Gets the arguments passed into the constructor of this - - - - Holds the parameterlist of the invocation. - - - - - Gets or sets the result of the invocation. - - The result. - - - - Stores the value being assigned in a setter. - - - Used internally to store a setter value to return in an automatic getter. - - - - - Gets or sets the exception that is thrown on the invocation. - - The exception. - - - - Gets a value indicating whether an exception is thrown an this invocation. - - - true if this invocation is throwing an exception; otherwise, false. - - - - - Determines whether the initialized method is an event adder. - - - Returns true if initialized method is an event adder; false otherwise. - - - - - Determines whether the initialized method is an event remover. - - - Returns true if initialized method is an event remover; false otherwise. - - - - - Gets a value indicating if this is an event - - - - - Gets a value indicating if this is a property - - - - - Gets a value indicating if this is a property setter - - - - - Gets a value indicating if this is a property getter - - - - - Gets a value indicating if this is a method. - - - - - A matcher is used to match objects against it. - - - - - Initializes an instance of the class with an empty - - - - Initialized an instance of the class with the description argument. - - The value used when calling the method. - - - - Describes this matcher. - - The text writer the description is added to. - - - - Logical and of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Logical or of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Negation of a matcher. - - Matcher to negate. - Negation of the specified matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - A default description used when calling - - - - Matcher that negates another matcher. - - - - - Holds the matcher to negate. - - - - - Initializes a new instance of the class. - - The matcher to negate. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object does not matche the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - The definition of a mock object. - - - Implementations of this interface encapsulate the details of - how a mock object is defined, and provide the ability to be able to - instantiate an instance of it. - - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Syntax describing the initial characteristics of a new mock object. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - Allows a mock object to be incrementally defined, and then finally created. - - - - - A single empty array instance that is used as a default value - for constructor arguments. - - - - - The types that the mock object needs to implement. - - - - - Constructor arguments for any class type that this mock might subclass. - If not subclassing, or if using a default constructor, then this should - be an empty array. - - - - - The MockStyle for the mock. If not specified, this will ultimately be - assumed to be MockStyle.Default. - - - - - The name of the mock object. Null is a valid value. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Checks that interfaces do not contain ToString method declarations. - - The types that are to be mocked. - - - - Syntax defining a value. - - - - - Defines a value. - - The value matcher. - Match syntax defining the behavior of the value. - - - - Syntax for adding an explanation for the expectation. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Base class for Invoker classes that raise events. - - - - - Constructor - - - - - - - - - Holds a reference to the delegate that will be invoked. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Hooks up with the action that will be taken once a handler is added to the event. - - The action to hook the incoming handler to the event. - - - - Raises the event that created the expectations. - - Arguments for the event. - - - - An action defines something that has to be done. - For example the action to return a result value. - - - - - Invokes this object. - - The invocation. - - - - Can mock invoke any event it is feed with. - - - Code by Magnus MÃ¥rtensson - http://blog.noop.se/archive/2007/08/17.aspx - - - - - - - - - - - Invoke the event and send in parameter. - - The sender of the event. - The arguments of the call. - - - - EventInvoker is used to invoke events that definded by the . - - - An EventInvoker is created as a result of a call to the method. - - - - - Invokes the referenced event - - - - - Action that executes the delegate passed to the constructor to get argments of executed method. - - - - - constustor of GetArgumentsAction - - delegate used to get argments of executed method - - - - Action that returns the n-th element of the arguments to an invocation. - - - - - Stores the index of the argument. - - - - - Stores the parameter when this action gets invoked. - - - - - Initializes a new instance of the class. - - Index of the argument to collect. - - - - Gets the collected parameter. - - The collected parameter (n-th parameter of parameter list of the method's call. - - - - Matcher that checks whether the actual object has a property with the specified name - and its value matches the specified matcher. - - - - - Initializes a new instance of the class. - - Name of the property. - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object has a property with the expected name and expected value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a single object is in a collection of elements. - - - - - Initializes a new instance of the class. - - The collection to match against. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether to object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Represents an expectation. - - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Matcheses the ignoring is active. - - The invocation. - - - - - - Performs the specified invocation. - - The invocation. - A value indicating if the was successfully performed. - - - - Describes the active expectations to. - - The writer. - - - - Describes the unmet expectations to. - - The writer. - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of expectation validation errors - - - - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Gets a value indicating that the expectation is valid. - - - - - Gets or sets the that contains this - - - - Represents an ExpectationList - - - - - Adds an expectation. - - The expectation to add. - - - - Removes the specified expectation. - - The expectation to remove. - - - - Determines if the is in an ordered list. - - The to look for. - - - - - - Gets the root for the - - - - The nesting level of this - - - - Stores the calling depth for the document writer output. - - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Gets or sets the expectation list that contains this ordering - - - - - Gets the root for the - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Initializes a new instance of the class. - - The parent of this - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Gets the current expectation. - - The current expectation. - - - - Gets a value indicating whether this instance has next expectation. - - - true if this instance has next expectation; otherwise, false. - - - - - Gets the next expectation. - - The next expectation. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Holds the instance to the . - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - A matcher that stores a list of delegates to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a list of references to the callbacks assigned during the matching operation of the expectation. - - - - - Matches 2 objects using IComparable - - - - - - - - - - - Compares 2 objects using IComparable - - - - - - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - Matcher that matches method out parameters. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object mached is an out parameter. - - - - Describes this object. - - The text writer the description is added to. - - - - Stores the out parameter. - - - - - Stores the valuematchers given at initialization. - - - - - Creates an instance of the class. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Adds a matcher to the arguments matcher - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Returns the last argument matcher. - - Argument matcher - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - The number of value matchers - - - - - Gets a value matcher by index - - The index of the item to return - A value matcher - - - - Syntax for defining actions. - - - - - Creates the expectation of what to do when this member is called. - - Common s can be found in the and classes. - Returns the comment syntax defined after will. - - For void methods this action does not need to be used. - For non-void methods this action is typically set to use the class. - For all methods this action can be used to throw an exception using the class. - - - - - Extends the interface to include the method. - - - - - This is the strongly-typed version of the method. Use this method when - the value to return is this value (and not a matcher). - - - - - - - This version of the "Will" methods is used in place of .Will(Return.Value(obj)) when obj is known - and should be checked at compile time. The benefit is that the method takes a strongly-typed argument. The - drawback is that you can't specify a matcher. - - - - - This interface provides the syntax used for "Method" methods on the - interface that don't return void and don't use argument values explicitly. - - The return type of the method. - - This interface provides the syntax needed to specify method arguments or match - method arguments. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Action syntax defining the action to take. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - IInvokable objects can be invoked. - - - - - Invokes this object. - - The invocation. - - - - Interface for mocks. - - - - - Retrieves all matching methods on this mock. - - A Matcher to use in identifying the methods. - A list of zero or more matching MethodInfo instances. - - - - Adds an expectation to this mock. - - The expectation to add. - - - - Raises an event on this mock. - - Name of the event to fire. - The arguments passed to the event. - - - - - - - - - - Gets the name of the mock instance. This is often used in error messages - to identify a specific mock instance. - - - - - Gets a that represents all types to be mocked. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - A that stores property values from internal operations. - - - - - - - - - Results that have been explicitly assigned via a call to a property setter. - These will be returned for all subsequent calls to the matching property getter. - - - - - Stores the event handlers that could be added to the mock object. - - - - - Results that have been generated for methods or property getters. - These will be returned for all subsequent calls to the same member. - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Gets the default result for an invocation. - - The invocation. - The default value to return as result of the invocation. - if no default value was provided. - - - - Gets the name of the member to be used as the name for a mock returned an a call to a stub. - - The invocation. - Name of the mock created as a result value on a call to a stub. - - - - Gets the mock style of this mock. - - - - - Syntax defining matching criterias. - - - - - Defines a matching criteria. - - The matcher. - Action syntax defining the action to take. - - - - Implementations of this interface are responsible for generating runtime - proxies of classes and interfaces for use as mock objects. - - - Returned instances are expected to implement IMockObject and take care of - intercepting calls to their public members. Intercepted calls should be - forwarded on to the supplied MockFactory for processing against expectations. - - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - A base implementation of the interface - - - - - Combines the specified types with the into an array. - - An array of the specified types and , - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - A factory based on LinFu that creates proxy objects - - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - - - - - Invokes the delegate with the specified parameters. - - - - - - Action that sets the parameter of the invocation with the specified name to the specified value. - - - - - Stores the name of the parameter when the class gets initialized. - - - - - Stores the value of the parameter when the class gets initialized. - - - - - Initializes a new instance of the class. - - The name of the parameter to set. - The value. - - - - Action that sets a parameter (method argument) of the invocation to the specified value. - - - - - Stores the index of the paremter to set. - - - - - Stores the value of the parameter to set. - - - - - Initializes a new instance of the class. - - The index of the parameter to set. - The value. - - - - Represents an that returns a result. - - - - - The return type of this - - - - Action that set the result value of an invocation to a clone of the specified prototype. - - - - - Stores the prototype that will be cloned. - - - - - Initializes a new instance of the class. - - The prototype. - - - - Action that sets the result value on an invocation. The value is aquired by calling the delegate specified in the constructor. - - - - - Delegate that is used to get the return value. - - - Returns an object... - - - - - Stores the evaluate delegate for this action. - - - - - Initializes a new instance of the class. - - The delegate used to aquire the return value. - - - - This class represents a stub. - - - - - - - A syntax property used to stub out data for this instance. - - - - - Matcher that checks whether the actual value contains the expected substring. - - - - - Initializes a new instance of the class. - - The substring that is expected. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is a string and contains the expected substring. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether the expected and actual value are equal. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Matcheses the specified actual. - - The actual value. - Whether the expected value is equal to the actual value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Syntax defining a method, property or event (de)registration. - - - - - Sets up an expectation that a protected method will be called. - - The name of the method. - - Argument syntax defining the arguments of the method. - - - - - - - - - - - - - - - - - Action that returns an item from the queue - - - - - Initializes a new instance of the class with the queue of values. - - - - - - - Represents an that can call a delegate to provide the return value. - - The type to return. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Matcher that checks whether to actual value is equal to null. - - - - - Initializes an instance of the class with a description of null. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is equal to null. - - - - Used to describe Matchers and other classes for exception handling. - - - - - Writes the text representation of an object to the text stream by calling ToString on that object. - - The object to write. - - The is closed. - - - An I/O error occurs. - - - - - Formats the given depending on null and the type of the value. - - The value to format. - Returns the formatted string. - - - - Replaces backslashes with three escaped backslashes. - - The string to replace backslashes. - Returns the escaped string. - - - - Used as a base for interface mocks in order to provide a holder - for a meaningful ToString() value. - - - - - Default constructor used by Castle.DynamicProxy. - - Do not remove. This is needed by Castle. - - - - Initializes a new instance of the class. - - The name of this instance. - - - - Returns the name of this instance. - - The name of this instance. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - true if the specified is equal to the current ; otherwise, false. - - - - Serves as a hash function for a particular type. - - A hash code for the current System.Object. - - - - Action that fires an event. - - - - - Stores the event arguments. - - - - - Stores the name of the event to fire. - - - - - Initializes a new instance of the class. - - Name of the event. - The event args. - - - - Specifies how a mock object should behave when it is first created. - - - - - Calls to members that do not have expectations set will - result in ExpectationExceptions. - - - - - Calls to members that do not have expectations set will - pass through to the underlying implementation on the class - being mocked. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Matcher that checks whether the actual object can be assigned to the expected type. - - - - - Initializes a new instance of the class. - - The expected type. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object castable to the expected type. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher for indexer getters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - This interface adds a special method for property expectations. - - - - - - - Sets up an expectation that calls an action to return the value of the property - that was previously set in code or prior expectation. - - - - - It is useful in cases where a value is assigned to a property internally in a method - and only a could be used to match the assignment. This method - is called on a getter expectation to get that underlying value. - - - - - Used to set up expectations on types that are not mocks. - - - - - Creates an expectation related to the type of thrown. - - The method that should cause the exception. Hint: use () => to convert a method to an action. - An object to complete the expectation - Use this in place of a [ExpectedException] unit test attribute. - - - - Default expectation, specifies that a method, property, etc. that has to be called at least once. - - The receiver. - Returns a receiver of a method, property, etc. that has to be called at least once. - - - - An that can invoke an when the expectation is met. - - - - - Creates an that will invoke the . - - The action to invoke. - - - - A syntax class to create an in a easy to read way. - - - - - A syntax method to create an class. - - The to invoke when the in invoked. - An instance of an class. - - - - Provides shortcuts to matchers. - - - - - Returns a matcher for testing string representation of objects. - - The wrapped matcher. - Returns a for testing string representation of objects. - - - - Returns a matcher for checking property values. - - Name of the property. - The value matcher. - Returns a for checking property values. - - - - Returns a matcher for checking field values. - - Name of the field. - The value matcher. - Returns a for checking field values. - - - - Matcher that checks whether the actual value in string representation (actual.ToString()) - matches with the wrapped matcher. - - - - - Holds the wrapped matcher. - - - - - Initializes a new instance of the class. - - The wrapped matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object in string representation (o.ToString()) matches the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a value matches the check provided as a delegate. - the expectation. - - The type of the expected value. - - - - The test that is performed to check if the matches the expectation. - - The actually received value. - True then value matches the expectation. - - - - The test that is performed to see if the value matches the expectation. - - - - - Initializes a new instance of the class. - - The test that is performed to check if the value matches expectation. - - matchExpression is null. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - This interface ties together the and - interfaces to provide syntax on . - - The property type of the lambda expression. - - This interface doesn't provide any new members. It is used to tie together two existing - interfaces so that the - method will return the right syntax. - - - - - A matcher that uses lambda expressions to perform matching - - - - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - A message to describe the expectation. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Manages a list of parameters for a mocked method together with the parameter's values. - - - - - Holds a boolean for each value if it was set or not. - - - - - Holds the method to be mocked. - - - - - An array holding the values of the parameters. - - - - - Initializes a new instance of the class. - - The method to be mocked. - The values of the parameters. - - - - Determines whether the value specified by index was set. - - The index. - - Returns true if value specified by index was set; otherwise, false. - - - - - Marks all values as set. - - - - - Determines whether the parameter specified by index can be set. - - The index of the parameter. - - Returns true if the parameter specified by index can be set; otherwise, false. - - - - - Gets the parameter name by index. - - The index of the parameter name to get. - - Returns the parameter name with the given index. - - - - - Gets the number of values. - - The number of values. - - - - Gets the values as array. - - Values as array. - - - - Gets or sets the with the specified index. - - The index of the value to be get or set. - - The value of a parameter specified by its . - - - - - Initializes a new instance of the class. - - The parent of this instance. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Performs the specified invocation on the corresponding expectation if a match was found. - - The invocation to match. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Initializes a new instance of the class. - - The expectation description. - The required count matcher. - The matching count matcher. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Adds itself to the if the matches - the specified . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of validation errors - - - - - - - Represents one or more types that are to be mocked. Provides operations - that work over top of all the contained types, as well as a means of - grouping and identifying unique combinations of types. - - Duplicate types are ignored when added. Only interface and class types are - supported, and there may only be a maximum of one class type per CompositeType instance. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The types to include in the CompositeType. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The first type to include in the CompositeType. This cannot be null. - Zero or more further types to include in the CompositeType. - This constructor is mostly included for convenience. - - - - Adds a to this instance - - - - - - - Determines whether the specified CompositeType is equal to the current CompositeType. - - The CompositeType to compare with the current CompositeType. - true if the specified CompositeType is equal to the current CompositeType; otherwise, false. - - - - Gets any methods of the contained type(s) that match the specified matcher. - - The matcher. - if set to true then only the first match is returned. - The methods of the contained type(s) that match the specified matcher. - Only non-private methods can be matched. - - - - Returns the hash code for this instance. - - An Int32 containing the hash code for this instance. - - - - Determines whether the specified Object is equal to the current CompositeType. - - The Object to compare with the current CompositeType. - true if the specified Object is equal to the current CompositeType; otherwise, false. - - - - Returns a String that represents the current CompositeType. - - A String that represents the current CompositeType. - - - - Initializes the specified types. - - The types. - - - - Gets the interfaces implemented by the specified type. - - The interface type to inspect. - The interfaces implemented by the specified type. - - - - Filters out private methods. - - The method to test for visibility. - True if the method is not private, otherwise false. - - - - Gets the 'primary' type we are mocking. This may be a class or an interface - and will determine the proxy generation method that will be used. - - - - - Gets any additional types to be mocked. These will always be interfaces. - - - - - Gets all types of this instance. - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Matcher that checks whether the actual object is a and its name is equal to the expected name. - - - - - Initializes a new instance of the class. - - The expected name of the method. - - - - Initializes a new instance of the class with a method name and declaring type - - - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Matcher that checks whether the actual object is a and its signature matches the expected signature. - - - - - Initializes a new instance of the class. - - The expected method reference. - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Syntax methods that are used specifically for stubbing. - - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are ignored, use the result of this - method to specify the expected arguments. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will not use the parameters supplied to the method call. - Parameters must be supplied in order for the code to compile. Use the or - methods - as part of the return type of this method. As an alternative, use the method which - will use the parameters supplied to the method as part of the expectation. - - - The method should not be used from this method. This method - is used for return types, therefore a return expectation is not needed. - - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.Method(m=>m.MethodName("IgnoredParam")).With("RealParam"); - - - - - Creates an expectation that this method will be called. The arguments are ignored, use the - result of this method to specify the expected arguments. - - A method call expression that specifies the expected method. - An object used to specify expected arguments or return value. - - - mock.Expects.One.Method(m=>m.MethodName("", 3)).Will(Return.Value(true)); - mock.Expects.One.Method(m=>m.MethodName()).WillReturn(7); - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will use the parameters supplied to the method call. - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.MethodWith(m=>m.MethodName("RealParam")); - - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An object used to specify the return value of the method. - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - The value to be returned when the method is called. - An object used to specify the explanation for the expectation. - Compare this method to other versions of this overloaded method in the See Also section. - - - - Creates an expectation that this property will be accessed. - - The property data type. - The expression to extract the property name. - An that can be used to set the return value. - - - - Creates an expectation that this property will be accessed and it should return the specified value. - - The property data type. - A lambda expression to extract the property name. - The value to be returned when the property is accessed. - An object to add comments about this expectation. - - Use this method as a shorthand to . - It sacrifices syntactic sugar but reduces the number of characters to type. - - - - - Creates an expectation that a will be bound to an event. The type of binding will be infered from the use of += or -=. - - - - - - - If a binding expectation uses null, any arguments will be allowed. - If a binding references a specific , the expectation will expect that delegate. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - - - - Use to bind to is used. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - The type of event args for the - - - - - - Tracks the expectations created by its s and s. - - - The MockFactory is a main component of the NMock3 API. It is used to create - instances and instances of a or . - - - - - A popper pops an expectation ordering from the expectations stack on disposal. - - - - - Initializes a new instance of the class. - - The mockFactory. - The previous. - - - - Pops the expectation ordering from the stack. - - - - - The mock object factory that is being used by this MockFactory instance. - - - - - Holds all mapping from mocks/types to mock styles. - - - - - The delegate used to resolve the default type returned as return value in calls to mocks with stub behavior. - - - - - If an unexpected invocation exception is thrown then it is stored here to re-throw it in the - method - exception cannot be swallowed by tested code. - - - - - A field to store s if and Expectation is incomplete - - - - - Expectations at current nesting level. - - - - - Creates a default . - - - Default classes do not ignore unexpected incovations. - - - - - Creates a with all of the default values. - - The type of mock to create. - - - - - - Creates a with the specified name. - - The type of mock to create. - - - - - - - - Creates a with the specified . - - The type of mock to create. - - - - - - - - Creates a with the specified and additional types. - - The type of mock to create. - - - - - - - - - - Creates a with the specified name and . - - The type of mock to create. - - - - - - - - - - Creates a of the primary type and the specified additional types - - The type of mock to create. - - - - - - - - Creates a with the specified constructor arguments. - - The type of mock to create. - - - - - - - - Creates a instance. Use the class as a parameter. - - The type of mock to create. - - - - - - This method gives the developer the most control when creating the mock because they can - specify all parts of the mock definition. - - - - - Creates a using the specified arguments. - - The type of mock to create. - - - - - - - - - - - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - An to create the mock from. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - The name of the mock. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Gets a disposable object and tells the mockFactory that the following expectations are ordered, i.e. they have to be met in the specified order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the ordered expectation mode is set back to the mode it was previously - to call to . - - - - Gets a disposable object and tells the mockFactory that the following expectations are unordered, i.e. they can be met in any order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the unordered expectation mode is set back to the mode it was previously - to the call to . - - - - Disposes the mockFactory be verifying that all expectations were met. - - - - - Suppresses when the factory would throw an exception on unmet or unexpected expectations until the next time - VerifyAllExpectationsHaveBeenMet() is called. - - - - - Allows the default to be replaced with a different implementation. - - The System.Type of the implementation to use. - This is expected to implement and have a default constructor. - - - - Changes the current MockObjectFactory to a user defined one. - - The new factory - - - - Creates a new named dynamic mock of the specified type and allows the style - of the mock to be specified. - - The type to mock. - A name for the mock that will be used in error messages. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A named mock. - - - - Verifies that all expectations have been met. - Will be called in , too. - - A value indicating if exceptions that have already been thrown should be thrown again. - - - - Verifies that all expectations have been met. - Will be called in , too. - - - - - Sets the resolve type handler used to override default values returned by stubs. - - The resolve type handler. - - - - Sets the mock style used for all properties and methods returning a value of any type of the . - Can be overridden with a type specific mock style with . - - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The type of the stub. - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The mock (with mock style Stub). - Type of the nested mock. - The nested mock style. - - - - Clears all expectation on the specified mock. - - The mock for which all expectations are cleared. - - - - Adds the expectation. - - The expectation. - - - - Resolves the return value to be used in a call to a mock with stub behavior. - - The mock on which the call is made. - The type of the return value. - The object to be returned as return value; or - if the default value should be used. - - - - Gets the mock style to be used for a mock created for a return value of a call to mock with stub behavior. - - The mock that wants to create a mock. - The type of the requested mock. - The mock style to use on the created mock. Null if has to be used. - - - - Dispatches the specified invocation. - - The invocation. - - - - Determines whether there exist expectations for the specified invocation. - - The invocation. - - true if there exist expectations for the specified invocation; otherwise, false. - - - - - Casts the argument to . - - The object to cast. - The argument casted to - Thrown if is null - Thrown if is not a - - - - Resets the state of the factory. - - - Use this method after expected exceptions. - - - - - Clears thrown unexpected exceptions so that a new exception will be thrown. - - - - - Pushes the specified new ordering on the expectations stack. - - The new ordering. - Disposable popper. - - - - Pops the specified old ordering from the expectations stack. - - The old ordering. - - - - Throws an exception listing all unmet expectations. - - - - - Throws an exception indicating that the specified invocation is not expected. - - The invocation. - - - - Delegate used to override default type returned in stub behavior. - - The mock that has to return a value. - Type of the return value. - The object to return as return value for the requested type. - - - - Matcher for indexer setters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - BinaryOperator is an abstract base class for matchers that combine two matchers into a single matcher. - - - - - The left hand side of the binary operator. - - - - - The right hand side of the binary operator. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - This class contains extension methods to support other classes. - - - - - Returns a string representing grammatically correctness of n times depending on the value of . - - An integer value representing n times. - The string ' time' or ' times'. - - - - Returns the default name for a type that is used to name mocks. - - The type to get the default name for. - Default name for the specified type. - - - - Finds the first lower case char in the specified string. - - The string to inspect. - the first lower case char in the specified string. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Used by NMock framework to make sure two lists are equal. - - - - - Constructor - - The list containing the expected results. - - - - Called by NMock to verify o corresponds to the source list. - - List to compare against the source list for equality. - True: the two lists have the same number of items and their items are equal. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that is the logical and combination of two matchers. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Contains the methods that define the expectation for either a property, method, or event. - - The interface or class being mocked. - - This interface defines generic methods that take lambda expressions. - - - - - Creates an expectation that this property will be set to a value specified in the - result of this method. The value used in the expression - is ignored. - - - - A set property expression that specifies the property to be set. - - If the property specified in the expression has a getter, a value isn't required in the expression. - - mock.Expects.One.SetProperty(p => p.Prop) - - instead of - - mock.Expects.One.SetProperty(p => p.Prop = "Ignored Value") - - The code above only needs to be used in cases where the property is write-only. - - - - - - - Creates an expectation that this property will be set to the specified value. - - z => z.prop = 0 - An object to specify the comment for the expectation. - - - - This class represents a mock object of an interface or class. To create a , - use a . - - The type to mock. - - - - public class TestClass - { - public void TestMethod() - { - MockFactory factory = new MockFactory(); - Mock<ISample> mock = factory.CreateMock<ISample>(); - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - new Driver(mock.MockObject).Drive(3); - } - } - - public interface ISample - { - int Prop {get; set;} - } - - public class Driver - { - public Driver(ISample sample) - { - Sample = sample; - } - public int Sample {get;set;} - public void Drive(int value) - { - Sample.Prop = value; - } - } - - - - - - - - - - - - - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - This method will not throw an exception if the cast is not successful. It will return null. Use to specify if an exception should be thrown. - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - - - - - Use this method to specify if an exception should be thrown when a cast is not valid. - - - - Overriden ToString method that throws an exception when called so that the deloper does not - confuse this ToString with the ToString of the property. - - The name of the - - - - - Clears all expectations of this mock. - - - Use this method to clear expectations in a test before the test cleanup runs - to avoid unmet expectations. It is useful when testing error conditions. - - - - - An object of type to be used whenever the Mocked object is needed. - - - This property provides access to the proxy that is mocking the actual type. Use this property - when a reference to an object that is of the mocked type is needed. - - - This example shows how a presenter needs arguments of the right type during construction. The - MockObject property is used because the presenter can't be instantiated with a - argument. - - interface IView { ... } - interface IModel { ... } - - Mock<IView> view = factory.CreateMock<IView>(); - Mock<IModel> view = factory.CreateMock<IModel>(); - - Presenter p = new Presenter(view.MockObject, model.MockObject); - - - - - A syntax property used to access members that specify the number of times an expectation could occur. - - This would be considered to be the main property of a class. This property - provides access to all other expectation setup methods. - - In this example: - mockis an instance of a .Expectsrefers to this property.Oneis the number of times this action is expected.SetPropertyTois the type of expection. means the mock expects a property to be set to a value.mis the variable in our anonymous method that represents the mocked interface or class.Propis the property on the mocked interface or class that the expectation is for. It will be set to the value 3. - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - - View more of this code in the example. - - - - - A syntax property that returns a class to stub out a member on the Mock. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - Gets or sets a value indicating if an exception should be thrown when the is called. - - - - - Returns the name of the underlying proxy - - - - - A matcher that stores a delegate to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a reference to the callback assigned during the matching operation of the expectation. - - - - - Action that calls the collect delegate passed to constructor with the n-th element of the arguments to an invocation. - - Type of the argument to collect. - - - - Delegate that is called on collecting an argument. - - The collected generic parameter. - - - - Stores the index of the argument. - - - - - Stores the collect delegate. - - - - - Initializes a new instance of the class. - - Index of the argument. - The collect delegate. - - - - Defines action for throwing actions. - - - - - Throws an exeception when the action is invoked. - - The exception to throw when invoked. - Returns a new instance of the class. - - - - Provides shortcuts to s. - - - - - Matches anything. - - - - - Matches nothing. - - - - - Matches if the value is null. - - - - - Matches if the value is not null. - - - - - Matches out parameters of methods. - - - - - Matches objects the are equal to the expected object. - - The expected. - Returns a new instance of the class. - - - - Matches an expected object. - - The expected object. - Returns a new instance of the class. - - - - Matches objects that implement the interface. - - The instance to be compared. - Returns a new instance of the class. - - - - Matches strings containing the specified . - - The substring. - Returns a new instance of the class. - - - - Matches objects that are greater than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are at least equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects less than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are less or equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects in the specified collection. - - The collection with objects to match. - Returns a new instance of the class. - - - - Matches objects in the specified elements. - - The elements to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - - Returns a new instance of the class. - - - - - Matches objects against the specified expression. - - Type of the value to match. - The match expression. - returns a new instance of the . - - - - Syntax for defining expected arguments of a method call. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - The specified arguments are converted to s. Matchers - as well as non-Matchers can be used interchangably in the method. - - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that any arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Matcher syntax. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - Initializes a new instance of the class. - - The builder. - - - - A flag that specifies if the expectation was set up using 'MethodWith' in which case an ExpectationException is not thrown - when the method takes no arguments. - - - - - Initializes a new instance of the class. - - The description. - The required count matcher. - The matching count matcher. - - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines a matching criteria. - - The matcher. - - Action syntax defining the action to take. - - - - - Defines what will happen. - - The actions to take. - - Returns the comment syntax defined after will. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Methods the specified method name. - - Name of the method. - - - - - - Defines a method. - - Matcher for matching the method on an invocation. - - Argument syntax defining the arguments of the method. - - - - - Gets the property. - - Name of the property. - - - - - - Sets the property. - - Name of the property. - - - - - - Defines the receiver. - - The dynamic mock on which the expectation or stub is applied. - Method syntax defining the method, property or event. - - - - Converts the object array into a List of matchers. - - The expected arguments. - - - - - - Ensures the matching method exists on mock. - - The method matcher. - The method description. - - - - Gather information about invocations. - - - - - Calls the specified with the method argument at index . - Can only be used as action of an expectation on a method call. - - The type of the argument. - Index of the argument. - The collect delegate. - Action that collects a method argument. - - - - Calls the specified with the value that is set to the property. - Can only be used as action of an expectation on a property setter. - - The type of the value. - The collect delegate. - Action that collects a property value. - - - - Defines the initial characteristics of a new mock object. - This is normally used in conjunction with - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - - The name for the mock. - The mock object definition. - - - - Returns a default implementation of . - - - - - Action that executes the delegate passed to the constructor. - - - - - Delegate that is executed on invocation of the action. - - - - - Stores the handler of the delegate action. - - - - - Initializes a new instance of the class. - - The action handler. - - - - A syntax class to setup expectations on methods when they throw exceptions. - - - - - Creates an instance of this class specifying the action that will throw an exception - - - - - - - Indicates that this method will throw an . - - - - - Indicates that this method will throw an . - - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - The type of to throw. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - This syntax class contains properties that control - the number of expectations added for the referenced . - - The class or interface that is being mocked. - - is the return type of the main property used on a instance. You - access it by typing mockObject.Expects.The class provides access to - all other methods that help create expectations. - - - - Initializes a new instance of the class with the specified type as the template. - - - - - - - Creates an expectation for at least count number of calls for the referenced member. - - The minimum number of calls expect - An to reference the expected call. - - - - Creates an expectation for at most count number of calls for the referenced member. - - The maximum number of calls expect - An to reference the expected call. - - - - Creates an expectation for a range from minCount to maxCount number of calls for the referenced member. - - The minimum number of expected calls. - The maximum number of expected calls. - An to reference the expected call. - - - - Creates an expectation for exactly count number of calls for the referenced member. - - The exact number of calls expect - An to reference the expected call. - - - - Creates an expectation for at least one call of the referenced member. - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Specifies that there should be no calls to the referenced member. - - - - - Creates an expectation for one call of the referenced member. - - - - - Matcher that checks whether the specified field of the actual object matches with the specified matcher. - - - - - Name of the field to match against the . - - - - - The value used to match the field of the object under investigation. - - - - - Initializes a new instance of the class. - - Name of the field to match against the . - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks a value against upper and lower bounds. - - - - - Stores the maximum comparison result for a successful match. - - - - - Stores the minimum comparison result for a successful match. - - - - - Stores the value to be compared. - - - - - Initializes a new instance of the class. - - The value to compare. - The first allowed comparison result (result of value.CompareTo(other)). - The second allowed comparison result (result of value.CompareTo(other)). - Thrown when one value is -1 and the other is 1. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object compared to the value resulted in either of both specified comparison results. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Extends by adding other syntax methods. - - - - - Creates an expectation that this property can be set to any value. - - - - - - - Creates an expectation that the property will be set to this value. - - - - - - - - - Class that creates mocks for interfaces and classes (virtual members only) using the - Castle proxy generator. - - - - - A collection of types - - - - - Initializes a new instance of a - - - - Initializes a new instance of a - A value indicating if the ProxyBuilder should be persistent - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - Action that sets the result value on an invocation. - - - - - Stores the result to set on the invocation as the return value. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Invokes this object. Sets the result value of the invocation. - - The invocation. - - - - Describes this object. - - The text writer the description is added to. - - - - Gets the type of the template parameter . - - - - - Action that sets the result value on an invocation. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Verify that a condition is met. - - - - - Verifies that the is matched by the . - - The actual value to match. - The matcher. - The error message. - The format args for the error message. - Thrown if value does not match. - - - - Verifies that the is matched by the . - - The actual value. - The matcher. - Thrown if value does not match. - - - - Writes the description of a failed match to the specified . - - The where the description is written to. - The actual value to be written. - The matcher which is used for the expected value to be written. - - - - Provides shortcuts to s that return values - - - - - Returns the specified value as an object. - - The value to return. - An action that returns the specified value. - - - - Returns the specified value as a strongly-typed value. - - The value to return. - An action that returns the specified value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Specifies a queue of return values to be used for each call to the expectation. - - The type that needs to be returned. - The of items to be returned. - An action that will return one value each time the expectation is met. - - - - Returns a clone as method return value. - - The prototype to clone. - Action defining the return value of a method. - - - - Defines the value returned by an out parameter. - - Name of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - Defines the value returned by an out parameter. - - Index of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - short cut to initialize GetArgumentAction - - - - - Create a GetArgumentAction to get arments of invoked method - - delegate used to get argments of executed method - - - - - - Matcher that combines two matcher with a logically or. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches one of the two combined matchers. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - An ordered list of type 's each matching a single method argument. - - - - - Initializes a new instance of the class and specifies no generic types. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Initializes a new instance of the class and specifies the types to match. - - The types to match. (Typically a result of the method. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - Determines whether the arguments of the invocation matches the initial arguments. - - The invocation to match against the initial arguments. - - Returns true if invocation matches the initial arguments; false otherwise. - - - - - Determines whether all argument types of the generic method matches the invocation. - - The invocation to match against the initial argument types. - - Returns true if invocation types matches the inital argument types; false otherwise. - - - - - Matcher that is used to change the description the wrapped matcher. - - - - - Initializes a new instance of the class. - - The new description for the wrapped matcher. - The matcher to wrap. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the wrapped matcher matches. - - - - Stores the matcher to wrap. - - - - - A matcher that will always or never match independent of the value matched but depending on how it is initialized. - - - - - Initializes a new instance of the class. - - if set to true the matcher will always match, otherwise it will never match. - The description which will be printed out when calling . - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Responsible for handling the results of an invocation. - - - - - Stores the default results. - - - - - Stores the results. - - - - - Sets the result of the specified . - - The type to be returned as a result. - The result to be set. - - - - Gets a new the empty array of the specified . - - Type of the array to be returned. - - Returns a new empty array of the specified . - - - - - Action that sets the exception of an invocation. - - - - - Stores the exception to be thrown. - - - - - Initializes a new instance of the class. - - The exception. - - - - Provides functionality to map stubs and specific types of a stub to mock styles. - - - - - Key into the dictionary. - - - - - Initializes a new instance of the class. - - The mock object. - Type of the nested mock. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Gets the mock. - - The mock object. - - - - Gets the type of the nested mock. - - The type of the nested mock. - - - - holds mappings from stub to mock style (holds for all types unless there is a mapping defined in . - - - - - holds mappings from stub.type to mock style. - - - - - Gets or sets the mock style for the specified mock. - - the mock object - mock style. null if no value defined. - - - - Gets or sets the mock style for the specified mock and type. - - the mock object - the type of the nested mock. - mock style. null if no value defined. - - - - Represents a delegate in an expectation that can be matched - - - - - Initializes an instance of this class with a to match. - - - - - - - Determines if this delegate matches the specified parameter - - The delegate to match - true if the delegates match, false if the object is null or does not match - - - - Exception representing an expectation exception. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Creates and returns a string representation of the current exception. - - - A string representation of the current exception. - - - - - Represents an unexpected action during the course of exercising a unit test - - - - - Constructs a with the given parameters. - - The MockFactory that threw this exception - The unexpected invocation - The expectations collection to describe - A message to help the user understand what was unexpected - - - - Gets the exception's message - - - - - Represents an expectation that was not met after has been called - - - - - Initializes the exception with a message - - - - - - - Wraps an exception and provides a message - - - - - - - - - Represents an expectation that was not completely filled out - - - - - Initializes an exception with a message - - - - - - - Defines public constants - - - - - A string that represents the name and Public Key of the NMock assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - A string that represents the name and Public Key of the DynamicProxyGenAssembly assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - The NMock Public Key string. - - - This string is used internally to reference the public key. - - - - - Action that signals an event. - You can use this action to synchronize threads when an expectation is invoked. - - - - - Stores the wait handle to be signalled. - - - - - Initializes a new instance of the class. - - The signal. - - - - Gets the signal. - You can use this signal to wait for this action beeing invoked. - - The signal. - - - - General purpose class to represent a standard pair of values. - - Type of the first value - Type of the second value - - - - Constructs a pair with its values - - - - - - - - - Manages the instantiation of s. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - NullLogFactory used when logging is turned off. - - - - - Creates an instance of ILogger with the specified name. - - Name. - - - - - - Creates an instance of ILogger with the specified name and LoggerLevel. - - Name. - Level. - - - - - - Get the proxy target (note that null is a valid target!) - - - - - - - Gets the interceptors for the proxy - - - - - - - Abstracts the implementation of proxy type construction. - - - - - Creates a proxy type for given , implementing , using provided. - - The class type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified class and interfaces. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type that proxies calls to members on , implementing , using provided. - - The interface type to proxy. - Additional interface types to proxy. - Type implementing on which calls to the interface members should be intercepted. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface that 'proceeds' executions to the specified target. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface(s) that delegate all executions to the specified interceptors - and uses an instance of the interface as their targets (i.e. ), rather than a class. All classes should then implement interface, - to allow interceptors to switch invocation target with instance of another type implementing called interface. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given that delegates all calls to the provided interceptors. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface and additional interfaces that delegate all executions to the specified interceptors. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Gets or sets the that this logs to. - - - - - Gets the associated with this builder. - - The module scope associated with this builder. - - - - Contract for dynamic value resolution. - - - - - Contract for typed dynamic value resolution. - - - - - - - Helper class for retrieving attributes. - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Gets the attributes. Does not consider inherited attributes! - - The member. - The member attributes. - - - - Gets the type attribute. - - The type. - The type attribute. - - - - Gets the type attributes. - - The type. - The type attributes. - - - - Gets the type converter. - - The member. - - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Defines the contract for customizing dictionary access. - - - - - Copies the dictionary behavior. - - null if should not be copied. Otherwise copy. - - - - Determines relative order to apply related behaviors. - - - - - Defines the contract for building typed dictionary keys. - - - - - Builds the specified key. - - The dictionary adapter. - The current key. - The property. - The updated key - - - - Contract for editing the Dictionary adapter. - - - - - Contract for managing Dictionary adapter notifications. - - - - - Contract for validating Dictionary adapter. - - - - - Contract for creating additional Dictionary adapters. - - - - - Contract for manipulating the Dictionary adapter. - - - - - Assigns a property to a group. - - - - - Constructs a group assignment. - - The group name. - - - - Constructs a group assignment. - - The group name. - - - - Gets the group the property is assigned to. - - - - - Assigns a specific dictionary key. - - - - - Contract for dictionary meta-data initialization. - - - - - Initializes the given object. - - The dictionary adapter factory. - The dictionary adapter meta. - - - - Determines whether the given behavior should be included in a new - object. - - A dictionary behavior or annotation. - True if the behavior should be included; otherwise, false. - - behaviors are always included, - regardless of the result of this method. - - - - - Represents a 'streamable' resource. Can - be a file, a resource in an assembly. - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - - - Returns an instance of - created according to the relativePath - using itself as the root. - - - - - - - - - - - Only valid for resources that - can be obtained through relative paths - - - - - - - - - This returns a new stream instance each time it is called. - It is the responsibility of the caller to dispose of this stream - - - - - Wraps a reference that is passed - ByRef and provides indirect load/store support. - - - - - Performs some basic screening and invokes the - to select methods. - - - - - - - - - - - - - Contract for dictionary validation. - - - - - Determines if is valid. - - The dictionary adapter. - true if valid. - - - - Validates the . - - The dictionary adapter. - The error summary information. - - - - Validates the for a property. - - The dictionary adapter. - The property to validate. - The property summary information. - - - - Invalidates any results cached by the validator. - - The dictionary adapter. - - - - Defines the contract for building typed dictionary adapters. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - The property descriptor. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the namedValues. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the namedValues. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the . - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the . - - The type represented by T must be an interface with properties. - - - - - Gets the associated with the type. - - The typed interface. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - The property descriptor. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - Another from which to copy behaviors. - The adapter meta-data. - - - - Defines the contract for retrieving dictionary values. - - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - Manages conversion between property values. - - - - - Initializes a new instance of the class. - - The converter. - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - - - - - Contract for property descriptor initialization. - - - - - Performs any initialization of the - The property descriptor. - The property behaviors. - - - - Suppress property change notifications. - - - - - Support for on-demand value resolution. - - - - - Initializes a new instance of the class. - - The hook. - - - - Initializes a new instance of the class. - - - - - Default implementation of interface producing in-memory proxy assemblies. - - - - - Initializes a new instance of the class with new . - - - - - Initializes a new instance of the class. - - The module scope for generated proxy types. - - - - ProxyBuilder that persists the generated type. - - - The saved assembly contains just the last generated type. - - - - - Initializes a new instance of the class. - - - - - Saves the generated assembly to a physical file. Note that this renders the unusable. - - The path of the generated assembly file, or null if no assembly has been generated. - - This method does not support saving multiple files. If both a signed and an unsigned module have been generated, use the - respective methods of the . - - - - - Interface describing elements composing generated type - - - - - Base class that exposes the common functionalities - to proxy generation. - - - - - It is safe to add mapping (no mapping for the interface exists) - - - - - - - - - - - Generates a parameters constructor that initializes the proxy - state with just to make it non-null. - - This constructor is important to allow proxies to be XML serializable - - - - - Substitutes part of key with another string. - - - - - Initializes a new instance of the class. - - The old value. - The new value. - - - - Abstract adapter for the support - needed by the - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - An element with the same key already exists in the object. - key is null. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - key is null. - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - The object is read-only.-or- The has a fixed size. - key is null. - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - The type of the source cannot be cast automatically to the type of the destination array. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - - - - Gets a value indicating whether the object has a fixed size. - - - - true if the object has a fixed size; otherwise, false. - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - Gets or sets the with the specified key. - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Adapts a static string content as an - - - - Depicts the contract for resource factories. - - - - - Used to check whether the resource factory - is able to deal with the given resource - identifier. - - - Implementors should return true - only if the given identifier is supported - by the resource factory - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - - - Provides a factory that can produce either or - classes. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Encapsulates an invocation of a proxied method. - - - - - Gets the value of the argument at the specified . - - The index. - The value of the argument at the specified . - - - - Returns the concrete instantiation of the on the proxy, with any generic - parameters bound to real types. - - - The concrete instantiation of the on the proxy, or the if - not a generic method. - - - Can be slower than calling . - - - - - Returns the concrete instantiation of , with any - generic parameters bound to real types. - For interface proxies, this will point to the on the target class. - - The concrete instantiation of , or - if not a generic method. - - In debug builds this can be slower than calling . - - - - - Proceeds the call to the next interceptor in line, and ultimately to the target method. - - - Since interface proxies without a target don't have the target implementation to proceed to, - it is important, that the last interceptor does not call this method, otherwise a - will be thrown. - - - - - Overrides the value of an argument at the given with the - new provided. - - - This method accepts an , however the value provided must be compatible - with the type of the argument defined on the method, otherwise an exception will be thrown. - - The index of the argument to override. - The new value for the argument. - - - - Gets the arguments that the has been invoked with. - - The arguments the method was invoked with. - - - - Gets the generic arguments of the method. - - The generic arguments, or null if not a generic method. - - - - Gets the object on which the invocation is performed. This is different from proxy object - because most of the time this will be the proxy target object. - - - The invocation target. - - - - Gets the representing the method being invoked on the proxy. - - The representing the method being invoked. - - - - For interface proxies, this will point to the on the target class. - - The method invocation target. - - - - Gets the proxy object on which the intercepted method is invoked. - - Proxy object on which the intercepted method is invoked. - - - - Gets or sets the return value of the method. - - The return value of the method. - - - - Gets the type of the target object for the intercepted method. - - The type of the target object. - - - - - - - - - - - - - - For interface proxies, this will point to the - on the target class - - - - - Initializes a new instance of the class. - - The name. - Type declaring the original event being overriten, or null. - - - The add method. - The remove method. - The attributes. - - - - Summary description for NewArrayExpression. - - - - - Contract for value matching. - - - - - Defines the contract for building s. - - - - - Builds the dictionary behaviors. - - - - - - - Indicates that underlying values are changeable and should not be cached. - - - - - Identifies an interface or property to be pre-fetched. - - - - - Instructs fetching to occur. - - - - - Instructs fetching according to - - - - - - Gets whether or not fetching should occur. - - - - - Contract for dictionary initialization. - - - - - Performs any initialization of the - The dictionary adapter. - The dictionary behaviors. - - - - Defines the contract for updating dictionary values. - - - - - Sets the stored dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if the property should be stored. - - - - Initializes a new instance of the class - that represents a child object in a larger object graph. - - - - - - - - - Provides a generic collection that supports data binding. - - - This class wraps the CLR - in order to implement the Castle-specific . - - The type of elements in the list. - - - - Initializes a new instance of the class - using default values. - - - - - Initializes a new instance of the class - with the specified list. - - - An of items - to be contained in the . - - - - - Initializes a new instance of the class - wrapping the specified instance. - - - A - to be wrapped by the . - - - - - Removes a property if matches value. - - - - - - - - - Deserializes the specified node into an abstract representation of configuration. - - The node. - - - - - - If a config value is an empty string we return null, this is to keep - backward compatibility with old code - - - - - Provides appropriate Ldind.X opcode for - the type of primitive value to be loaded indirectly. - - - - - Returns list of all unique interfaces implemented given types, including their base interfaces. - - - - - - - - - Used during the target type inspection process. Implementors have a chance to customize the - proxy generation process. - - - - - Invoked by the generation process to notify that the whole process has completed. - - - - - Invoked by the generation process to notify that a member was not marked as virtual. - - The type which declares the non-virtual member. - The non-virtual member. - - This method gives an opportunity to inspect any non-proxyable member of a type that has - been requested to be proxied, and if appropriate - throw an exception to notify the caller. - - - - - Invoked by the generation process to determine if the specified method should be proxied. - - The type which declares the given method. - The method to inspect. - True if the given method should be proxied; false otherwise. - - - - Assigns a prefix to the keyed properties of an interface. - - - Key prefixes are not inherited by sub-interfaces. - - - - - Initializes a default instance of the class. - - - - - Initializes a new instance of the class. - - The prefix for the keyed properties of the interface. - - - - Gets the prefix key added to the properties of the interface. - - - - - is a interface encapsulating a configuration node - used to retrieve configuration values. - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets the name of the node. - - - The Name of the node. - - - - - Gets the value of the node. - - - The Value of the node. - - - - - Gets an of - elements containing all node children. - - The Collection of child nodes. - - - - Gets an of the configuration attributes. - - - - - This is an abstract implementation - that deals with methods that can be abstracted away - from underlying implementations. - - - - AbstractConfiguration makes easier to implementers - to create a new version of - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets node attributes. - - - All attributes of the node. - - - - - Gets all child nodes. - - The of child nodes. - - - - Gets the name of the . - - - The Name of the . - - - - - Gets the value of . - - - The Value of the . - - - - - Summary description for MutableConfiguration. - - - - - Initializes a new instance of the class. - - The name. - - - - Gets the value of . - - - The Value of the . - - - - - Manages logging. - - - This is a facade for the different logging subsystems. - It offers a simplified interface that follows IOC patterns - and a simplified priority/level/severity abstraction. - - - - - Create a new child logger. - The name of the child logger is [current-loggers-name].[passed-in-name] - - The Subname of this logger. - The New ILogger instance. - If the name has an empty element name. - - - - Logs a debug message. - - The message to log - - - - Logs a debug message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs a info message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Determines if messages of priority "debug" will be logged. - - True if "debug" messages will be logged. - - - - Determines if messages of priority "error" will be logged. - - True if "error" messages will be logged. - - - - Determines if messages of priority "fatal" will be logged. - - True if "fatal" messages will be logged. - - - - Determines if messages of priority "info" will be logged. - - True if "info" messages will be logged. - - - - Determines if messages of priority "warn" will be logged. - - True if "warn" messages will be logged. - - - - Interface for Context Properties implementations - - - - This interface defines a basic property get set accessor. - - - Based on the ContextPropertiesBase of log4net, by Nicko Cadell. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Creates a new lock. - - - - - - - Conract for traversing a . - - - - - The Level Filtered Logger class. This is a base clase which - provides a LogLevel attribute and reroutes all functions into - one Log method. - - - - - Creates a new LevelFilteredLogger. - - - - - Keep the instance alive in a remoting scenario - - - - - - - Logs a debug message. - - The message to log - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Implementors output the log content by implementing this method only. - Note that exception can be null - - - - - - - - - - - - - The LoggerLevel that this logger - will be using. Defaults to LoggerLevel.Off - - - - The name that this logger will be using. - Defaults to String.Empty - - - - Determines if messages of priority "debug" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "info" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "warn" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "error" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "fatal" will be logged. - - - true if log level flags include the bit - - - - The TraceLogger sends all logging to the System.Diagnostics.TraceSource - built into the .net framework. - - - Logging can be configured in the system.diagnostics configuration - section. - - If logger doesn't find a source name with a full match it will - use source names which match the namespace partially. For example you can - configure from all castle components by adding a source name with the - name "Castle". - - If no portion of the namespace matches the source named "Default" will - be used. - - - - - Build a new trace logger based on the named TraceSource - - The name used to locate the best TraceSource. In most cases comes from the using type's fullname. - - - - Build a new trace logger based on the named TraceSource - - The name used to locate the best TraceSource. In most cases comes from the using type's fullname. - The default logging level at which this source should write messages. In almost all cases this - default value will be overridden in the config file. - - - - Create a new child logger. - The name of the child logger is [current-loggers-name].[passed-in-name] - - The Subname of this logger. - The New ILogger instance. - - - - Provides functionality for disassembling instances of attributes to CustomAttributeBuilder form, during the process of emiting new types by Dynamic Proxy. - - - - - Disassembles given attribute instance back to corresponding CustomAttributeBuilder. - - An instance of attribute to disassemble - - corresponding 1 to 1 to given attribute instance, or null reference. - - Implementers should return that corresponds to given attribute instance 1 to 1, - that is after calling specified constructor with specified arguments, and setting specified properties and fields with values specified - we should be able to get an attribute instance identical to the one passed in . Implementer can return null - if it wishes to opt out of replicating the attribute. Notice however, that for some cases, like attributes passed explicitly by the user - it is illegal to return null, and doing so will result in exception. - - - - - Because we need to cache the types based on the mixed in mixins, we do the following here: - - Get all the mixin interfaces - - Sort them by full name - - Return them by position - - The idea is to have reproducible behavior for the case that mixins are registered in different orders. - This method is here because it is required - - - - - Identifies a property should be represented as a delimited string value. - - - - - Gets the separator. - - - - - Identifies the dictionary adapter types. - - - - - Used to create the TraceLogger implementation of ILogger interface. See . - - - - - Holds objects representing methods of class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents the scope of uniquenes of names for types and their members - - - - - Gets a unique name based on - Name suggested by the caller - Unique name based on . - - Implementers should provide name as closely resembling as possible. - Generally if no collision occurs it is suggested to return suggested name, otherwise append sequential suffix. - Implementers must return deterministic names, that is when is called twice - with the same suggested name, the same returned name should be provided each time. Non-deterministic return - values, like appending random suffices will break serialization of proxies. - - - - - Returns new, disposable naming scope. It is responsibilty of the caller to make sure that no naming collision - with enclosing scope, or other subscopes is possible. - - New naming scope. - - - - Generates the constructor for the class that extends - - - - - - - - - - - Enable access to files on network shares - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - Provides an extension point that allows proxies to choose specific interceptors on - a per method basis. - - - - - Selects the interceptors that should intercept calls to the given . - - The type declaring the method to intercept. - The method that will be intercepted. - All interceptors registered with the proxy. - An array of interceptors to invoke upon calling the . - - This method is called only once per proxy instance, upon the first call to the - . Either an empty array or null are valid return values to indicate - that no interceptor should intercept calls to the method. Although it is not advised, it is - legal to return other implementations than these provided in - . - - - - - Handles the deserialization of proxies. - - - - - Resets the used for deserialization to a new scope. - - - This is useful for test cases. - - - - - Resets the used for deserialization to a given . - - The scope to be used for deserialization. - - By default, the deserialization process uses a different scope than the rest of the application, which can lead to multiple proxies - being generated for the same type. By explicitly setting the deserialization scope to the application's scope, this can be avoided. - - - - - Gets the used for deserialization. - - As has no way of automatically determining the scope used by the application (and the application might use more than one scope at the same time), uses a dedicated scope instance for deserializing proxy types. This instance can be reset and set to a specific value via and . - - - - Determines whether the specified method is internal. - - The method. - - true if the specified method is internal; otherwise, false. - - - - - Determines whether this assembly has internals visible to dynamic proxy. - - The assembly to inspect. - - - - Checks if the method is public or protected. - - - - - - - - - Provides appropriate Stind.X opcode - for the type of primitive value to be stored indirectly. - - - - - Emits a load indirect opcode of the appropriate type for a value or object reference. - Pops a pointer off the evaluation stack, dereferences it and loads - a value of the specified type. - - - - - - - - - Emits a load opcode of the appropriate kind for a constant string or - primitive value. - - - - - - - - - Emits a load opcode of the appropriate kind for the constant default value of a - type, such as 0 for value types and null for reference types. - - - - - Emits a store indirectopcode of the appropriate type for a value or object reference. - Pops a value of the specified type and a pointer off the evaluation stack, and - stores the value. - - - - - - - - - Registers custom disassembler to handle disassembly of specified type of attributes. - - Type of attributes to handle - Disassembler converting existing instances of Attributes to CustomAttributeBuilders - - When disassembling an attribute Dynamic Proxy will first check if an custom disassembler has been registered to handle attributes of that type, - and if none is found, it'll use the . - - - - - Attributes should be replicated if they are non-inheritable, - but there are some special cases where the attributes means - something to the CLR, where they should be skipped. - - - - - Supporting Logger levels. - - - - - Logging will be off - - - - - Fatal logging level - - - - - Error logging level - - - - - Warn logging level - - - - - Info logging level - - - - - Debug logging level - - - - - Describes a dictionary property. - - - - - Initializes an empty class. - - - - - Initializes a new instance of the class. - - The property. - The annotations. - - - - Initializes a new instance class. - - - - - Copies an existinginstance of the class. - - - - - - - - - Gets the key. - - The dictionary adapter. - The key. - The descriptor. - - - - - - Gets the property value. - - The dictionary adapter. - The key. - The stored value. - The descriptor. - true if return only existing. - - - - - - Sets the property value. - - The dictionary adapter. - The key. - The value. - The descriptor. - - - - - - Adds a single behavior. - - The behavior. - - - - Adds the behaviors. - - The behaviors. - - - - Adds the behaviors. - - The behaviors. - - - - Copies the behaviors to the other - - - - - - - - Copies the - - - - - - - - - - Gets the property name. - - - - - Gets the property type. - - - - - Gets the property. - - The property. - - - - Returns true if the property is dynamic. - - - - - Gets additional state. - - - - - Determines if property should be fetched. - - - - - Determines if property must exist first. - - - - - Determines if notifications should occur. - - - - - Gets the property behaviors. - - - - - Gets the type converter. - - The type converter. - - - - Gets the extended properties. - - - - - Gets the setter. - - The setter. - - - - Gets the key builders. - - The key builders. - - - - Gets the setter. - - The setter. - - - - Gets the getter. - - The getter. - - - - Gets the initializers. - - The initializers. - - - - Gets the meta-data initializers. - - The meta-data initializers. - - - - Converts all properties to strings. - - - - - Gets or sets the format. - - The format. - - - - Constant to use when making assembly internals visible to Castle.Core - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToCastleCore)] - - - - Constant to use when making assembly internals visible to proxy types generated by DynamicProxy. Required when proxying internal types. - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToDynamicProxyGenAssembly2)] - - - - Checks whether or not collection is null or empty. Assumes colleciton can be safely enumerated multiple times. - - - - - - - - - Provides an interface that supports and - allows the storage and retrieval of Contexts. These are supported in - both log4net and NLog. - - - - - Exposes the Global Context of the extended logger. - - - - - Exposes the Thread Context of the extended logger. - - - - - Exposes the Thread Stack of the extended logger. - - - - - Increments IServiceProvider with a generic service resolution operation. - - - - - Defines that the implementation wants a - in order to - access other components. The creator must be aware - that the component might (or might not) implement - the interface. - - - Used by Castle Project components to, for example, - gather logging factories - - - - - Initializes a new instance of the class. - - Target element. This is either target type or target method for invocation types. - The type of the proxy. This is base type for invocation types. - The interfaces. - The options. - - - - Initializes a new instance of the class. - - Type of the target. - The interfaces. - The options. - - - - Requests support for multi-level editing. - - - - - Suppresses any on-demand behaviors. - - - - - Specifies assignment by reference rather than by copying. - - - - - The Logger using standart Diagnostics namespace. - - - - - Creates a logger based on . - - - - - - - - Creates a logger based on . - - - - - - - - - - - Creates a logger based on . - - - - - - - - - - - - - - Creates outputing - to files. The name of the file is derived from the log name - plus the 'log' extension. - - - - - Holds objects representing methods of class. - - - - - Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue - where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded. - - - - - Summary description for PropertiesCollection. - - - - - Handles error during disassembly process - - Type of the attribute being disassembled - Exception thrown during the process - usually null, or (re)throws the exception - - - - Here we try to match a constructor argument to its value. - Since we can't get the values from the assembly, we use some heuristics to get it. - a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument - b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string). - - - - - We have the following rules here. - Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that - we can convert it. - - - - - Attributes can only accept simple types, so we return null for null, - if the value is passed as string we call to string (should help with converting), - otherwise, we use the value as is (enums, integer, etc). - - - - - Provides simple string formatting from existing properties. - - - - - Gets the string format. - - - - - Gets the format properties. - - - - - Assigns a specific dictionary key. - - - - - Initializes a new instance of the class. - - The key. - - - - Initializes a new instance of the class. - - The compound key. - - - - Removes a property if null or empty string, guid or collection. - - - - - The Logger sending everything to the standard output streams. - This is mainly for the cases when you have a utility that - does not have a logger to supply. - - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug and the Name - set to String.Empty. - - - - - Creates a new ConsoleLogger with the Name - set to String.Empty. - - The logs Level. - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug. - - The logs Name. - - - - Creates a new ConsoleLogger. - - The logs Name. - The logs Level. - - - - A Common method to log. - - The level of logging - The name of the logger - The Message - The Exception - - - - Returns a new ConsoleLogger with the name - added after this loggers name, with a dot in between. - - The added hierarchical name. - A new ConsoleLogger. - - - - Exposes means to change target objects of proxies and invocations - - - - - Changes the target object () of current . - - The new value of target of invocation. - - Although the method takes the actual instance must be of type assignable to , otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - Permanently changes the target object of the proxy. This does not affect target of the current invocation. - - The new value of target of the proxy. - - Although the method takes the actual instance must be of type assignable to proxy's target type, otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - This interface should be implemented by classes - that are available in a bigger context, exposing - the container to different areas in the same application. - - For example, in Web application, the (global) HttpApplication - subclasses should implement this interface to expose - the configured container - - - - - - - - - A collection of objects. - - - - - Creates a new instance of ConfigurationCollection. - - - - - Creates a new instance of ConfigurationCollection. - - - - - The Null Logger class. This is useful for implementations where you need - to provide a logger to a utility class, but do not want any output from it. - It also helps when you have a utility that does not have a logger to supply. - - - - - Returns this NullLogger. - - Ignored - This ILogger instance. - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - Returns empty context properties. - - - - - Returns empty context properties. - - - - - Returns empty context stacks. - - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - New interface that is going to be used by DynamicProxy 2 - - - - - Summary description for ModuleScope. - - - - - The default file name used when the assembly is saved using . - - - - - The default assembly (simple) name used for the assemblies generated by a instance. - - - - - Initializes a new instance of the class; assemblies created by this instance will not be saved. - - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - Naming scope used to provide unique names to generated types and their members (usually via sub-scopes). - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Returns a type from this scope's type cache, or null if the key cannot be found. - - The key to be looked up in the cache. - The type from this scope's type cache matching the key, or null if the key cannot be found - - - - Registers a type in this scope's type cache. - - The key to be associated with the type. - The type to be stored in the cache. - - - - Gets the key pair used to sign the strong-named assembly generated by this . - - - - - - - Gets the specified module generated by this scope, creating a new one if none has yet been generated. - - If set to true, a strong-named module is returned; otherwise, a weak-named module is returned. - A strong-named or weak-named module generated by this scope, as specified by the parameter. - - - - Gets the strong-named module generated by this scope, creating a new one if none has yet been generated. - - A strong-named module generated by this scope. - - - - Gets the weak-named module generated by this scope, creating a new one if none has yet been generated. - - A weak-named module generated by this scope. - - - - Saves the generated assembly with the name and directory information given when this instance was created (or with - the and current directory if none was given). - - - - This method stores the generated assembly in the directory passed as part of the module information specified when this instance was - constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly - have been generated, it will throw an exception; in this case, use the overload. - - - If this was created without indicating that the assembly should be saved, this method does nothing. - - - Both a strong-named and a weak-named assembly have been generated. - The path of the generated assembly file, or null if no file has been generated. - - - - Saves the specified generated assembly with the name and directory information given when this instance was created - (or with the and current directory if none was given). - - True if the generated assembly with a strong name should be saved (see ); - false if the generated assembly without a strong name should be saved (see . - - - This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was - constructed (if any, else the current directory is used). - - - If this was created without indicating that the assembly should be saved, this method does nothing. - - - No assembly has been generated that matches the parameter. - - The path of the generated assembly file, or null if no file has been generated. - - - - Loads the generated types from the given assembly into this 's cache. - - The assembly to load types from. This assembly must have been saved via or - , or it must have the manually applied. - - This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order - to avoid the performance hit associated with proxy generation. - - - - - Users of this should use this lock when accessing the cache. - - - - - Gets the strong-named module generated by this scope, or if none has yet been generated. - - The strong-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the strongly named module generated by this scope. - - The file name of the strongly named module generated by this scope. - - - - Gets the directory where the strongly named module generated by this scope will be saved, or if the current directory - is used. - - The directory where the strongly named module generated by this scope will be saved when is called - (if this scope was created to save modules). - - - - Gets the weak-named module generated by this scope, or if none has yet been generated. - - The weak-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the weakly named module generated by this scope. - - The file name of the weakly named module generated by this scope. - - - - Gets the directory where the weakly named module generated by this scope will be saved, or if the current directory - is used. - - The directory where the weakly named module generated by this scope will be saved when is called - (if this scope was created to save modules). - - - - Email sender abstraction. - - - - - Sends a mail message. - - From field - To field - E-mail's subject - message's body - - - - Sends a message. - - - Message instance - - - - Sends multiple messages. - - List of messages - - - - Default implementation. - - - - - Initializes a new instance of the class based on the configuration provided in the application configuration file. - - - This constructor is based on the default configuration in the application configuration file. - - - - - This service implementation - requires a host name in order to work - - The smtp server name - - - - Sends a message. - - If any of the parameters is null - From field - To field - e-mail's subject - message's body - - - - Sends a message. - - If the message is null - Message instance - - - - Configures the sender - with port information and eventual credential - informed - - Message instance - - - - Gets or sets the port used to - access the SMTP server - - - - - Gets the hostname. - - The hostname. - - - - Gets or sets a value which is used to - configure if emails are going to be sent asynchronously or not. - - - - - Gets or sets a value that specifies - the amount of time after which a synchronous Send call times out. - - - - - Gets or sets a value indicating whether the email should be sent using - a secure communication channel. - - - true if should use SSL; otherwise, false. - - - - Gets or sets the domain. - - The domain. - - - - Gets or sets the name of the user. - - The name of the user. - - - - Gets or sets the password. - - The password. - - - - Gets a value indicating whether credentials were informed. - - - if this instance has credentials; otherwise, . - - - - - - - - - Readonly implementation of which uses an anonymous object as its source. Uses names of properties as keys, and property values as... well - values. Keys are not case sensitive. - - - - - Initializes a new instance of the class. - - The target. - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - - is null. - An element with the same key already exists in the object. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - - is null. - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - - is null. - The object is read-only.-or- The has a fixed size. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Reads values of properties from and inserts them into using property names as keys. - - - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets or sets the with the specified key. - - - - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - - - - - Initializes a new instance of the class. - - The name values. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - key is null. - - - - Adapts the specified name values. - - The name values. - - - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets or sets the with the specified key. - - - - - - - Abstract implementation of . - - - - - List of utility methods related to dynamic proxy operations - - - - - Determines whether the specified type is a proxy generated by - DynamicProxy (1 or 2). - - The type. - - true if it is a proxy; otherwise, false. - - - - - The Stream Logger class. This class can stream log information - to any stream, it is suitable for storing a log file to disk, - or to a MemoryStream for testing your components. - - - This logger is not thread safe. - - - - - Creates a new StreamLogger with default encoding - and buffer size. Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - - - Creates a new StreamLogger with default buffer size. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - - - Creates a new StreamLogger. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - The buffer size that will be used for this stream. - - - - - Creates a new StreamLogger with - Debug as default Level. - - The name of the log. - The StreamWriter the log will write to. - - - - Provides proxy objects for classes and interfaces. - - - - - Initializes a new instance of the class. - - Proxy types builder. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - If true forces all types to be generated into an unsigned module. - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - Object proxying calls to members of on object. - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates the proxy type for class proxy with given class, implementing given and using provided . - - The base class for proxy type. - The interfaces that proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - Actual type that the proxy type will encompass. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target interface for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy without target for given interface, implementing given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Gets or sets the that this log to. - - - - - Gets the proxy builder instance used to generate proxy types. - - The proxy builder. - - - - s - Provides appropriate Ldc.X opcode for the type of primitive value to be loaded. - - - - - Applied to the assemblies saved by in order to persist the cache data included in the persisted assembly. - - - - - Assigns a prefix to the keyed properties using the interface name. - - - - - Identifies a property should be represented as a nested component. - - - - - Applies no prefix. - - - - - Gets or sets the prefix. - - The prefix. - - - - Uses Reflection.Emit to expose the properties of a dictionary - through a dynamic implementation of a typed interface. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generates a new GUID on demand. - - - - - Represents a type that can modify method bodies. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Represents a weaver class that can modify its host. - - The host that holds the item to be modified. - - - - Imports references into the target instance. - - The module that will hold the modified item. - - - - Adds additional members to the host type. - - The host that holds the current item being modified. - - - - Represents a type that can modify method bodies. - - - - - Adds local variables to the . - - The target method. - - - - Represents the basic implementation of a method rewriter class. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Determines whether or not the given method should be modified. - - The target method. - A indicating whether or not a method should be rewritten. - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Adds additional members to the host type. - - The host type. - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Represents a method rewriter that modifies a method body to support dynamic exception handling. - - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Rewrites the instructions in the target method body to support dynamic exception handling. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Saves the current instance. - - The target method. - The instance that will emit the current method context. - - - - Represents a type that is capable of manipulating instructions within a given method body. - - - - - Emits a set of instructions to the given CilWorker. - - The responsible for the target method body. - - - - Represents an instruction emitter that adds method body replacement support to a given method body. - - - - - Initializes a new instance of the class. - - The set of parameters that describe the target method body. - - - - Adds method body interception to the target method. - - The pointing to the target method body. - - - - Represents an instruction emitter that adds the original method instructions to a given method body. - - - - - Initializes a new instance of the class. - - The original method instructions. - The instruction label that marks the end of the method body. - - - - Adds the original instructions to a given method body. - - The responsible for the target method body. - - - - A class that extends instances. - - - - - Removes the strong-name signature from the . - - - - - - - A helper class that extends Cecil to support LinFu's weaver model. - - - - - Allows a instance to traverse any - instance. - - The visitable object. - The type weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The type weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The method weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The method weaver. - - - - Represents a type that emits the call to the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance. - The local vaiable that contains the return value of the target method. - - - - Emits the call to the instance. - - The that points to the current method body. - - - - Represents a type that emits the call to the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance-level instance. - The interception registry type that will be responsible for handling class-level interception events. - - - - Emits the call to the instance. - - The that points to the current method body. - - - - Represents a class that describes the context of a thrown exception. - - - - - Initializes a new instance of the class. - - The thrown exception. - The instance that describes the context of the method call. - - - - Gets the value indicating the thrown exception. - - The thrown exception. - - - - Gets the value indicating the instance that describes the context of the method - that threw the exception. - - The instance. - - - - Gets or sets the value indicating the return value that will be used in place of the original return value if - the exception is intercepted by an instance. - - The method return value. - - - - Gets or sets the value indicating whether or not the exception should be rethrown after - the handles the given exception. - - This should be true if the exception should be rethrown, otherwise, it must be false. - - - - Represents an extension class that adds support for intercepting exceptions thrown at runtime. - - - - - Enables exception interception on the given type. - - The target type. - - - - Enables exception interception on the given type. - - The target type. - - - - Enables exception interception on the given type. - - The target type. - The instance that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The instance that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The method filter functor that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The method filter functor that will determine which methods should support exception interception. - - - - A factory instance that creates delegates - that emit the necessary information - and store it in a local variable named '__invocationInfo___'. - - - - - Generates the delegate that will emit - the necessary information. - - The instance that describes the requested service type. - A delegate that can emit the necessary context that will allow other developers to infer information about the method currently being executed. - - - - Represents a class that generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to every type in every module of an instance. - - - - - Generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to every type in every module of an instance. - - The that describes the service request. - An action delegate that will apply a specific method weaver to all the types in the given assembly. - - - - Represents a class that generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to a specific instance. - - - - - Generates the instance that will - weave the target type. - - The that describes the service request. - The instance that will weave the target type. - - - - Represents a class that emits the instructions that obtain an instance-level instance. - - - - - Initializes a new instance of the class. - - The local variable that contains the instance. - The target method. - The functor that will resolve the GetProvider method. - - - - Emits the instructions that obtain the instance. - - The instance. - - - - Represents a class that emits the instructions that obtain the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the instance. - The method that will obtain the instance. - - - - Emits the instructions that obtain the instance. - - The that points to the current method body. - - - - Represents a class that emits the instructions that obtain the current instance. - - - - - Initializes a new instance of the class. - - The variable that will hold the instance. - - - - - - - - - - Emits the instructions that obtain the current instance. - - - - - - - Represents a class that emits the call to obtain the instance. - - - - - Initializes a new instance of the class. - - The local variable that holds the instance. - The name of the property. - - - - Emits the call to obtain the instance. - - The pointing to the target method body. - - - - Represents a class that emits the instructions that determine whether or not method interception is disabled. - - - - - Initializes a new instance of the class. - - The instance. - - - - Initializes a new instance of the class. - - The target method. - The local variable that determines whether or not method interception is disabled. - - - - Emits the instructions that determine whether or not method interception is disabled. - - The instance responsible for adding or removing instructions to the method body. - - - - Represents a class that emits the instructions that obtain a class-level instance. - - - - - Initializes a new instance of the class. - - The method body rewriter paramters that describe the - The functor that resolves the method that obtains the method replacement provider instance. - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class method replacement provider instance. - The functor that resolves the method that obtains the method replacement provider instance. - - - - Emits the instructions that obtain a class-level instance. - - The instance that points to the instructions in the method body. - - - - Represents an extension class that adds field interception support to a given type. - - - - - Adds field interception support to the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all instance fields on the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all static fields on the target type. - - The type that will be modified. - - - - Adds field interception support to the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all instance fields on the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all static fields on the target type. - - The type that will be modified. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines which methods on the target type will be modified to support field interception. - The filter that determines which fields should be intercepted. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines the host types to be modified. - The field filter that determines the fields that will be intercepted. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines which methods on the target type will be modified to support field interception. - The filter that determines which fields should be intercepted. - - - - Represents a type that determines whether or not a particular field get or set should be intercepted. - - - - - Determines whether or not a particular field get or set should be intercepted. - - The host method. - The target field. - Returns true if the field should be intercepted; otherwise, it will return false. - - - - Represents an adapter class that maps a functor to an instance. - - - - - Initializes a new instance of the class. - - The field filter. - - - - Determines whether or not a particular field get or set should be intercepted. - - The host method. - The target field. - Returns true if the field should be intercepted; otherwise, it will return false. - - - - Represents a class that keeps track of the internal object instances that should be ignored - by the interception routines. - - - - - Determines whether or not the registry contains the given ignored object. - - The target object. - Returns true if the object should be ignored; otherwise, it will return false. - - - - Adds an instance to the list of ignored instances. - - The target instance to be ignored by the interception routines. - - - - Represents a type that determines which host methods should be modified for method call interception. - - - - - Determines whether or not a particular method should be modified. - - The target method to be modified. - Returns true if the method should be modified; otherwise, it will return false. - - - - Represents a type that determines the method calls that need to be intercepted. - - - - - Determines whether or not a particular method call should be intercepted. - - The host type that contains the method call. - The method that contains the current method call. - The method call to be intercepted. - Returns true if the method call should be intercepted; otherwise, it will return false. - - - - Represents the parameters used to add interception to a given method body. - - - - - Gets the value indicating the TargetMethod to be modified. - - The method to be modified. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the class-level instance. - - The class-level instance. - - - - Gets the value indicating the local variable that will store the value that determines whether or not - interception is disabled. - - The value that determines whether or not interception is disabled. - - - - Gets the value indicating the local variable that will store the instance. - - The local variable that will store the instance. - - - - Gets the value indicating the local variable that will store the return value. - - The value indicating the local variable that will store the return value. - - - - Gets the value indicating the interception registry type that will be responsible for handling class-level interception events. - - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the functor that resolves the GetMethodReplacementProvider method. - - The functor that resolves the GetMethodReplacementProvider method. - - - - Gets the value indicating the list of old instructions in the current method body. - - The value indicating the list of old instructions in the current method body. - - - - Represents a type that determines the constructor calls that will be intercepted by the postweaver. - - - - - Determines whether or not a particular constructor call should be intercepted by the postweaver. - - The constructor used to instantiate the current instance. - The concrete type that contains the new instance call. - The host method that contains the new operator call. - Returns true if the new operator call should be intercepted; otherwise, it should return false. - - - - Represents a type that converts functors into method call filter instances. - - - - - Initializes a new instance of the class. - - The method filter that will determine the host methods that will be modified for interception. - The method filter that will determine which method calls will be intercepted. - - - - Determines whether or not a particular method call should be intercepted. - - The host type that contains the method call. - The method that contains the current method call. - The method call to be intercepted. - Returns true if the method call should be intercepted; otherwise, it will return false. - - - - Represents an adapter class that maps instances to - functors. - - - - - Initializes a new instance of the class. - - The filter that determines which instances will be intercepted. - - - - Determines whether or not a particular constructor call should be intercepted by the postweaver. - - The constructor used to instantiate the current instance. - The concrete type that contains the new instance call. - The host method that contains the new operator call. - Returns true if the new operator call should be intercepted; otherwise, it should return false. - - - - Represents a class that can weave (or modify) - a member embedded in an assembly. - - The type of object to modify. - The host that holds the item to be modified. - - - - Determines whether or not the current item should be modified. - - The target item. - Returns true if the current item can be modified; otherwise, it should return false. - - - - Modifies the target . - - The item to be modified. - - - - Represents a type that can modify an existing . - - - - - Represents a type weaver that modifies types to implement the interface. - - - - - Initializes a new instance of the ImplementFieldInterceptionHostWeaver class. - - The filter that determines which types should be modified. - - - - Determines whether or not a type should be modified. - - - - - true if the type should be modified; otherwise, it will return false. - - - - Modifies the target type. - - The type to be modified. - - - - Adds additional members to the target module. - - The host module. - - - - Imports references into the target module. - - The module containing the type to be modified. - - - - Represents a type that can provide the instructions for a given method. - - - - - Determines the instructions for a given method. - - The source method that contains the instructions. - The set of instructions for the given method. - - - - Represents the default implementation of the class. - - - - - Determines the instructions for a given method. - - The source method that contains the instructions. - The set of instructions for the given method. - - - - Provides the basic functionality for the interface. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Determines whether or not the method rewriter should replace the . - - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a new set of instructions.. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker for the target method body. - - - - Represents a method body rewriter that surrounds a method body with the necessary prolog and epilogs - that enable method body interception. - - - - - Initializes a new instance of the class. - - The emitter that will instantiate the instance. - The emitter that will determine whether or not method interception is enabled. - The instance that will add the epilogs and prologs to the method body. - The emitter that will obtain the method replacement provider instance. - The emitter that will obtain the class-level method replacement provider instance. - The instruction emitter that will add the call to obtain the method body replacement instance. - The parameters that describe the context of the method body rewrite. - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Represents a that intercepts calls to field getters and setters and redirects those calls to - a instance. - - - - - Initializes a new instance of the InterceptFieldAccess class. - - The filter that determines which fields should be intercepted. - - - - Initializes a new instance of the InterceptFieldAccess class. - - The filter that determines which fields should be intercepted. - - - - Adds locals to the target method. - - The method to be modified - - - - Adds references to the target module. - - The module that will be modified. - - - - Determines whether or not the method rewriter should replace the . - - The class only modifies instructions that get or set the value of static and instance fields. - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a set of new instructions. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker that will be used to emit the method body instructions. - - - - Represents a method rewriter type that adds interception capabilities to any given method body. - - - - - Initializes a new instance of the class. - - The method filter that will determine the methods with the method bodies that will be intercepted. - - - - Determines whether or not the given method should be modified. - - The target method. - A indicating whether or not a method should be rewritten. - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Represents a class that adds a method - epilog and prolog to an existing method instance. - - - - - Determines whether or not the current item should be modified. - - The target item. - Returns true if the current item can be modified; otherwise, it should return false. - - - - Adds an prolog to the target method. - - The instruction that marks the start of the - The method body of the target method. - - - - Adds an epilog to the target method. - - The instruction that marks the end of the - The method body of the target method. - - - - Represents a class that emits - the IL to save information about - the method currently being executed. - - - - - Emits the IL to save information about - the method currently being executed. - - - The target method currently being executed. - The method that will be passed to the as the currently executing method. - The local variable that will store the resulting instance. - - - - Represents a type that can modify objects. - - - - - Represents a class that can modify existing instances. - - - - - Represents a type that can emit IL that instantiates an object - within a given method. - - - - - Adds local variables to the . - - The target method. - - - - Determines whether or not the object instantiation call to the - should be instrumented. - - The constructor that will be used to instantiate the target type. - The type to be created. - The method that contains the instantiation request. - - true if the call to the new operator should be intercepted; otherwise, it should return false. - - - - Emits the necessary necessary to instantiate - the . - - The method that contains the activation request. - The CilWorker that will be used to replace the existing instructions in the method body. - The constructor that is currently being used to instantiate the concrete type. - The that describes the object type that needs to be instantiated. - - - - Represents a type that can load PDB files from disk. - - - - - Loads an assembly into memory. - - The bytes that represent the target assembly. - The bytes that represent the PDB file. - A that represents the loaded assembly. - - - - Loads the debug symbols from the target . - - The assembly that contains the symbols to be loaded. - - - - Saves the debug symbols for the target. - - The assembly that contains the symbols to be saved. - - - - Represents the information associated with - a single method call. - - - - - Initializes the instance. - - The target instance currently being called. - The method currently being called. - The associated with the method call when the call was made. - The parameter types for the current target method. - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - The return type of the target method. - The arguments used in the method call. - - - - Returns a string that represents the current object. - - A string that represents the current object. - - - - The target instance currently being called. - - This typically is a reference to a proxy object. - - - - The method currently being called. - - - - - The associated - with the method call when the call was made. - - - - - This is the actual calling method that invoked the . - - - - - The return type of the . - - - - - The parameter types for the current target method. - - - - This could be very useful in cases where the actual target method - is based on a generic type definition. In such cases, - the instance needs to be able - to describe the actual parameter types being used by the - current generic type instantiation. This property helps - users determine which parameter types are actually being used - at the time of the method call. - - - - - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - - - - The arguments used in the method call. - - - - - Represents the default implementation for the - class. - - - - - Initializes a new instance of the InvocationInfoEmitter class. - - - - - Initializes a new instance of the InvocationInfoEmitter class. - - Determines whether or not stack trace information will be available at runtime. - - - - Emits the IL to save information about - the method currently being executed. - - - The target method currently being executed. - The method that will be passed to the as the currently executing method. - The local variable that will store the resulting instance. - - - - Adds helper methods classes that implement the - interface. - - - - - Emits the IL instructions that will store information about the method currently being executed - and stores the results into the variable. - The instance. - The method whose implementation will be intercepted. - The actual method that will contain the resulting instructions. - The local variable that will store the current instance. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The return value of the method call. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The target instance that will handle the method call. - The return value of the method call. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The target instance that will handle the method call. - The arguments that will be used for the actual method call. - The return value of the method call. - - - - A class that verifies a given instance. - - - - - Verifies the given instance. - - The assembly definition that needs to be verified. - - - - Represents a class that emits the instructions that call the method replacement instead of the original method body. - - - - - Initializes a new instance of the class. - - The instruction label that will be used if the original instructions should be executed. - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance. - - - - Emits the instructions that call the method replacement instead of the original method body. - - The that points to the current method body. - - - - Represents a type that can add a prolog and epilog instructions to a particular method body. - - - - - Adds a prolog to the given method body. - - The that points to the given method body. - - - - Adds an epilog to the given method body. - - The that points to the given method body. - - - - Represents a type that determines whether or not a particular type should be modified. - - - - - Determines whether or not a type should be modified. - - The target type. - Returns true if the type should be modified. - - - - Represents an class that adds support for loading PDB files into memory every time an assembly is loaded into memory. - - - - - Initializes a new instance of the AssemblyLoaderWithPdbSupport class. - - The that will perform the actual load operation. - - - - Loads the target assembly (and its corresponding PDB file) into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Removes the temporary backup files that were created during the load operation. - - The full path and location of the original assembly file. - The full path and location of the original PDB file. - The full path and location of the temporary pdb file. - The full path and location of the backup assembly file. - - - - Gets or sets the value indicating the instance that will be used to load assemblies into memory. - - - - - Represents a loader that modifies a given assembly prior to being loaded from disk. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The loader that will be responsible for loading the program debugging information into memory. - - - - Modifies a given assembly prior to being loaded from disk. - - The filename of the target assembly. - A valid assembly. - - - - Gets or sets the value indicating the that will be used to load debug symbols into memory. - - - - - Gets the value indicating the list of delegates - that will be used to modify the assemblies loaded into memory. - - - - - Gets or sets the value indicating the - instance that will be used to ensure that the modified assemblies are valid. - - - - - Represents the default implementation of the interface. - - - - - Loads an assembly into memory. - - The bytes that represent the target assembly. - The bytes that represent the PDB file. - A that represents the loaded assembly. - - - - Loads the debug symbols from the target . - - The assembly that contains the symbols to be loaded. - - - - Saves the debug symbols for the target. - - The assembly that contains the symbols to be saved. - - - - Represents the parameters used to add interception to a given method body. - - - - - Initializes a new instance of the class. - - The CilWorker that is responsible for the current method body. - The value indicating the list of old instructions in the current method body. - The value that determines whether or not interception is disabled. - The local variable that will store the instance. - The value indicating the local variable that will store the return value. - The instance. - The instance. - The class-level instance. - The functor that resolves the GetMethodReplacementProvider method. - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the list of old instructions in the current method body. - - The value indicating the list of old instructions in the current method body. - - - - Gets the value indicating the class-level instance. - - The class-level instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the TargetMethod to be modified. - - The method to be modified. - - - - Gets the value indicating the local variable that will store the value that determines whether or not - interception is disabled. - - The value that determines whether or not interception is disabled. - - - - Gets the value indicating the local variable that will store the instance. - - The local variable that will store the instance. - - - - Gets the value indicating the local variable that will store the return value. - - The value indicating the local variable that will store the return value. - - - - Gets the value indicating the interception registry type that will be responsible for handling class-level interception events. - - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the functor that resolves the GetMethodReplacementProvider method. - - The functor that resolves the GetMethodReplacementProvider method. - - - - Represents an extension class that adds helper methods to the type. - - - - - Adds a local variable to the given method. - - The target method. - The variable type. - A local variable definition. - - - - Represents an extension class that adds method body interception support to the Mono.Cecil object model. - - - - - Intercepts all method bodies on the target item. - - The target to be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Represents an extension class that adds method call interception support to the Mono.Cecil object model. - - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The type filter that determines which types will be modified for interception. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The type filter that determines the types that will be modified. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The instance that determines the method calls that will be intercepted. - The instance that determines the host method calls that will be modified - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The instance that determines the method calls that will be intercepted. - The instance that determines the host method calls that will be modified - - - - Modifies the current to support third-party method call interception. - - The target object. - The filter that will determine the target types that will be modified. - The filter that will determine the methods that will be modified on the target type. - The filter that will determine which third-party methods will be intercepted on the target type. - - - - Modifies the current to support third-party method call interception. - - The target object. - The filter that will determine the target types that will be modified. - The filter that will determine the methods that will be modified on the target type. - The filter that will determine which third-party methods will be intercepted on the target type. - - - - Provides the basic functionality for the interface. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Adds additional members to the host type. - - The host type. - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Determines whether or not the method rewriter should replace the . - - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a new set of instructions.. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker for the target method body. - - - - A helper class that extends Cecil to support the interface. - - - - - Transforms the methods in the using the given method rewriter. - - The transformation target. - The method rewriter. - The method filter that determines which methods will be rewritten. - - - - Transforms the methods in the using the given method rewriter. - - The transformation target. - The method rewriter. - The method filter that determines which methods will be rewritten. - - - - Represents the default implementation of the interface. - - - - - Initializes a new instance of the MethodWeaver class. - - The instance that will modify the existing method. - The filter that determines which methods should be modified. - - - - Initializes a new instance of the MethodWeaver class. - - The instance that will modify the existing method. - The provider that will obtain the original instructions for the target method. - The filter that determines which methods should be modified. - - - - Determines whether or not a method should be modified. - - The target method. - - true if the method should be modified; otherwise, it returns false. - - - - Modifies a target method. - - The target method. - - - - Rewrites an existing method. - - The method that needs to be modified. - - - - Adds additional members to the target type. - - The target type to be modified. - - - - Imports additional references into the given module. - - The module that will store the additional references. - - - - Represents a visitor class that can iterate over - instances. - - - - - Initializes a new instance of the MethodWeaverVisitor class. - - The that will be used to modify a given type. - - - - Visits a instance. - - The instance that will be modified. - - - - Visits a instance. - - The instance that will be modified. - - - - Visits a instance. - - A object. - - - - Visits a instance. - - A object. - - - - An extension class that adds support for intercepting the 'new' operator with LinFu.AOP. - - - - - Modifies a to support intercepting all calls to the 'new' operator. - - The assembly to be modified. - - - - Modifies a to support intercepting all calls to the 'new' operator. - - The assembly to be modified. - - - - Modifies a to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that determines which host methods will be modified - The filter that determines which types will be modified. - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that will determine which constructor calls should be intercepted. - The filter that will determine which host methods should be modified to support new instance interception. - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that will determine which constructor calls should be intercepted. - The filter that will determine which host methods should be modified to support new instance interception. - - - - Modifies the methods in the given using the custom instance. - - The host that contains the methods that will be modified. - The custom that will replace all calls to the new operator with the custom code emitted by the given weaver. - The method filter that will determine which methods should be modified. - - - - Modifies the methods in the given using the custom instance. - - The host that contains the methods that will be modified. - The custom that will replace all calls to the new operator with the custom code emitted by the given weaver. - The method filter that will determine which methods should be modified. - - - - Represents an instruction emitter that saves the return value from a given method call. - - - - - Initializes a new instance of the class. - - The return type. - The return value. - - - - Saves the return value from a given method call. - - The pointing to the target method body. - - - - Represents a class that surrounds a call site with calls to an instance. - - - - - Initializes a new instance of the class. - - The parameters that describe the context of the emitter call. - The name of the property. - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the instance - The variable that contains the instance. - The variable that determines whether or not interception is disabled - The variable that contains the method return value. - The interception registry type that will be responsible for handling class-level interception events. - The name of the property. - - - - Adds a prolog to the given method body. - - The that points to the given method body. - - - - Adds an epilog to the given method body. - - The that points to the given method body. - - - - Adds helper methods to the class. - - - - - Applies a instance to all methods - within the given . - - The target module. - The instance that will modify the methods in the given target type. - - - - Represents a visitor class that can iterate over - instances. - - - - - Initializes a new instance of the TypeWeaverVisitor class. - - The that will be used to modify a given type. - - - - Visits a instance. - - A object. - - - - Represents a class that describes a request to instantiate a particular object type. - - - - - Gets the value indicating the type to be instantiated. - - - - - Gets the value indicating the arguments that will be passed to the constructor during instantiation. - - - - - Represents a class that describes a request to instantiate a particular object type. - - - - - Initializes the context with the given parameters. - - The type to be instantiated. - The additional arguments that must be passed to the constructor. - - - - Gets the value indicating the type to be instantiated. - - - - - Gets the value indicating the arguments that will be passed to the constructor during instantiation. - - - - - An extension class that adds helper methods to the interface. - - - - - Instantiates the with the given and . - - The instance that will be responsible for creating the . - The type to be created. - The arguments that will be passed to the constructor. - An object reference that matches the given . - - - - Instantiates the with the given and . - - The instance that will be responsible for creating the target type. - The arguments that will be passed to the constructor. - The target type that will be instantiated by the activator. - An object reference that matches the given . - - - - Represents a registry class that handles all class-level method call interception operations for all modified types. - - - - - Obtains the instance for the given . - - The instance that describes the current method call. - An instance that will be used to wrap a method call or method body. - - - - Adds an to the list of provider instances. - - The instance. - - - - Clears the list of instances. - - - - - Represents a registry class that handles all class-level interception operations for all modified types. - - - - - Obtains the instance for the given . - - The instance that describes the current method call. - An instance that will be used to wrap a method call or method body. - - - - Adds an to the list of provider instances. - - The instance. - - - - Clears the list of instances. - - - - - Represents an exception thrown when LinFu.AOP is unable to bootstrap itself. - - - - - Initializes a new instance of the class. - - The exception message. - The exception itself. - - - - Represents a registry class that bootstraps components into memory when the application starts. - - - - - Initializes the BootStrapRegistry. - - - - - Returns the list of components that have been initialized by the bootstrapper. - - - - - - - Gets the value indicating the BootStrapRegistry instance. - - - - - Represents a class that is invoked before a method call. - - - - - This method will be called just before the actual - method call is executed. - - The associated with the method call. - - - - - Represents a class that is invoked after a method call. - - - - - This method will be called immediately after the actual - method call is executed. - - The associated with the method call. - The value returned from the actual method call. - - - - Represents a class that can wrap itself around any given method call. - - - - - Represents a class that stores instances in a central location. - - - - - Gets the instance that can handle the current exception. - - The instance that describes the context of the thrown exception. - An exception handler. - - - - Sets the instance that can handle all thrown exceptions. - - The exception handler. - - - - Represents a class that describes the state of a field just as it is being intercepted. - - - - - Gets a value indicating the target instance that is attached to the target field. - - - - - Gets a value indicating the host method that is currently accessing the target field. - - - - - Gets a value indicating the field that is currently being accessed by the target method. - - - - - Gets a value indicating the that holds the target field. - - - - - Represents a class that describes the state of a field just as it is being intercepted by a . - - - - - Initializes a new instance of the FieldInterceptionContext class. - - The target that hosts the given field. - The method that accessed the target field. - The field currently being accessed by the target method. - The type that hosts the target field. - - - - Gets a value indicating the target instance that is attached to the target field. - - - - - Gets a value indicating the host method that is currently accessing the target field. - - - - - Gets a value indicating the field that is currently being accessed by the target method. - - - - - Gets a value indicating the that holds the target field. - - - - - Represents a registry class that allows users to intercept fields from a single location. - - - - - Gets current the associated with the . - - The instance that describes the state of the method call when the field getter or setter is called. - The field interceptor that will be used to preempt field getter and setter calls. - - - - Sets current the that will be associated with the . - - The field interceptor that will be used to preempt field getter and setter calls. - - - - Represents a class that can instantiate object instances. - - - The type that describes the context of the object instantiation. - - - - - Creates an object instance. - - The context that describes the request to instantiate the target type. - A valid object instance. - - - - Represents a type that can intercept activation requests. - - - - - Gets or sets the value indicating the that - will be used to instantiate object types. - - - - - Represents a type that supports injecting code around a method body or method call. - - - - - Gets or sets the value indicating the - that will be used to inject code "around" a particular method body - implementation. - - - - - Gets or sets the value indicating the - that will be used to inject code "around" a particular method call - implementation. - - - - - Represents a class that injects code around a method implementation. - - - - - Gets the instance that will be executed - before and after the target method (specified in the parameter) - is called. - - The that describes the context of the method call at the call site. /// An instance if the surrounding behavior can be found; otherwise, it should return null. - - - Represents a type that will be automatically initialized once the LinFu.AOP assembly is loaded into memory. - - - - - Initializes the bootstrapped component. - - - - - Represents a type that can catch thrown exceptions. - - - - - Determines whether or not an exception can be handled. - - The object that describes the exception being thrown. - - True if the exception can be handled by the current handler. - - - - Handles the exception specified in the instance. - - The object that describes the exception being thrown. - - - - Represents a type that describes the context of a thrown exception. - - - - - Gets the value indicating the thrown exception. - - The thrown exception. - - - - Gets the value indicating the instance that describes the context of the method - that threw the exception. - - The instance. - - - - Gets or sets the value indicating the return value that will be used in place of the original return value if - the exception is intercepted by an instance. - - The method return value. - - - - Gets or sets the value indicating whether or not the exception should be rethrown after - the handles the given exception. - - This should be true if the exception should be rethrown, otherwise, it must be false. - - - - Represents a type that has been modified to intercept field getters and setters. - - - - - Gets or sets the value indicating the interceptor that will handle field getters and setters. - - - - - Represents a type that can intercept field getter and setter calls. - - - - - Determines whether or not a field can be intercepted. - - The context that describes the field to be intercepted. - - true if it can be intercepted; otherwise, it will return false. - - - - Gets the value of a field. - - The context that describes the field to be intercepted. - The value of the target field. - - - - Sets the value of a field. - - The context that describes the field to be intercepted. - The original value that will be assigned to the target field. - The value that will be assigned to the target field. - - - - Represents a class that can dynamically intercept method calls. - - - - - Intercepts a method call using the given - instance. - - The instance that will - contain all the necessary information associated with a - particular method call. - The return value of the target method. If the return type of the target - method is , then the return value will be ignored. - - - - Represents the information associated with - a single method call. - - - - - The target instance currently being called. - - This typically is a reference to a proxy object. - - - - The method currently being called. - - - - - The return type of the . - - - - - The associated - with the method call when the call was made. - - - - - The parameter types for the current target method. - - - - This could be very useful in cases where the actual target method - is based on a generic type definition. In such cases, - the instance needs to be able - to describe the actual parameter types being used by the - current generic type instantiation. This property helps - users determine which parameter types are actually being used - at the time of the method call. - - - - - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - - - - The arguments used in the method call. - - - - - Represents a special type of interceptor that can - wrap itself around a method call. - - - - - This method will provide the actual implementation - for the target method - instance. - - The associated with the method call. - The actual return value from the . - - - - Represents a special type of that can be used to instantiate a given type - and can be used to describe the method that invoked the instantiation operation as well as specify the object - instance that invoked the instantiation itself. - - - - - Gets the value indicating the object instance that initiated the object instantiation operation. - - - - - Gets the value indiating the instance that initiated the object instantiation operation. - - - - - Represents an that can instantiate objects from within a particular method. - - - - - Determines whether or not a type can be instantiated using the - . - - The instance that describes the type to be created. - - true if the type can be created; otherwise, it will return false. - - - - Represents a type that can have its method body implementations replaced at runtime. - - - - - Gets or sets a value indicating the that will be used to swap method body implementations at runtime. - - - - - Gets or sets a value indicating the that will be used to swap method body implementations at runtime. - - - - - Represents a type that can swap method body implementations at runtime. - - - - - Determines whether or not the current method implementation can be replaced. - - The target instance of the method call. - The that describes the context of the method call. - - true if the method can be intercepted; otherwise, it will return false. - - - - Obtains the instance that will be used to replace the current method call. - - The target instance of the method call. - The that describes the context of the method call. - The interceptor that will intercept the method call itself. - - - - Represents a type that has been modified to support - pervasive method interception. - - - - - Gets or sets the value indicating whether or not - method interception should be disabled. - - - - - Represents a static type that allows users to register a method replacement provider from a single location. - - - - - Returns the provider that is currently attached to the registry. - - The type that is currently being intercepted. - The object that describes the invocation context. - A that will determine the code that will be executed once a target method is called. - - - - Assigns the to the MethodReplacementProvider registry. - - A that will determine the code that will be executed once a target method is called. - - - - Represents a static type that allows users to register a method replacement provider from a single location. - - - - - Returns the provider that is currently attached to the registry. - - The type that is currently being intercepted. - The object that describes the invocation context. - A that will determine the code that will be executed once a target method is called. - - - - Assigns the to the MethodReplacementProvider registry. - - A that will determine the code that will be executed once a target method is called. - - - - Represents an that can be used to instantiate a given type - and be used to describe the method that invoked the instantiation operation as well as specify the object - instance that invoked the instantiation itself. - - - - - Initializes a new instance of the MethodActivationContext class. - - The object instance that initiated the activation request. - The method where the activation was invoked. - The type to be constructed. - The additional arguments that will be passed to the constructor. - - - - Gets the value indicating the object instance that initiated the object instantiation operation. - - - - - Gets the value indiating the instance that initiated the object instantiation operation. - - - - - Represents a registry that allows users to statically register - instances. - - - - - Obtains an activator for the given . - - The instance that describes the object to be created. - A method activator. - - - - Sets the that will be used to - instantiate object instances. - - The that will instantiate types. - - - - Represents an MSBuild task for LinFu.AOP that allows users to inject an aspect framework into their applications - at postbuild time. - - - - - Executes the postweaver. - - Returns true if the operation succeeded. Otherwise, it will return false. - - - - Gets or sets the value indicating the full path and filename of the target assembly. - - The target assembly filename. - - - - Gets or sets the value indicating the full path and filename of the output assembly. - - The output assembly filename. - This field is optional; if blank, the default value will be the same value as the property. - - - - Gets or sets the value indicating whether or not third party method calls should be intercepted in the target assembly. - - A boolean value indicating whether or not third party method call interception should be enabled. - - - - Gets or sets the value indicating whether or not method bodies should be intercepted in the target assembly. - - A boolean value indicating whether or not method body interception should be enabled. - - - - Gets or sets the value indicating whether or not new instances should be intercepted in the target assembly. - - A boolean value indicating whether or not new instance interception should be enabled. - - - - Gets or sets the value indicating whether or not field reads and writes should be intercepted in the target assembly. - - A boolean value indicating whether or not field reads and writes should be enabled. - - - - Gets or sets the value indicating whether or not thrown exceptions should be intercepted in the target assembly. - - A boolean value indicating whether or not exception interception should be enabled. - - - - Represents a class that describes the search criteria - for a given item type. - - The target item type. - - - - Gets or sets a value indicating the - of the current . - - - - - The condition that will determine whether or not - the target item matches the criteria. - - - - - Gets or sets a value indicating the weight of the given . - - - - - Represents the default implementation of the interface. - - The type of item to test. - - - - Gets or sets a value indicating the - of the current . - - - - - The condition that will determine whether or not - the target item matches the criteria. - - - - - The weight of the given . - - - - - A class that adds fuzzy search support to instances. - - - - - Applies a criteria to the of - fuzzy items. - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The criteria to test against each item in the list. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - The to associate with the predicate. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - The to associate with the predicate. - The weight of the predicate value expressed in the number of tests that will be counted for/against the target item as a result of the predicate. - - - - Adds an item to a fuzzy list. - - The type of the item being added. - The fuzzy list that will contain the new item. - The item being added. - - - - Returns the FuzzyItem with the highest confidence score in a given - list. - - The type of item being compared. - The fuzzy list that contains the list of possible matches. - The item with the highest match. - - - - Resets the scores of all fuzzy items in the current list. - - The target item type. - The fuzzy list itself. - - - - Converts a list into a list of objects. - - The item type will be used in the fuzzy search. - The target list to be converted. - A fuzzy list containing the elements from the given list. - - - - Represents a search item in a fuzzy search list. - - - - - - - Tests if the current item matches the given - . - - The that determines whether or not the meets a particular description. - - - - Resets the item back to its initial state. - - - - - Reports the probability of a match - based on the - that has been tested so far. - - A value of 1.0 indicates a 100% match; - A value of 0.0 equals a zero percent match. - - - - - Gets the target item. - - - - - Represents the default implementation of a weighted item in - a fuzzy list. - - The item type to be tested. - - - - Initializes the class with the given . - - An instance of the item type that will be tested. - - - - Tests if the current item matches the given - . - - The that determines whether or not the meets a particular description. - - - - Resets the item back to its initial state. - - - - - Reports the probability of a match - based on the - that has been tested so far. - - A value of 1.0 indicates a 100% match; - A value of 0.0 equals a zero percent match. - - - - - Gets the target item. - - - - - The enumeration that determines how a instance should - be handled if the criteria test fails. - - - - - A failure in a criteria test will result in a lower weighted - score for a target item. - - - - - A failure in a criteria test will be ignored, and hence, - the criteria will be optional. - - - - - A failure in a criteria test will cause all previous and remaining - tests against the criteria to fail. - - - - - A class that adds logical extensions to the predicate - class. - - - - - Logically ORs two predicates together. - - The type of item being compared. - The left hand predicate. - The right hand predicate. - A predicate that will return true if and only if one of the given predicates is true; otherwise, it will return false. - - - - Logically ANDs two predicates together. - - The type of item being compared. - The left hand predicate. - The right hand predicate. - A predicate that will return true if and only if both of the given predicates are true; otherwise, it will return false. - - - - Logically negates a single predicate. - - The type of item being compared. - The predicate to negate. - Returns true if the given predicate is false. - - - - An attribute that marks a type as a custom factory. - - - - - The service name that will be associated - with the service type. - - - - - The additional parameters supported by the custom factory. - - - - - Marks a target type as a custom factory - that can create object instances that - can implement the . - - The service type to create. - - - - Gets the service type that can be created - using the factory instance. - - - - - An inversion of control container interface. - - - - - Adds an instance and associates it - with the given service type. - - The service type to associate with the factory - The list of additional parameters that this factory type will support. - The instance that will be responsible for creating the service instance - - - - Determines whether or not the container can create - the given service type. - - The type of service used to determine whether or not the given service can actually be created - The list of additional parameters that this factory type will support. - A boolean value that indicates whether or not the service exists. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - The list of services currently available inside the container. - - - - - Determines whether or not a container will throw an exception - if the requested service is not found. - - - - - Allows an object to create its own service instances. - - - - - Creates a service instance using the given instance. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - Represents the parameters made to a instance during - a method call. - - - - - Gets or sets the value indicating the service container that made the service request. - - - - - Gets the value indicating the service name. - - A null service name indicates that no service name was given during the request. - - - - Gets the value indicating the requested service type. - - - - - Gets the value indicating the additional arguments given in the factory request. - - - - - Represents service classes that need to be initialized - every time a particular - instance creates that type. - - - - - The attribute used to specify how a service should be implemented - in addition to its instancing behavior. - - - - - The name to associate with the given service. - - - - - Allows users to add services to a container using a - given service type. - - By default, each service will be created once per request. - The of service to implement. - - - - Allows users to add services to a container using a - given service type and - lifecycle type. - - The of service to implement. - The instancing behavior to use with this implementation. - - - - The type of service that will be implemented. - - - - - The instancing behavior of the service instance. - - - - - - Represents a class that can inspect or modify service requests - from a given container once a service is created. - - - - - Allows a instance - to inspect or modify the result of a service request. - - - The created as a result of the container operation. - - - - Represents a class that can inspect or modify service requests - from a given container before a service is created. - - - - - Allows a instance - to inspect or modify the result of a service request - just before the service is instantiated. - - - The instance that describes the nature of the service that needs to be created. - - - - An inversion of control container that supports - named services. - - - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Determines whether or not a service can be created using - the given service name - and service type. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that the factory type must support. - Returns true if the service exists; otherwise, it will return false. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The name of the service to instantiate. - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - The list of preprocessors that will handle - every service request before each actual service is created. - - - - - The list of postprocessors that will handle every - service request result. - - - - - A class that describes a single service - provided by a container. - - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - Gets a value indicating the list of arguments required by this particular service. - - - - - Represents a class that describes the context of a service request made to a service container. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the actual arguments that - will be used for the service request. - - - - - Gets the value indicating the original arguments that - were given during the service request. - - - - - Gets the value indicating the original instance - that will be used to handle the service request. - - - - - Gets or sets the value indicating the actual instance - that will be used to handle the service request. - - - - - Represents the results returned when a service request - is made against an instance. - - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - The raw object reference created by the container itself. - - - - - The result that will be returned from the container - instead of the . - - If this property is null, then the original result will be used. - - - - - The container that will handle the service request. - - - - - Gets the value indicating the additional arguments that - were used during the service request. - - - - - An enumeration that denotes the instance behavior - of a particular object reference. - - - - - This means that a new object instance - will be created on each call. - - - - - This means that a new object instance - will be created only once per thread. - - - - - This means that only a single object instance - will ever be created in spite of the number of - subsequent requests for a new object instance. - - - - - Represents an type that processes multiple instances at once. - - - - - Initializes the type using the given . - - The list of instances that will be handled by this type. - - - - A method that passes every request result made - to the list of postprocessors. - - The instance that describes the result of the service request. - A representing the results returned as a result of the postprocessors. - - - - Represents an type that processes multiple instances at once. - - - - - Initializes the type using the given . - - The list of instances that will be handled by this type. - - - - A method that passes every request result made - to the list of preprocessors. - - The parameter that describes the context of the service request. - - - - Represents a class that describes a request to instantiate a particular object type using a given - instance. - - - - - Gets the value indicating the instance - that will instantiate the . - - - - - Represents a class that describes a request to instantiate a particular object type using a given - instance. - - - - - Initializes the class with the given parameters. - - The type to be instantiated. - The container that will be used to instantiate the target type. - The additional arguments that must be passed to the constructor. - - - - Gets the value indicating the instance - that will instantiate the . - - - - - Represents a class that can instantiate object instances. - - - - - Creates an object instance. - - A valid object instance. - - - - Determines which parameter types need to be supplied to invoke a particular - instance. - - The target constructor. - The additional arguments that will be used to invoke the constructor. - The list of parameter types that are still missing parameter values. - - - - Initializes the class with the default services. - - The target service container. - - - - The attribute used to mark a property for autoinjection. - - - - - Marks a target type as an - instance that can be injected into a - instance. - - - - - Marks a target type as an - instance that can be injected into a - instance. - - - - - Represents a class that is responsible for generating methods - from other existing methods. - - The method type to generate. - - - - Creates a method from the . - - The method that will be used to define the new method. - A method based on the old method. - - - - Represents the default implementation of the interface. - - The method type to generate. - - - - Creates a method from the . - - The method that will be used to define the new method. - A method based on the old method. - - - - Pushes the method arguments onto the stack. - - The of the target method body. - The target method that will be invoked. - - - - Determines the parameter types of the dynamically generated method. - - The target method. - The target method argument types. - The list of objects that describe the signature of the method to generate. - - - - Pushes the method target onto the stack. - - The that belongs to the method body. - The current method. - - - - Determines the return type from the target . - - The target method itself. - The method return type. - - - - Emits the instruction to call the target - The of the target method body. - The method that will be invoked. - - - - Represents a type that can invoke a method - using a given set of method arguments. - - - - - Invokes the - using the given . - - The target object instance. - The target method to invoke. - The arguments to be used with the method. - The method return value. - - - - Represents the default implementation of the interface. - - - - - Initializes the class with the default values. - - - - - Instantiates an object instance with the - and . - - The target object reference. In this particular case, this parameter will be ignored. - The target method. - The arguments to be used with the method. - An object reference that represents the method return value. - - - - Invokes the with the given . - - The target instance. - The original method that describes the target method. - The actual method that will be invoked. - The method arguments. - The return value from the target method. - - - - Creates a that will be used as the - factory method and stores it in the method cache. - - The constructor that will be used to instantiate the target type. - - - - Initializes the class with the source service container. - The instance that will initialize this class. - - - - Gets or sets the value indicating the method builder that will be used to - create the target method. - - - - - A class that invokes constructor instances. - - - - - Initializes the class with the default values. - - - - - A method builder that generates dynamic methods using existing constructors. - - - - - Returns the declaring type of the target constructor. - - - - The declaring type of the target constructor. - - - - Emits an instruction that instantiates the type associated with the - . - - The of the target method body. - The target constructor. - - - - A class that adds generics support to existing - and - instances. - - - - - Loads a set of files from the target directory - using a custom instance. - - The container to be loaded. - The custom that will be used to load the target assemblies from disk. - The target directory. - The search pattern that describes the list of files to be loaded. - The custom loader that will be used to load the container. - - - - Loads a set of files from the target directory - using a custom instance. - - The container to be loaded. - The custom that will be used to load the target assemblies from disk. - The target directory. - The search pattern that describes the list of files to be loaded. - - - - Loads a set of files from the target directory. - - The container to be loaded. - The target directory. - The search pattern that describes the list of files to be loaded. - The custom loader that will be used to load the container. - - - - Loads a set of files from the target directory. - - The container to be loaded. - The target directory. - The search pattern that describes the list of files to be loaded. - - - - Loads a set of files from the application base directory. - - The container to be loaded. - The search pattern that describes the list of files to be loaded. - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - - This method only performs constructor injection on the target type. If you need any other form of injection (such as property injection), you'll need to - register your type and instantiate it with the method. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Loads an existing into the container. - - The target container to be configured. - The assembly to be loaded. - - - - Generates the default for a class instance. - - The loader that will load the target container. - A valid instance. - - - - Sets the custom attribute type that will be used to mark properties - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark properties for injection. - - - - Sets the custom attribute type that will be used to mark methods - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark method for injection. - - - - Sets the custom attribute type that will be used to mark fields - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark fields for injection. - - - - Initializes the target - with the default services. - - - - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Postprocesses an object instance as if it were created from the target . - - The container that will postprocess the target . - The type being processed. - The target instance to be processed. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - - This method only performs constructor injection on the target type. If you need any other form of injection (such as property injection), you'll need to - register your type and instantiate it with the method. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Initializes the container with the minimum required services. - - The target service container. - - - - Creates an instance of - using the given . - - The service type to create. - The container that will instantiate the service. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Instantiates a service that matches the service description. - - The container that will instantiate the service. - The description of the requested service. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Creates an instance of - using the given . - - The service type to create. - The container that will instantiate the service. - The name of the service to instantiate. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Configures the container to instantiate the - on every request for the . - - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - - - - Registers the service type - as both the implementing type and the service type using the given . - - The container that will hold the service type. - The service type that will be registered as both the service type and the implementing type. - The service . - - - - Registers the service type - as both the implementing type and the service type. - - The container that will hold the service type. - The service type that will be registered as both the service type and the implementing type. - - - - Configures the container to instantiate the - on every request for the . - - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - The service . - - - - Registers an existing service instance with the container using the given - and . - - The target container instance. - The service name that will be associated with the service instance. - The target service type. - The actual service instance that will represent the service type. - - - - Registers an existing service instance with the container using the given - . - - The target container instance. - The target service type. - The actual service instance that will represent the service type. - - - - Configures the container to instantiate the - on every request for the . - - The name of the service to associate with the given . - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - The service . - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The container that will hold the factory instance. - The instance that will create the object instance. - - - - Adds an instance and associates it - with the given service type. - - The container that will hold the factory instance. - The instance that will create the object instance. - - - - Adds an instance and associates it with the given - and - The target container. - The service name. - The service type. - The factory instance that will be responsible for creating the service itself. - - - - Adds an instance and associates it with the given - - The target container. - The service type. - The factory instance that will be responsible for creating the service itself. - - - - Registers the as the default factory instance - that will be used if no other factory can be found for the current . - - The host container. - The service type that will be created by the default factory. - The instance that will be used if no other factories can create the given service type. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type that will be implemented. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The third parameter type of the . - The third parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The third parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given and - to instantiate the service instance. - - The service type itself. - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type. - - - - Adds a service to the container by using the given and - to instantiate the service instance. - - The service type itself. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type. - - - - Adds an existing service instance to the container. - - The type of service being added. - The container that will hold the service instance. - The service instance itself. - - - - Adds an existing service instance to the container and - associates it with the . - - The type of service being added. - The container that will hold the service instance. - The name that will be associated with the service instance. - The service instance itself. - - - - Returns all the services in the container that match the given - service type. - - The type of service to return. - The target container. - The additional arguments that will be used to construct the service type. - The list of services that implement the given service type. - - - - Returns a list of services that match the given . - - The predicate that determines which services should be returned. - A list of objects that describe the services returned as well as provide a reference to the resulting services themselves. - the target instance. - The additional arguments that will be used to construct the service type. - - - - Determines whether or not the container can instantiate the given - and using the given . - - The target container. - The name of the requested service. - The requested service type. - The potential arguments for the service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not the container contains a service that matches - the given . - - The target container. - The requested service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not the container contains a service that matches - the given . - - The target container. - The requested service name. - The requested service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not a container contains services that match - the given . - - The target container. - The predicate that will be used to determine whether or not the requested services exist. - Returns true if the requested services exist; otherwise, it will return false. - - - - Disables automatic property injection for the . - - The target container. - - - - Disables automatic method injection for the . - - The target container. - - - - Disables automatic field injection for the . - - The target container. - - - - Disables automatic dependency injection for members that match the specific - type. - - The member injection type to disable. - The target container. - - - - A class that adds fluent syntax support to - instances. - - - - - Injects a type - into a using the - given - The type of service to inject. - The container that will hold the actual service service instance. - The name of the service to create. - A non-null instance. - - - - Injects a type - into a . - - The type of service to inject. - The container that will hold the actual service service instance. - A non-null instance. - - - - Initializes services that match the given type. - - The service type to initialize. - The container that will create the service itself. - A instance. This cannot be null. - - - - Initializes services that match the given and type. - - The service type to initialize. - The container that will create the service itself. - The name of the service to initialize. - A instance. This cannot be null. - - - - Converts a - lambda into an equivalent - instance. - - The type of service to create. - The lambda function to be converted. - The equivalent - that delegates its calls back to the lambda function. - - - - Adds methods that extend LinFu.IoC to support automatic constructor resolution. - - - - - Generates a predicate that determines whether or not a specific parameter type - exists in a container. - - The target . - A a predicate that determines whether or not a specific type - exists in a container - - - - Generates a predicate that determines whether or not a specific type is actually - a list of services that can be created from a given container. - - The target . - A a predicate that determines whether or not a specific type - exists as a list of services in a container - - - - Generates a predicate that determines whether or not a specific type is actually - a list of services that can be created from a given container. - - The target . - A a predicate that determines whether or not a specific type - exists as a list of services in a container - - - - Builds an argument list for the - using the given instance. - - The method that will be used to instantiate an object instance. - The container that will provide the method arguments. - An array of objects to be used with the target method. - - - - Builds an argument list for the target from - services embedded inside the instance. - - The instance that will determine the method arguments. - The target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects to be used with the target method. - - - - Casts an set of items into an array of - items. - - The items being converted. - The element type of the resulting array. - An array of items that match the . - - - - Performs a strongly typed cast against an instance. - - The target element type. - The list of items being converted. - An array of items that match the element type. - - - - Represents a class that can generate instances - from a given service type, implementing type, and lifecycle. - - - - - Generates a instance that can create the - using the and model. - - The service type that will be created by the factory. - The concrete type that will provide the implementation for the service type. - The instancing behavior of the given service type. - A valid instance. - - - - The default implementation of the class. - - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The that determines the lifetime of each instance being created. - A valid instance. - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The factory type that will instantiate the target service. - A valid instance. - - - - Determines the implementing concrete type from the given . - - The service type. - The concrete class that will implement the service type. - The actual implementing type. - - - - A private method that creates the factory method delegate - for use with a particular factory class. - - - - - The service type being instantiated. - The type that will provide the implementation for the actual service. - A factory method delegate that can create the given service. - - - - A method that generates the actual lambda function that creates - the new service instance. - - The service type being instantiated. - The type that will provide the implementation for the actual service. - A strongly-typed factory method delegate that can create the given service. - - - - Represents a class that provides the most basic information - for executing a fluent command against a - instance. - - - - - - - The service type to be created. - - - - - The name of the service to be created. - - - - - The actual - that ultimately will hold the service instance. - - - - - Represents the internal context class that will be used to - incrementally build enough information to initialize - a specific type once - that service has been instantiated. - - The service type to be created. - - - - The action that will be performed on an - instance once the fluent command executes. - - - - - Represents a postprocessor that will execute - the action associated with the given - instance every time the target container returns a - service with particular service name and service type. - - - - - - - Represents a fluent class that allows - users to create specific types of factories. - - The type of service being created. - - - - Creates a singleton factory. - - - - - - Creates a once per thread factory. - - - - - - Creates a once per request factory. - - - - - - Represents a fluent class that allows - users to create specific types of factories. - - The type of service being created. - - - - Instantiates the class using the given - . - - The instance - which will contain the information necessary to build a fluent command. - - - - Creates a singleton factory. - - - - - - Creates a once per thread factory. - - - - - - Creates a once per request factory. - - - - - - Adds a factory to the container by using the - delegate to - create the actual - instance. - - The delegate that will create the actual factory instance. - - - - Represents the internal context class that will be used to - incrementally build enough information to inject a specific - instance into a container. - - The service type to be created. - - - - The factory method that will be used to - instantiate the actual - instance. - - - - - Represents a fluent class that creates - a method that initializes a - instance. - - The service type being instantiated. - - - - Initializes service instances with the given - . - - An delegate that will be used to initialize newly created services. - - - - Uses an action delegate to initialize a given service using - the given and - instances. - - An delegate that will be used to initialize newly created services. - - - - Represents a fluent class that creates - a method that initializes a - instance. - - The service type being instantiated. - - - - Initializes the class with the . - - The context that will be associated with the target container. - - - - Initializes service instances with the given - . - - An delegate that will be used to initialize newly created services. - - - - Uses an action delegate to initialize a given service using - the given and - instances. - - An delegate that will be used to initialize newly created services. - - - - Attaches the action associated with the - instance to the target container embedded within the - class itself. - - The context that will be associated with the target container. - - - - Represents a fluent class that creates - a factory method that will be used - in instantiating a specific service instance. - - The service type being instantiated. - - - - Creates a service instance using the - concrete type - as the implementation for the - type. - - The concrete implementation that implements . This class must have a default constructor. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Represents a fluent class that creates - a factory method that will be used - in instantiating a specific service instance. - - The service type being instantiated. - - - - Initializes the class using the given . - - the internal context class that will be used to - incrementally build enough information to inject a specific - instance into a container. - - - - Creates a service instance using the - concrete type - as the implementation for the - type. - - The concrete implementation that implements . This class must have a default constructor. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - A class that initializes service instances that use - the interface. - - - - - Initializes the class with the given delegate. - - The functor that will obtain the object instance that will be used to initialize a given service. - - - - Initializes every service that implements - the interface. - - The instance that contains the service instance to be initialized. - - - - Initializes the with the given instance. - - The target to initialize. - The instance that will be introduced to the instance. - - - - A class that initializes service instances that use - the interface. - - - - - Initializes the class with the default settings. - - - - - A class that injects the postprocessor - into every container that is created or loaded. - - - - - This override does absolutely nothing. - - The target container. - - - - Injects the postprocessor into - the container. - - - - - - - An interface responsible for determining which methods - should be injected. - - - - - Returns the list of objects - that will be injected with arbitrary values. - - The target type that contains the target methods. - A set of methods that describe which methods that will injected. - - - - Defines the basic behavior of the interface. - - The member type that will be filtered. - - - - Returns the list of objects - whose setters will injected with arbitrary values. - - This implementation selects properties that are marked with the . - The target type that contains the target properties. - A set of properties that describe which parameters should be injected. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - Determines which items should be injected from the instance. - - The source container that will supply the values for the selected members. - The list of properties that will be filtered. - A list of properties that will be injected. - - - - Initializes the class. - - The host container. - - - - A default implementation of the - class that returns fields which have the - defined. - - - - - Initializes the class and uses the - to specify which field should be automatically injected with - services from the container. - - - - - Initializes the class and uses the - to specify which fields should be automatically injected with - services from the container. - - The custom property attribute that will be used to mark properties for automatic injection. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - A default implementation of the - class that returns methods which have the - defined. - - - - - Initializes the class with the as the - default injection attribute. - - - - - Initializes the class and uses the - as the custom injection attribute. - - - - - - - Returns the methods that have the custom attribute type defined. - - The target type that contains the target methods. - The host container. - The list of methods that have the custom attribute type defined. - - - - A default implementation of the - class that returns properties which have the - defined. - - - - - Initializes the class and uses the - to specify which properties should be automatically injected with - services from the container. - - - - - Initializes the class and uses the - to specify which properties should be automatically injected with - services from the container. - - The custom property attribute that will be used to mark properties for automatic injection. - - - - Determines which properties should be injected from the instance. - - The source container that will supply the property values for the selected properties. - The list of properties to be filtered. - A list of properties that should be injected. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - Represents an alias interface used for backward compatibility with LinFu IoC 1.0 - - - - - The base class that defines the behavior for automatically injecting service - instances into type member instances. - - - - - - - Automatically injects service instances - into properties as soon as they are initialized. - - The service request result that contains the service whose members will be injected with service instances. - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - Injects a member service dependency into a target service instance. - - The that will be processed for injection. - - - - Does absolutely nothing. - - The target container. - - - - Inserts the class at the end - of the PostProcessor chain. - - The target container. - - - - A class that automatically injects fields using values - provided by an instance. - - - - - Injects a field with values from a given container. - - The target object. - The instance that will store the service instance. - The that will determine which values will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. Note: This parameter will be ignored by this override. - The container that will provide the service instances. - - - - A class that automatically invokes methods using arguments - derived from existing instances from within a - instance. - - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - A class that automatically injects property dependencies into - service instances. - - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - A class that injects unnamed custom instances into a given - service container. - - - - - Initializes the class with the given service type and factory. - - The service type that will be created by the factory. - The instance that will be used to create the service instance. - - - - Injects the given factory into the target container. - - The instance that describes the service that is currently being requested. - - - - Represents a type of - that always returns an empty match. - - - - - Always returns an empty list of injectable members. - - The type to be injected. - An empty list. - - - - An implementation - that automatically selects properties whose property types - currently exist in the target container. - - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - An assembly loader that returns an existing - from memory. - - - - - Initializes the class with an existing - . - - The target assembly. - - - - Represents the data associated with a search. - - - - - Gets or sets the value indicating the type arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the list of arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the return type of the target method. - - - - - Represents a class that determines which method best matches the - services currently in the target container. - - The method type to search. - - - - Determines which method best matches the - services currently in the target container. - - The list of methods to search. - The that describes the target method. - Returns the method with the most resolvable parameters from the target instance. - - - - Represents a method finder that uses a instance - during its method searches. - - - - - - - Gets the value indicating the service container that will be used in the - method search. - - - - - Represents a class that loads configuration information - from a given assembly. - - - - - Generates one or more instances - from a given source type so that it can be used - against an instance. - - - - - A class that injects custom and - instances into an instance. - - - - - Loads an and instance - into a instance using the given - . - - The input type from which one or more factories will be created. - A set of instances. This cannot be null. - - - - Instantiates the instances associated with the and - adds those factories to the target container upon initialization. - - The currently being inspected. - The list of instances currently declared on on the source type. - The functor that will be responsible for generating the factory instance. - A list of actions that will add the factories to the target container. - - - - Instantiates the given factory using the factory functor. - The service type that will be created by the factory. - The functor that will be responsible for creating the factory itself. - The list of interfaces that are implemented by the source type. - A valid factory instance. - - - - Determines whether or not the current - can be loaded. - - The source type currently being loaded. - Returns true if the type is a class type; otherwise, it returns false. - - - - A loader class that scans a type for - attribute declarations and creates a factory for each corresponding - attribute instance. - - - - - - Converts a given into - a set of instances so that - the instance can be loaded - with the given factories. - - The input type from which one or more factories will be created. - A set of instances. This cannot be null. - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The that determines the lifetime of each instance being created. - A valid instance. - - - - Determines whether or not the current - can be loaded. - - The source type currently being loaded. - Returns true if the type is a class type; otherwise, it returns false. - - - - Represents a class that can dynamically configure - instances at runtime. - - - - - Initializes the loader using the default values. - - - - - Gets or sets the value indicating the instance - that will be used to load assemblies into memory. - - - - - A class that automatically loads - instances and configures a loader to inject those postprocessors - into a container upon initialization. - - - - - Determines if the plugin loader can load the . - - The target type must implement the interface before it can be loaded into memory. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of instances - so that they can be loaded into a container upon initialization. - - The type that will be used to configure the target loader. - A set of instances. This cannot be null. - - - - A class that automatically loads - instances and configures a loader to inject those postprocessors - into a container upon initialization. - - - - - Determines if the plugin loader can load the . - - The target type must implement the interface before it can be loaded into memory. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of instances - so that they can be loaded into a container upon initialization. - - The type that will be used to configure the target loader. - A set of instances. This cannot be null. - - - - A class that dynamically generates calls to a instance. - - - - - Pushes the method target onto the evaluation stack. - - The of the method body. - The target method. - - - - Pushes the method arguments onto the stack. - - The of the target method body. - The target method that will be invoked. - - - - Determines the return type from the target . - - The target method itself. - The method return type. - - - - Determines the parameter types of the dynamically generated method. - - The target method. - The target method argument types. - The list of objects that describe the signature of the method to generate. - This override will add an additional parameter type to accomodate the method target. - - - - Emits the instruction to call the target - The of the target method body. - The method that will be invoked. - - - - Represents the data associated with a search. - - - - - Initializes the context with the default values. - - The list of arguments that will be passed to the target method. - - - - Initializes the context with the default values. - - The type arguments that will be used to construct the target method. - The list of arguments that will be passed to the target method. - The type that must be returned by the target method. - - - - Gets or sets the value indicating the type arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the list of arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the return type of the target method. - - - - - A class that invokes methods. - - - - - Initializes the class with the default values. - - - - - Invokes the with the given . - - The target instance. - The original method that describes the target method. - The actual method that will be invoked. - The method arguments. - The return value from the target method. - - - - A class responsible for setting property values. - - - - - Sets the value of the . - - /// The target instance that contains the property to be modified.The property that will store the given value.The value that will be assigned to the property. - - - A class responsible for setting property values. - - - - - Sets the value of the . - - The target instance that contains the property to be modified. - The property that will store the given value. - The value that will be assigned to the property. - - - - Generates an delegate that will be used - as the property setter for a particular type. - - The property that will be modified. - A property setter. - - - - The exception thrown when a recursive dependency is detected - inside a instance. - - - - - Initializes the - class with the chain - of depedencies that caused the exception. - - The sequence of types that caused the dependency exception. - - - - Gets the value indicating the chain of types that caused the exception. - - - - - Gets the value indicating the error message from the . - - - - - Represents a type that simply lets - methods pass through it without performing any modifications to those methods. - - - - - Returns the unmodified. - - The method to be modified. - The modified method. - - - - Represents a type that can generate method arguments - from an existing instance. - - - - - Generates constructor arguments from the given - and . - - The parameter types for the target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects that represent the arguments to be passed to the target method. - - - - Represents the default implementation of the class. - - - - - Generates method arguments from the given - and . - - The parameter types for the target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects that represent the arguments to be passed to the target method. - - - - Constructs an array of services using the services currently available - in the . - - The current parameter type. - The container that will be used to build the array of services. - The list that will store new service array. - - - - Determines whether or not a parameter type is an existing - list of available services and automatically constructs the - service list and adds it to the . - - The current constructor parameter type. - The container that will provide the argument values. - The list that will hold the arguments to be passed to the constructor. - - - - Represents a class that can choose a member that best matches - the services currently available in a given instance. - - The member type that will be searched. - - - - Uses the to determine which member can be used to instantiate - a concrete type. - - The target type. - The container that contains the service instances that will be used to invoke the target member. - The that describes the target method. - A instance if a match is found; otherwise, it will return null. - - - - Represents a class that can choose a member that best matches - the services currently available in a given instance. - - The member type that will be searched. - - - - The default constructor for the class. - - - - - Initializes the class with a functor - that will be used to instantiate the method finder that will be used in the search. - - The functor that will be used to instantiate the method finder. - - - - Uses the to determine which member to use from - the concrete type. - - The target type. - The container that contains the member values that will be used to invoke the members. - The that describes the target method. - A member instance if a match is found; otherwise, it will return null. - - - - Determines the that will be used - in the method search. - - - - - - - - - The method used to retrieve the default result if no - other alternative is found. - - The target type that contains the default member. - The default member result. - - - - Lists the members associated with the . - - The target type that contains the type members. - A list of members that belong to the concrete type. - - - - Represents the default implementation of the class. - - - - - Initializes the class with the default values. - - - - - Initializes the class using the custom method finder. - - The functor that will be used to instantiate the method finder. - - - - Returns the constructors that belong to the . - - The type that contains the list of constructors. - A list of constructors that belong to the . - - - - Returns the parameterless constructor in case the search fails. - - The target type that contains the default constructor. - The default constructor. - - - - Represents a class that determines which method best matches the - services currently in the target container. - - The method type to search. - - - - Determines which method best matches the - services currently in the target container. - - The list of methods to search. - The that describes the target method. - Returns the method with the most resolvable parameters from the target instance. - - - - Determines which item among the is the best match. - - The list of possible matches. - The best match if found; otherwise, it should return null. - - - - Adds additional to the fuzzy search list. - - The list of methods to rank. - The that describes the target method. - - - - Attempts to match the against the list of methods. - - The list of items currently being compared. - The set of instances that describe each supplied argument type. - - - - A type that uses a - instance to find a method with the most resolvable parameters. - - The method type that will be searched. - - - - Examines a instance - and determines if it can be instantiated with the services embedded in - the target . - - The that represents the constructor to be examined. - The container that contains the services that will be used to instantiate the target type. - Indicates the index that - marks the point where the user-supplied arguments begin. - - - - Adds additional to the fuzzy search list. - - The list of methods to rank. - The that describes the target method. - - - - Initializes the target with the host container. - - The host instance. - - - - Gets the value indicating the service container that will be used in the - method search. - - - - - A type that represents a service instance returned by a container. - - - - - Gets the value indicating the instance - that describes the service instance itself. - - - - - Gets the value indicating the service instance itself. - - - - - Represents the default implementation of the interface. - - - - - Counts the number of occurrences of a specific type. - - - - - Increments the count for the current . - - The type being counted. - - - - Returns the number of occurrences of a specific . - - The type being counted. - The number of occurrences for the given type. - - - - Decrements the count for the current . - - The type being counted. - - - - Resets the counts back to zero. - - - - - Gets the value indicating the types that are - currently being counted. - - - - - Represents a type that can create service instances from a given instance and . - - - - - Creates a service instance using the given and instance. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents an type that generates an object instance from an existing instance. - - - - - Initializes the class with the target . - - The instance that will be returned every time the method is called. - - - - Returns the object instance that given when the class instance was initialized. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents the default implementation for the - - - - Creates a service instance using the given and instance. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents a class that determines the behavior a instance. - - - - - Causes the container to instantiate the service using the given - service request. If the service type cannot be created, it will simply return null. - - A valid object reference if the service can be created; otherwise, it will return null - - - - Represents the default implementation for the interface. - - - - - Initializes the class with the given instance. - - The target service container. - - - - Initializes the class with the given instance. - - The target service container. - The instance responsible for instantiating service types. - The that will allow users to intercept a given service request. - The instance that will handle the results of a given service request. - - - - Instantiates the service described by the . - - The that describes the service that needs to be instantiated. - A valid object reference if the service can be found; otherwise, it will return null. - - - - A strongly-typed version of . Allows users - to create their own service instances - - The instance type that can be created by this factory. - - - - Creates a service instance using the given instance. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - A factory base class that combines both the IFactory and - the IFactory<T> interfaces into a single class. - - - - - - - Creates a service instance using the given container. - - - developers can inherit from this class - instead of having to write their own custom factories - from scratch. This should cut down on some of the boilerplate - code necessary to get a factory class up and running. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - Represents a class that uses a - to instantiate a service instance. - - - - - Initializes the class with the given - The delegate that will be used to instantiate the factory. - - - - Instantiates the service type using the given delegate. - - The that describes the service that needs to be created. - The service instance. - - - - An adapter that converts strongly-typed IFactory<T> - instances into an equivalent IFactory instance. - - The service type to create. - - - - Creates the factory adapter using the given - IFactory<T> instance. - - The factory instance that - will be called every time the method - is called. - - - - Overridden. Uses the strongly-typed factory - to create the service instance every time - the method - is called. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - The factory that will create the service instance. - - - - - A class that converts a delegate into an instance. - - - - - Initializes the class with the given . - - The delegate that will be used to instantiate a type. - - - - Instantiates an object reference using the given factory method. - - The instance that describes the requested service. - A non-null object reference that represents the service type. - - - - A factory that uses an existing object reference - instead of creating a new service. - - - - - Creates a factory using the existing . - - The existing object reference that the factory will return. - - - - A method that returns the existing object reference associated with - this factory. - - The instance that describes the requested service. - A non-null object reference. - - - - Represents an class that instantiates a factory only on request. - - - - - Instantiates the class with the factory functor method. - - The functor that will be responsible for instantiating the actual factory. - - - - Instantiates the actual factory instance and uses it to instantiate the target service type. - - The that describes the service to be created. - A valid service instance. - - - - Represents a factory that returns strongly-typed IFactory instances. - - The service type to be created. - - - - Initializes the factory with the given functor. - - The functor that will instantiate the actual factory instance. - - - - Instantiates the service type using the actual factory. - - The instance that describes the service to be created. - - - - - - A factory that creates a unique service instance every time - the method is called. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a OncePerRequestFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new OncePerRequestFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - This method creates a new service instance every time - it is invoked. - - The instance that describes the requested service. - A non-null object reference. - - - - A factory that creates service instances that are unique - from within the same thread as the factory itself. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a OncePerThreadFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new OncePerThreadFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - Creates the service instance using the given - instance. Every service instance created from this factory will - only be created once per thread. - - The instance that describes the requested service. - A a service instance as thread-wide singleton. - - - - A factory that creates Singletons. Each service that this factory creates will only be created once per concrete type. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a SingletonFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new SingletonFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - A method that creates a service instance as a singleton. - - The instance that describes the requested service. - A service instance as a singleton. - - - - Extends the instance with a few helper methods. - - - - - Creates an object instance. - - The target factory. - The requested service type. - The target service contaienr. - The additional arguments that will be used to create the service instance. - A service instance. - - - - Represents the default implementation of the interface. - - - - - Gets the value indicating the service container that made the service request. - - - - - Gets the value indicating the service name. - - A null service name indicates that no service name was given during the request. - - - - Gets the value indicating the requested service type. - - - - - Gets the value indicating the additional arguments given in the factory request. - - - - - Represents a class that stores factory instances. - - - - - Determines which factories should be used - for a particular service request. - - The object that describes the target factory. - A factory instance. - - - - Adds a to the current object. - - The object that describes the target factory. - The instance that will create the object instance. - - - - Determines whether or not a factory exists in storage. - - The object that describes the target factory. - Returns true if the factory exists; otherwise, it will return false. - - - - Gets a value indicating the list of objects - that describe each available factory in the current - instance. - - - - - Represents the default base implementation of the class. - - - - - Determines which factories should be used - for a particular service request. - - The object that describes the target factory. - A factory instance. - - - - Adds a to the current object. - - The object that describes the target factory. - The instance that will create the object instance. - - - - Determines whether or not a factory exists in storage. - - The object that describes the target factory. - Returns true if the factory exists; otherwise, it will return false. - - - - Gets a value indicating the list of objects - that describe each available factory in the current - instance. - - - - - Represents an instance that adds generics support to the implementation. - - - - - Determines whether or not an instance - can be used to create the given service described by the object. - - The object that describes the service to be created. - - True if the service can be created; otherwise, it will return false. - - - - Obtains the instance that can instantiate the - service described by the object instance. - - The object that describes the service to be created. - A instance if the service can be instantiated; otherwise, it will return false. - - - - An extension class that adds a few helper methods to the - interface. - - - - - Adds a factory to the current instance. - - The object that will store the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Determines which factories should be used - for a particular service request. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameter values that this factory type will use to instantiate the service. - A factory instance. - - - - Determines which factories should be used - for a particular service request. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - A factory instance. - - - - Determines whether or not a factory exists in storage. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - Returns true if the factory exists; otherwise, it will return false. - - - - A class that provides the most basic functionality for an interceptor. - - - - - The default constructor. - - - - - Initializes the class with the instance. - - The instance that will invoke the target method. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - Intercepts a method call using the given - instance. - - The instance that will - contain all the necessary information associated with a - particular method call. - The return value of the target method. If the return type of the target - method is , then the return value will be ignored. - - - - Gets the value indicating the instance - that will be used to invoke the target method. - - - - - An interceptor class that instantiates a target type only when - the methods for that target are invoked. - - The type of object to intercept. - - - - Initializes the class with the - factory method. - - The functor that will be used to create the actual object instance. - - - - A method that uses the given factory method to provide a target - for the method currently being invoked. - - The object that describes the current invocation context. - The target itself. - - - - Intercepts the method and initializes the target instance before the - actual object is invoked. - - The that describes the execution context. - The return value of the target method. - - - - Adapts a instance into an . - - - - - Initializes the class. - - The functor responsible for obtaining the target instance. - The method invoker. - The target instance. - - - - Converts the call to to an - method call. - - The that describes the context of the method call. - The return value from the target method. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - The class responsible for loading interceptors marked with the - class. - - - - - Initializes the class with the given . - - The instance that will be responsible for loading the instance itself. - - - - Loads an derived class into a particular instance - so that the current interceptor type can intercept calls made to services created from the given - target container. - - The interceptor type. - By default, this will always return an empty set of container actions. The actual interceptor itself will be injected at the end of the postprocessor chain. - - - - Generates a proxy instance from an existing instance. - - The instance that describes the proxy type that must be generated. - The functor that will create the interceptor which will handle all calls made to the proxy instance. - A service proxy. - - - - Determines whether or not a target type is an interceptor. - - The target type currently being tested. - Returns true if the is an interceptor; otherwise, it will return false. - - - - The attribute class used to indentify interceptor classes. - - - - - Initializes the class with the given . - - The target type that will be intercepted. - - - - Initializes the class with the given and . - - The name of service that will be intercepted. - The target type that will be intercepted. - - - - Gets the value indicating the name of the service to intercept. - - - - - Gets the value indicating the target type that will be intercepted. - - - - - An interceptor that intercepts instances - and replaces the original target instance with a surrogate instance. - - - - - Initializes the class with a functor that can provide the actual target instance. - - The that will provide the target instance that will be used for the method invocation. - The method invoker. - The instance that describes the current execution context. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - A implementation that inserts - instances at the beginning of a - loading sequence. - - - - - Initializes the class with the given instance. - - The postprocessor that will inject proxies in place of actual service requests. - - - - Injects a into the target container. - - The service container that will hold the . - - - - Does absolutely nothing. - - The target container. - - - - Represents a class that automatically injects a proxy instance - instead of an actual service instance. - - - - - Initializes the class with the - and the factory method. - - The predicate that will determine which service requests will be proxied. - The factory method that will generate the proxy instance itself. - - - - A method that injects service proxies in place of the actual . - - The instance that describes the service request. - - - - Represents a loader that reads a file and converts it - into an equivalent set of a set of - instances that can be applied to a particular - instance of an class. - - - - - An interceptor class that redirects calls to another interceptor. - - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - Represents a class that keeps track of all the disposable objects - created within a service container and disposes them when - the scope itself has been disposed. - - - - - A class that adds late binding support to any CLR object. - - - - - Invokes a method on the target . - - The target instance that will be used to invoke the method. - The name of the target method. - The arguments that will be passed to the target method. - The method return value. - - - - Invokes a method on the target using the given and . - - The target instance. - The name of the target method. - The that describes the target method. - The method return value. - - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The type argument that will be passed to the target method. - The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The third type argument that will be passed to the target method.The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The third type argument that will be passed to the target method.The fourth type argument that will be passed to the target method.The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The type arguments that will be passed to the target method. - The arguments that will be passed to the target method. - The method return value. - - - - Represents a class that keeps track of all the disposable objects - created within a service container and disposes them when - the scope itself has been disposed. - - - - - Disposes the services that have been created while the scope has been active. - - - - - Monitors the for any services that are created and automatically disposes them - once the is disposed. - - The that describes the service being instantiated. - - - - Inserts the scope into the target container. - - The container that will hold the scope instance. - - - - Represents a service container with additional - extension points for customizing service instances - - - - - Initializes the container with the default services. - - - - - Initializes the container with a custom type. - - The instance that will be responsible for generating service instances. - The instance responsible for determining which factory instance will instantiate a given service request. - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Adds an instance and associates it - with the given service type. - - The service type to associate with the factory - The list of additional parameters that this factory type will support. - The instance that will be responsible for creating the service instance - - - - Determines whether or not the given - can be instantiated by the container. - - The type of service to instantiate. - The list of additional parameters that this factory type will support. - Returns true if the service exists; otherwise, it will return false. - - - - Overridden. Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - - This overload of the GetService method has been overridden - so that its results can be handled by the postprocessors. - - - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The name of the service to instantiate. - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Determines whether or not a service can be created using - the given service name - and service type. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - Returns true if the service exists; otherwise, it will return false. - - - - Gets or sets a System.Boolean value - that determines whether or not the container should throw - a if a requested service - cannot be found or created. - - - - - Gets the value indicating the instance - that will be used to store each instance. - - - - - The list of postprocessors that will handle every - service request result. - - - - - The list of preprocessors that will handle - every service request before each actual service is created. - - - - - The list of services currently available inside the container. - - - - - The exception thrown when a service type is - requested from a container and that named container - is unable to find or create that particular service instance. - - - - - Initializes the service exception using the - given as - the service that was not found. - - The service type being requested. - - - - The error message that this particular exception - will display. - - - - - The exception thrown when a service name and a service type is - requested from a named container and that named container - is unable to find or create that particular service instance. - - - - - Initializes the service exception using the - given as - the service that was not found. - - The service type being requested. - The name of the service being requested. - - - - The error message that this particular exception - will display. - - - - - Represents the default implementation of the ServiceInfo class. - - - - - Initializes the class with the given - and . - - The name of the service. - The type of service that can be created. - - - - Initializes the class with the given - and . - - The name of the service. - The type of service that can be created. - The parameter types required by the given service. - - - - Displays the name of the current service and the current service type. - - The name of the current service and the current service type. - - - - Determines if the other object is equal to the current instance. - - The other object that will be used in the comparison. - Returns true if both instances have the same service name, implement the same service type and have the same arguments; otherwise, it will return false. - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - Gets a value indicating the list of arguments required by this particular service. - - - - - Reprsents the default implementation of the interface. - - - - - Initializes the class. - - The name of the requested service. - The requested service type. - The proposed set of arguments that will be given to the factory. - The instance that will be used to handle the service request. - The host container. - - - - Gets the value indicating the original arguments that - were given during the service request. - - - - - Gets the value indicating the original instance - that will be used to handle the service request. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the actual arguments that - will be used for the service request. - - - - - Gets or sets the value indicating the actual instance - that will be used to handle the service request. - - - - - Represents the results returned when a service request - is made against an instance. - - - - - The name of the service being created. By default, this property is blank. - - - - - The raw object reference created by the container itself. - - - - - The result that will be returned from the container - instead of the . - - If this property is null, then the original result will be used. - - - - - The type of service being requested. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the additional arguments that - were used during the service request. - - - - - Provides the default implementation for the - interface. - - - - - Initializes the class with the default values. - - - - - Generates a method body for the . - - The method currently being intercepted. - The target method that will contain the new method body. - - - - Emits the IL instructions to obtain an instance for the proxy type. - - The responsible for emitting the method body. - The proxy type. - The getter method for the interceptor. - - - - Causes the to make the method throw a - if the method cannot be found. - - The responsible for emitting the method body. - - - - Saves the ref arguments of a given method using the - from the - object. - - The that will emit the method body. - The parameters of the target method. - The local variable that contains the instance. - The local variable that will store the arguments from the instance. - - - - Initializes the MethodBodyEmitter class. - - - - - - - The instance that - - - - - A type that generates - proxies that forward all virtual method calls to a - single interceptor. - - - - - Initializes the current class with the default values. - - - - - Generates a proxy that forwards all virtual method calls - to a single instance. - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - Initializes the current instance - with the container. - - The instance that will hold the current instance. - - - - Gets or sets the interface - which will emit the actual implementation of the IProxy interface. - - - - - Gets or sets the - instance that will determine which methods - will be proxied by the proxy builder. - - - - - The instance - that will be responsible for generating each method - for the current target type. - - - - - Provides the default implementation for the - interface. - - - - - Determines which interfaces a given type should implement. - - The base type that holds the list of interfaces to implement. - The list of interfaces already being implemented. - - - - Represents the default class implementation for the - interface. - - - - - Determines which methods can be proxied from - the given and . - - By default, only public virtual methods will be proxied. - The base class of the proxy type currently being generated. - The list of interfaces that the proxy must implement. - A list of objects that can be proxied. - - - - Represents the default implementation of the interface. - - - - - Determines whether or not the cache contains an existing proxy type - that is derived from the and implements - the given . - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns true if the proxy type already exists; otherwise, it will return false. - - - - Retrieves an existing proxy type from the cache. - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns a valid if the type already exists; otherwise, it might return null or opt to throw an exception. - - - - Stores a proxy type in the cache. - - The proxy type to be stored. - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - - - - Represents a cached proxy type. - - - - - Provides the basic implementation for a proxy factory class. - - - - - Initializes the proxy factory with the default values. - - - - - Creates a proxy type using the given - as the base class - and ensures that the proxy type implements the given - interface types. - - The base class from which the proxy type will be derived. - The list of interfaces that the proxy will implement. - A forwarding proxy. - - - - Initializes the instance - with the container. - - The instance that will hold the ProxyFactory. - - - - Gets or sets the type that will be - responsible for determining which interfaces - the proxy type should implement. - - - - - The instance that is - responsible for generating the proxy type. - - - - - The instance that will be used to - ensure that the generated assemblies are valid. - - - - - Gets or sets a value indicating the - instance that will be used to cache previous proxy generation runs. - - - - - A class that provides the default implementation - for the IProxy interface. - - - - - Constructs a type that implements the - interface. - - The module that will hold the target type. - The type that will implement the interface. - - - - Represents the default implementation of the - interface. - - - - - Initializes the class with the default property values. - - - - - Creates a method that matches the signature defined in the - parameter. - - The type that will host the new method. - The method from which the signature will be derived. - - - - Matches the generic parameters of a target method - The generic method that contains the generic type arguments. - The array of objects that describe the generic parameters for the current method. - - - - Initializes the class with the container. - - The instance that will create the class instance. - - - - The instance that will be - responsible for generating the method body. - - - - - Represents a helper class that deserializes proxy instances. - - - - - Initializes a new instance of the ProxyObjectReference class. - - The class that contains the serialized data. - The that describes the serialization state. - - - - Returns the deserialized proxy instance. - - The that describes the serialization state. - - - - - - Serializes the proxy to a stream. - - This method override does nothing. - The class that contains the serialized data. - The that describes the serialization state. - - - - Represents a type that can create serializable proxy types. - - - - - Generates a proxy that forwards all virtual method calls - to a single instance. - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - A class that adds proxy support to the class - - - - - Creates a duck type that redirects its calls to the - given . - - The target instance that will be invoked once the duck type instance has been invoked. - The additional list of interfaces that will be implemented by the duck type. - The type parameter that describes the duck type. - The return value from the target method. - - - - Creates a duck type that redirects its calls to the - given . - - The target instance that will be invoked once the duck type instance has been invoked. - The that describes the duck type. - The additional list of interfaces that will be implemented by the duck type. - The return value from the target method. - - - - Adapts an instance to an - instance. - - - - - Initializes the CallAdapter class with the instance. - - The instance that will be called every time the interceptor is invoked. - - - - Intercepts a method call and passes the arguments - down to the instance. - - The instance that describes the method currently being executed. - The return value of the target method. - - - - A class that converts a functor into an instance. - - - - - Initializes the class with the given functor. - - The functor that will be invoked every time a method is called on the proxy type. - - - - A method that redirects the method calls to - the functor instance. - - The instance that describes the context of the method call. - The return value from the target method. - - - - A class that is responsible for determining - which interfaces a given type should implement. - - - - - Determines which interfaces a given type should implement. - - The base type that holds the list of interfaces to implement. - The list of interfaces already being implemented. - - - - Represents a class that is responsible for - constructing method bodies. - - - - - Generates the method body for the target method. - - The original method that the will be based on. - The method that will contain the method body to be emitted. - - - - Represents a class that determines which methods should be proxied - by a given proxy factory. - - - - - Determines which methods should be proxied - by a given proxy factory. - - The base class of the proxy type currently being generated. - The list of interfaces that the proxy must implement. - A list of objects that can be proxied. - - - - Represents a class that generates methods based on other existing - methods. - - - - - Creates a method that matches the signature defined in the - parameter. - - The type that will host the new method. - The method from which the signature will be derived. - - - - Represents an interface for classes that store results from an - instance. - - - - - Determines whether or not the cache contains an existing proxy type - that is derived from the and implements - the given . - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns true if the proxy type already exists; otherwise, it will return false. - - - - Retrieves an existing proxy type from the cache. - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns a valid if the type already exists; otherwise, it might return null or opt to throw an exception. - - - - Stores a proxy type in the cache. - - The proxy type to be stored. - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - - - - Represents a dynamically generated proxy instance. - - - - - The interceptor that will handle all - calls made to the proxy instance. - - - - - Represents a class that is responsible - for generating proxy types. - - - - - Generates a proxy that must be derived - from the and implement - the list of . - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - Represents the basic interface for creating - dynamic proxy instances. - - - - - Generates a dynamic proxy type - that derives from the - and implements the given interfaces. - - The base class from which the generated dynamic proxy will be derived. - The list of interfaces that the generated dynamic proxy will implement. - A dynamic proxy type. - - - - Extends the class to support - instantiating proxy types. - - - - - Uses the to create a proxy instance - that directly derives from the - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The IProxyFactory instance that will be used to generate the proxy type. - The type that will be intercepted by the proxy. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The IProxyFactory instance that will be used to generate the proxy type. - The type that will be intercepted by the proxy. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - - - The will be used to intercept method calls - performed against the target instance. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The functor that will invoked every time a method is called on the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - - - The will be used to intercept method calls - performed against the target instance. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The functor that will invoked every time a method is called on the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Represents a class that can configure - a target of type - using an input type of . - - The target type to configure. - The input that will be used to configure the target. - - - - Generates a set of instances - using the given . - - The input that will be used to configure the target. - A set of instances. This cannot be null. - - - - Determines if the PluginLoader can load the . - - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - A class that reads an assembly and converts it into a set of actions - that can be used to build the list of actions against the - type. - - The target type. - - - - Initializes the class with a set of - instances that will be used to load the target assembly. - - The delegate that will return the actual list of typeloaders. - - - - Loads the target assembly and creates an action that can - create the list of actions which will modify the instance. - - The target assembly. - The list of actions which will modify the list of actions that will be executed against the instance. - - - - Determines if an instance can be loaded. - - The target assembly. - Returns true if the assembly is not null. - - - - Generates a list of actions from a target assemby. - - The target assembly. - The list that will store the resulting actions. - - - - Generates the list of - instances which will be used to configure a target instance. - - The instance that holds the configuration information. - The list that will hold the actions which will configure the container. - - - - The instance that will - determine which types will be extracted from an assembly. - - - - - Represents a class that loads assemblies into memory - from disk. - - - - - Loads the target assembly into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Represents a class that loads assemblies into memory - from disk. - - - - - Loads the target assembly into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Represents a specific - type that can load configuration information from an assembly - and apply it to a instance. - - The target type to configure. - - - - The instance that will load - the target assemblies. - - - - - The list of ActionLoaders that will be used to - configure the target. - - - - - Represents a loader class that takes - instances as input and generates - instances that can be used to configure a - instance. - - The target type to configure. - - - - Initializes the class with the default property values. - - - - - Determines whether or not the current type loader - instance can load the current file type. - - - This class only loads assemblies with the ".dll" extension. - - The filename and full path of the target file. - Returns true if the file can be loaded; otherwise, the result is false. - - - - Reads an input file using the given - and converts it into a set of - instances that can be applied to a target class instance.. - - This class can only load valid .NET Assemblies. - The target file to be loaded. - A set of instances to apply to a target type. - - - - The instance that will load - the target assemblies. - - - - - Gets or sets the value indicating the action loader - responsible for reading an assembly and converts it to - a list of actions to be performed against the target type. - - - - - The list of ActionLoaders that will be used to - configure the target. - - - - - Implements the basic functionality of a plugin loader. - - The target type being configured. - The attribute type that will be used to mark a type as a plugin. - - - - Determines if the plugin loader can load the . - - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Generates a set of instances - using the given . - - The input that will be used to configure the target. - A set of instances. This cannot be null. - - - - Adds additional support methods to the standard System.Collection classes. - - - - - Determines whether or not an element exists that matches the given - . - - The element type. - The list of items being searched. - The predicate that will be used to describe the matching items. - Returns true if at least one match is found; otherwise, it will return false. - - - - Loads a list of types that match the given target type. - - The target type to be loaded. - The list that will hold the instances of the target type. - The directory that will be used to scan for assemblies that contain the target type. - The wildcard pattern that describes the files to be loaded. - - - - Represents a class that can list the files - in a given directory. - - - - - Returns the names of the files in the specified directory - that match the specified search pattern. - - The directory to search. - The search string to match against the names of the files in the . - The list of files that match the and - - - - A class that lists the contents of a given directory. - - - - - Returns a list of files that match the - from the given directory . - - The target directory to search. - The search string to match against the names of the files in the . - The list of files that match the and - - - - Represents classes that need to be initialized - every time a particular - instance creates that type. - - - - - Initializes the target with the - particular instance. - - The instance that will hold the target type. - - - - Represents a generic interface for an abstract loader - that can read configuration information from disk - and apply it to a instance. - - The class type being configured. - - - - Loads the configuration using the files listed in - the target that match - the given file pattern. - - The full path of the location to scan. - The wildcard file pattern string to use when specifying the target files. - - - - Configures the instance - using the configuration currently loaded from disk. - - The instance to be configured. - - - - Clears the currently loaded configuration - and resets the loader back to its defaults. - - - - - The list of - instances that will be used to - signal the beginning and end of the - load sequence. - - - - - The list of - instances responsible for configuring the instance. - - - - - Gets or sets the instance - responsible for returning a list of filenames - to the loader for processing. - - - - - The custom list of actions that will be - performed prior to the beginning of a load operation. - - - - - The list of actions that will execute - every time a target instance is configured. - - - - - Represents a component that can monitor - a target instance as it loads. - - The target instance type. - - - - Signals the beginning of a load. - - The target being loaded. - - - - Signals the end of a load. - - The target being loaded. - - - - Represents a type that can extract - objects from an instance. - - - - - Returns a set of types from a given assembly. - - The that contains the target types. - An of types from the target assembly. - - - - Represents an action loader that can load collections from types embedded within a given assembly. - - The collection item type. - - - - Creates the list of actions that load the target collection into memory. - - The source type. - A list of actions that load the target collection into memory. - - - - Determines whether or not the given type can be loaded into memory. - - The source type. - Returns true if the type can be loaded into memory; otherwise, it will return false. - - - - Represents a generic loader class that can - load multiple delegates from multiple files and - apply them to a particular instance. - - - - - - - Initializes the target with the default settings. - - - - - Loads the container with the files listed in - the target that match - the given file pattern. - - The full path of the location to scan. - The wildcard file pattern string to use when specifying the target files. - - - - Loads the current configuration into the - instance. - - - - - - - Determines whether or not a specific plugin should be loaded. - - The target plugin to be loaded. - - true if the plugin should be loaded; otherwise, it will return false. - - - - Clears the currently loaded configuration - and resets the loader back to its defaults. - - - - - Loads the current file - using the list of associated . - - The full path and filename being loaded. - - - - The list of actions that will execute - every time a target instance is configured. - - - - - The custom list of actions that will be - performed prior to the beginning of the first load operation. - - - These actions will be performed only once per reset. - - - - - The list of - instances that will be used to - signal the beginning and end of the - load sequence. - - - - - The list of - instances responsible for configuring the target instance. - - - - - Gets or sets the instance - responsible for returning a list of filenames - to the loader for processing. - - - - - Marks a class as a loader plugin type. - - - - - Represents a loader class that can load - instances - marked with a particular - type. - - The target type being configured. - The attribute type that marks a type as a plugin type. - - - - Determines if the plugin loader can load the . - - The target type must implement before it can be loaded. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of actions from a - instance. - - The target type to scan. - A set of actions which will be applied to the target instance. - - - - A class that implements the basic functionality of - a loader plugin. - - The type being loaded. - - - - Signals the beginning of a load. - - The target being loaded. - - - - Signals the end of a load. - - The target being loaded. - - - - A plugin class that provides the basic implementation - for plugins that work with instances. - - The target type being configured. - - - - Searches the loader for an - instance and uses its derived classes to initialize - the assembly target loader. - - The instance that will hold the plugin. - - - - Initializes the instance - with the given instance. - - The loader being configured. - The assembly loader that will load the types into the loader itself. - - - - Adds helper methods that return information about the current - runtime. - - - - - Gets a value indicating if the application is - currently running on the Mono platform. - - - - - Represents a type that can extract - objects from an instance. - - - - - Returns a set of types from a given assembly. - - The that contains the target types. - An of types from the target assembly. - - - - A class that adds extension methods to the - class. - - - - - Converts an - into a running . - - The to convert. - An that represents the instance. - - - - - Saves the assembly to disk. - - The target assembly definition. - The output file name. - - - - Saves the assembly to disk. - - The target assembly definition. - The destination file stream. - - - - A class that extends the class - with helper methods that make it easier to save - information about the method currently being implemented. - - - - - Emits a Console.WriteLine call to using the current CilWorker that will only be called if the contents - of the target variable are null at runtime. - - The target CilWorker. - The text that will be written to the console. - The target variable that will be checked for null at runtime. - - - - Emits a Console.WriteLine call using the current CilWorker. - - The target CilWorker. - The text that will be written to the console. - - - - Pushes the current onto the stack. - - The that will be used to create the instructions. - The method that represents the that will be pushed onto the stack. - The module that contains the host method. - - - - Gets the declaring type for the target method. - - The target method. - The declaring type. - - - - Pushes a instance onto the stack. - - The that will be used to create the instructions. - The type that represents the that will be pushed onto the stack. - The module that contains the host method. - - - - Pushes the current onto the stack. - - The that will be used to create the instructions. - The field that represents the that will be pushed onto the stack. - The module that contains the target field. - - - - Pushes the arguments of a method onto the stack. - - The that will be used to create the instructions. - The module that contains the host method. - The target method. - The local variable that will hold the array of arguments. - - - - Pushes the stack trace of the currently executing method onto the stack. - - The that will be used to create the instructions. - The module that contains the host method. - - - - Saves the generic type arguments that were used to construct the method. - - The that will be used to create the instructions. - The target method whose generic type arguments (if any) will be saved into the local variable. - The module that contains the host method. - The local variable that will store the resulting array of objects. - - - - Saves the current method signature of a method into an array - of objects. This can be used to determine the - signature of methods with generic type parameters or methods that have - parameters that are generic parameters specified by the type itself. - - The that will be used to create the instructions. - The target method whose generic type arguments (if any) will be saved into the local variable . - The module that contains the host method. - The local variable that will store the current method signature. - - - - Converts the return value of a method into the target type. - If the target type is void, then the value will simply be popped from the stack. - - The that will be used to create the instructions. - The module that contains the host method. - The method return type itself. - - - - Emits the proper Stind (store indirect) IL instruction for the . - - The target that will emit the IL. - The type of data being stored. - - - - Stores the current parameter value - into the array of method . - - The that will be used to create the instructions. - The local variable that will store the method arguments. - The array index that indicates where the parameter value will be stored in the array of arguments. - The current argument value being stored. - - - - Obtains the method definition that contains the current . - - The responsible for the method body. - A method definition. - - - - Obtains the module that contains the current . - - The responsible for the method body. - The host module. - - - - Obtains the declaring type for a given type reference. - - The declaring ty pe. - The actual declaring type. - - - - Represents a type that can construct - types. - - - - - Constructs a using - the given instance. - - The module that will hold the actual type. - The type being constructed. - - - - A class that extends the - class with features similar to the features in the - System.Reflection.Emit namespace. - - - - - Returns the instance - associated with the body of the target method. - - The target method to be modified. - The instance that points to the instructions of the method body. - - - - Adds a local variable - instance to the target method definition. - - The instance which will contain the local variable. - The object type that describes the type of objects that will be stored by the local variable. - A that represents the local variable itself. - - - - Adds a named local variable - instance to the target method definition. - - The instance which will contain the local variable. - The name of the local variable. - The object type that describes the type of objects that will be stored by the local variable. - - - - - - Adds a set of parameter types to the target . - - The target method. - The list of types that describe the method signature. - - - - Assigns the for the target method. - - The target method. - The instance that describes the return type. - - - - Adds a generic parameter type to the . - - The target method. - The parameter type. - A that represents the generic parameter type. - - - - Adds a local variable - instance to the target method definition. - - The object type that describes the type of objects that will be stored by the local variable. - The instance which will contain the local variable. - A that represents the local variable itself. - - - - Adds a named local variable - instance to the target method definition. - - The object type that describes the type of objects that will be stored by the local variable. - The instance which will contain the local variable. - The name of the local variable. - A that represents the local variable itself. - - - - A class that provides helper extension methods - for the class. - - - - - Defines a new class and adds it to the module. - - The module which will hold the new created type. - The name of the class to create. - The namespace that will contain the new class. - The for the given type. - The base class of the new type. - A representing the new class being created. - - - - Imports a constructor with the given - into the target . - - The type that holds the target constructor - The that will import the target constructor. - The list of objects that describe the signature of the constructor. - A that represents the constructor itself. - - - - Imports a method with a particular from the - into the target module. - - The instance that will import the actual method. - The name of the method being imported. - The instance that holds the target method. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The instance that will import the actual method. - The name of the method being imported. - The instance that holds the target method. - The that describes the visibility and behavior of the target method. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The target type that holds the target method. - The instance that will import the actual method. - The name of the method being imported. - A that represents the method being imported. - - - - Imports a method with a particular , , and from the - into the target module. - - The target type that holds the target method. - The list of objects that describe the method signature. - The instance that will import the actual method. - The name of the method being imported. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The target type that holds the target method itself. - The instance that will import the actual method. - The name of the method being imported. - The that describes the visibility and behavior of the target method. - A that represents the method being imported. - - - - Imports a target of type into the - instance. - - The type that will be imported into the instance itself. - The module that will store the imported type. - A instance that represents the imported type. - - - - Imports a target type into the - instance. - - The type that will be imported into the instance itself. - The module that will store the imported type. - A instance that represents the imported type. - - - - Returns a that matches the given . - - The target module to search. - The name of the target type. - A type that matches the given type name. If the type cannot be found, then this method will return null. - - - - A class that extends the class - to emulate features found in the System.Reflection.Emit namespace. - - - - - Determines whether or not a parameter is passed by reference. - - - - - - - - - A class that extends the - class with features similar to the features in the - System.Reflection.Emit namespace. - - - - - Adds a new method to the target type. - - The type that will hold the newly-created method. - The parameter that describes the characteristics of the method. - The name to be given to the new method. - The method return type. - The calling convention of the method being created. - The list of argument types that will be used to define the method signature. - A instance that represents the newly-created method. - - - - Adds a new method to the target type. - - The type that will hold the newly-created method. - The parameter that describes the characteristics of the method. - The name to be given to the new method. - The method return type. - The list of argument types that will be used to define the method signature. - The list of generic argument types that will be used to define the method signature. - A instance that represents the newly-created method. - - - - Adds a default constructor to the target type. - - The type that will contain the default constructor. - The default constructor. - - - - Adds a default constructor to the target type. - - The base class that contains the default constructor that will be used for constructor chaining.. - The type that will contain the default constructor. - The default constructor. - - - - Adds a rewritable property to the target type. - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - - - - Adds a rewritable property to the target type. - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - - - - Adds a rewriteable property to the target type - using an existing and . - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - The property getter method. - The property setter method. - - - - Retrieves the method that matches the given . - - The target type to search. - The name of the target method. - A method that matches the given . If the method is not found, then it will return a null value. - - - - Resolves the backing field for a generic type declaration. - - The name of the field to reference. - The type that holds the actual field. - The that describes the property type being referenced. - A that points to the actual backing field. - - - - Creates a property getter method implementation with the - as the return type. - - Represents the return type for the getter method. - The getter method name. - The method attributes associated with the getter method. - The field that will store the instance that the getter method will retrieve. - A representing the getter method itself. - - - - Creates a property setter method implementation with the - as the setter parameter. - - Represents the parameter type for the setter method. - The method attributes associated with the setter method. - The field that will store the instance for the setter method. - The method name of the setter method. - The that represents . - A that represents the setter method itself. - - - \ No newline at end of file diff --git a/packages/NMock3.3.5.44/lib/net40/NMock3.dll b/packages/NMock3.3.5.44/lib/net40/NMock3.dll deleted file mode 100644 index 29ef5c8c..00000000 Binary files a/packages/NMock3.3.5.44/lib/net40/NMock3.dll and /dev/null differ diff --git a/packages/NMock3.3.5.44/lib/net40/NMock3.xml b/packages/NMock3.3.5.44/lib/net40/NMock3.xml deleted file mode 100644 index 16687a8d..00000000 --- a/packages/NMock3.3.5.44/lib/net40/NMock3.xml +++ /dev/null @@ -1,17648 +0,0 @@ - - - - NMock3 - - - - - Defines that an should be signaled. - - - - - Signals an to synchronizes threads. - - The signal to set. - Action that signals an . - - - - This interface is used to get a description of the implementator. - - - - - Describes this object. - - The text writer the description is added to. - - - - Represents the invocation of a method on an object (receiver). - - - - - Holds the exception to be thrown. When this field has been set, will become true. - - - - - Holds the result of the invocation. - - - - - Initializes a new instance of the class. - - The receiver providing the method. - The method. - The parameters passed to the method.. - - - - Invokes this invocation on the specified receiver and stores the result and exception - returns/thrown by the invocation. - - The receiver. - - - - Checks the returnType of the initialized method if it is valid to be mocked. - - The return value to be checked. - - - - Determines whether the initialized method is a property. - - - Returns true if initialized method is a property; false otherwise. - - - - - Determines whether the initialized method is an index getter. - - - Returns true if initialized method is an index getter; false otherwise. - - - - - Determines whether the initialized method is an index setter. - - - Returns true if initialized method is an index setter; false otherwise. - - - - - Describes the property with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the method with parameters to the specified . - - The writer where the description is written to. - - - - Writes the generic parameters of the method to the specified . - - The writer where the description is written to. - - - - Writes the parameter list to the specified . - - The writer where the description is written to. - The count of parameters to describe. - - - - Describes the event adder to the specified . - - The writer where the description is written to. - - - - Describes the event remover to the specified . - - The writer where the description is written to. - - - - Holds the receiver providing the method. - - - - - Returns the Receiver as an - - - - Gets the that was passed into the constructor of this - - - - Holds the method that is being invoked. - - - - - Gets the name of method or property specified by the - - - - Gets a string that represents the signature of the - - - - Gets a string that represents the signature of the property setter - - - - - Gets the return type of the method specified by the - - - - Gets the parameters of the method specified by the - - - - Gets the arguments passed into the constructor of this - - - - Holds the parameterlist of the invocation. - - - - - Gets or sets the result of the invocation. - - The result. - - - - Stores the value being assigned in a setter. - - - Used internally to store a setter value to return in an automatic getter. - - - - - Gets or sets the exception that is thrown on the invocation. - - The exception. - - - - Gets a value indicating whether an exception is thrown an this invocation. - - - true if this invocation is throwing an exception; otherwise, false. - - - - - Determines whether the initialized method is an event adder. - - - Returns true if initialized method is an event adder; false otherwise. - - - - - Determines whether the initialized method is an event remover. - - - Returns true if initialized method is an event remover; false otherwise. - - - - - Gets a value indicating if this is an event - - - - - Gets a value indicating if this is a property - - - - - Gets a value indicating if this is a property setter - - - - - Gets a value indicating if this is a property getter - - - - - Gets a value indicating if this is a method. - - - - - A matcher is used to match objects against it. - - - - - Initializes an instance of the class with an empty - - - - Initialized an instance of the class with the description argument. - - The value used when calling the method. - - - - Describes this matcher. - - The text writer the description is added to. - - - - Logical and of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Logical or of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Negation of a matcher. - - Matcher to negate. - Negation of the specified matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - A default description used when calling - - - - Matcher that negates another matcher. - - - - - Holds the matcher to negate. - - - - - Initializes a new instance of the class. - - The matcher to negate. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object does not matche the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - The definition of a mock object. - - - Implementations of this interface encapsulate the details of - how a mock object is defined, and provide the ability to be able to - instantiate an instance of it. - - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Syntax describing the initial characteristics of a new mock object. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - Allows a mock object to be incrementally defined, and then finally created. - - - - - A single empty array instance that is used as a default value - for constructor arguments. - - - - - The types that the mock object needs to implement. - - - - - Constructor arguments for any class type that this mock might subclass. - If not subclassing, or if using a default constructor, then this should - be an empty array. - - - - - The MockStyle for the mock. If not specified, this will ultimately be - assumed to be MockStyle.Default. - - - - - The name of the mock object. Null is a valid value. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Checks that interfaces do not contain ToString method declarations. - - The types that are to be mocked. - - - - Syntax for adding an explanation for the expectation. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Base class for Invoker classes that raise events. - - - - - Constructor - - - - - - - - - Holds a reference to the delegate that will be invoked. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Hooks up with the action that will be taken once a handler is added to the event. - - The action to hook the incoming handler to the event. - - - - Raises the event that created the expectations. - - Arguments for the event. - - - - An action defines something that has to be done. - For example the action to return a result value. - - - - - Invokes this object. - - The invocation. - - - - Can mock invoke any event it is feed with. - - - Code by Magnus MÃ¥rtensson - http://blog.noop.se/archive/2007/08/17.aspx - - - - - - - - - - - Invoke the event and send in parameter. - - The sender of the event. - The arguments of the call. - - - - EventInvoker is used to invoke events that definded by the . - - - An EventInvoker is created as a result of a call to the method. - - - - - Invokes the referenced event - - - - - Syntax defining a value. - - - - - Defines a value. - - The value matcher. - Match syntax defining the behavior of the value. - - - - Action that executes the delegate passed to the constructor to get argments of executed method. - - - - - constustor of GetArgumentsAction - - delegate used to get argments of executed method - - - - Action that returns the n-th element of the arguments to an invocation. - - - - - Stores the index of the argument. - - - - - Stores the parameter when this action gets invoked. - - - - - Initializes a new instance of the class. - - Index of the argument to collect. - - - - Gets the collected parameter. - - The collected parameter (n-th parameter of parameter list of the method's call. - - - - Matcher that checks whether the actual object has a property with the specified name - and its value matches the specified matcher. - - - - - Initializes a new instance of the class. - - Name of the property. - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object has a property with the expected name and expected value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a single object is in a collection of elements. - - - - - Initializes a new instance of the class. - - The collection to match against. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether to object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Represents an expectation. - - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Matcheses the ignoring is active. - - The invocation. - - - - - - Performs the specified invocation. - - The invocation. - A value indicating if the was successfully performed. - - - - Describes the active expectations to. - - The writer. - - - - Describes the unmet expectations to. - - The writer. - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of expectation validation errors - - - - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Gets a value indicating that the expectation is valid. - - - - - Gets or sets the that contains this - - - - Represents an ExpectationList - - - - - Adds an expectation. - - The expectation to add. - - - - Removes the specified expectation. - - The expectation to remove. - - - - Determines if the is in an ordered list. - - The to look for. - - - - - - Gets the root for the - - - - The nesting level of this - - - - Stores the calling depth for the document writer output. - - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Gets or sets the expectation list that contains this ordering - - - - - Gets the root for the - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Initializes a new instance of the class. - - The parent of this - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Gets the current expectation. - - The current expectation. - - - - Gets a value indicating whether this instance has next expectation. - - - true if this instance has next expectation; otherwise, false. - - - - - Gets the next expectation. - - The next expectation. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - A matcher that stores a list of delegates to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a list of references to the callbacks assigned during the matching operation of the expectation. - - - - - Holds the instance to the . - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - Syntax for defining actions. - - - - - Creates the expectation of what to do when this member is called. - - Common s can be found in the and classes. - Returns the comment syntax defined after will. - - For void methods this action does not need to be used. - For non-void methods this action is typically set to use the class. - For all methods this action can be used to throw an exception using the class. - - - - - Syntax defining matching criterias. - - - - - Defines a matching criteria. - - The matcher. - Action syntax defining the action to take. - - - - Matches 2 objects using IComparable - - - - - - - - - - - Compares 2 objects using IComparable - - - - - - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - Matcher that matches method out parameters. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object mached is an out parameter. - - - - Describes this object. - - The text writer the description is added to. - - - - Stores the out parameter. - - - - - Stores the valuematchers given at initialization. - - - - - Creates an instance of the class. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Adds a matcher to the arguments matcher - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Returns the last argument matcher. - - Argument matcher - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - The number of value matchers - - - - - Gets a value matcher by index - - The index of the item to return - A value matcher - - - - Extends the interface to include the method. - - - - - This is the strongly-typed version of the method. Use this method when - the value to return is this value (and not a matcher). - - - - - - - This version of the "Will" methods is used in place of .Will(Return.Value(obj)) when obj is known - and should be checked at compile time. The benefit is that the method takes a strongly-typed argument. The - drawback is that you can't specify a matcher. - - - - - This interface provides the syntax used for "Method" methods on the - interface that don't return void and don't use argument values explicitly. - - The return type of the method. - - This interface provides the syntax needed to specify method arguments or match - method arguments. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Action syntax defining the action to take. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - IInvokable objects can be invoked. - - - - - Invokes this object. - - The invocation. - - - - Interface for mocks. - - - - - Retrieves all matching methods on this mock. - - A Matcher to use in identifying the methods. - A list of zero or more matching MethodInfo instances. - - - - Adds an expectation to this mock. - - The expectation to add. - - - - Raises an event on this mock. - - Name of the event to fire. - The arguments passed to the event. - - - - - - - - - - Gets the name of the mock instance. This is often used in error messages - to identify a specific mock instance. - - - - - Gets a that represents all types to be mocked. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - A that stores property values from internal operations. - - - - - - - - - Results that have been explicitly assigned via a call to a property setter. - These will be returned for all subsequent calls to the matching property getter. - - - - - Stores the event handlers that could be added to the mock object. - - - - - Results that have been generated for methods or property getters. - These will be returned for all subsequent calls to the same member. - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Gets the default result for an invocation. - - The invocation. - The default value to return as result of the invocation. - if no default value was provided. - - - - Gets the name of the member to be used as the name for a mock returned an a call to a stub. - - The invocation. - Name of the mock created as a result value on a call to a stub. - - - - Gets the mock style of this mock. - - - - - - - - - Invokes the delegate with the specified parameters. - - - - - - Implementations of this interface are responsible for generating runtime - proxies of classes and interfaces for use as mock objects. - - - Returned instances are expected to implement IMockObject and take care of - intercepting calls to their public members. Intercepted calls should be - forwarded on to the supplied MockFactory for processing against expectations. - - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - A base implementation of the interface - - - - - Combines the specified types with the into an array. - - An array of the specified types and , - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - A factory based on LinFu that creates proxy objects - - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - Action that sets the parameter of the invocation with the specified name to the specified value. - - - - - Stores the name of the parameter when the class gets initialized. - - - - - Stores the value of the parameter when the class gets initialized. - - - - - Initializes a new instance of the class. - - The name of the parameter to set. - The value. - - - - Action that sets a parameter (method argument) of the invocation to the specified value. - - - - - Stores the index of the paremter to set. - - - - - Stores the value of the parameter to set. - - - - - Initializes a new instance of the class. - - The index of the parameter to set. - The value. - - - - Represents an that returns a result. - - - - - The return type of this - - - - Action that set the result value of an invocation to a clone of the specified prototype. - - - - - Stores the prototype that will be cloned. - - - - - Initializes a new instance of the class. - - The prototype. - - - - Action that sets the result value on an invocation. The value is aquired by calling the delegate specified in the constructor. - - - - - Delegate that is used to get the return value. - - - Returns an object... - - - - - Stores the evaluate delegate for this action. - - - - - Initializes a new instance of the class. - - The delegate used to aquire the return value. - - - - Syntax defining a method, property or event (de)registration. - - - - - Sets up an expectation that a protected method will be called. - - The name of the method. - - Argument syntax defining the arguments of the method. - - - - - This class represents a stub. - - - - - - - A syntax property used to stub out data for this instance. - - - - - Matcher that checks whether the actual value contains the expected substring. - - - - - Initializes a new instance of the class. - - The substring that is expected. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is a string and contains the expected substring. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether the expected and actual value are equal. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Matcheses the specified actual. - - The actual value. - Whether the expected value is equal to the actual value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - - - - - - - - - - - - - Action that returns an item from the queue - - - - - Initializes a new instance of the class with the queue of values. - - - - - - - Represents an that can call a delegate to provide the return value. - - The type to return. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Matcher that checks whether to actual value is equal to null. - - - - - Initializes an instance of the class with a description of null. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is equal to null. - - - - Used to describe Matchers and other classes for exception handling. - - - - - Writes the text representation of an object to the text stream by calling ToString on that object. - - The object to write. - - The is closed. - - - An I/O error occurs. - - - - - Formats the given depending on null and the type of the value. - - The value to format. - Returns the formatted string. - - - - Replaces backslashes with three escaped backslashes. - - The string to replace backslashes. - Returns the escaped string. - - - - Used as a base for interface mocks in order to provide a holder - for a meaningful ToString() value. - - - - - Default constructor used by Castle.DynamicProxy. - - Do not remove. This is needed by Castle. - - - - Initializes a new instance of the class. - - The name of this instance. - - - - Returns the name of this instance. - - The name of this instance. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - true if the specified is equal to the current ; otherwise, false. - - - - Serves as a hash function for a particular type. - - A hash code for the current System.Object. - - - - Action that fires an event. - - - - - Stores the event arguments. - - - - - Stores the name of the event to fire. - - - - - Initializes a new instance of the class. - - Name of the event. - The event args. - - - - Specifies how a mock object should behave when it is first created. - - - - - Calls to members that do not have expectations set will - result in ExpectationExceptions. - - - - - Calls to members that do not have expectations set will - pass through to the underlying implementation on the class - being mocked. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Matcher that checks whether the actual object can be assigned to the expected type. - - - - - Initializes a new instance of the class. - - The expected type. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object castable to the expected type. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher for indexer getters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - This interface adds a special method for property expectations. - - - - - - - Sets up an expectation that calls an action to return the value of the property - that was previously set in code or prior expectation. - - - - - It is useful in cases where a value is assigned to a property internally in a method - and only a could be used to match the assignment. This method - is called on a getter expectation to get that underlying value. - - - - - Used to set up expectations on types that are not mocks. - - - - - Creates an expectation related to the type of thrown. - - The method that should cause the exception. Hint: use () => to convert a method to an action. - An object to complete the expectation - Use this in place of a [ExpectedException] unit test attribute. - - - - Default expectation, specifies that a method, property, etc. that has to be called at least once. - - The receiver. - Returns a receiver of a method, property, etc. that has to be called at least once. - - - - An that can invoke an when the expectation is met. - - - - - Creates an that will invoke the . - - The action to invoke. - - - - This interface ties together the and - interfaces to provide syntax on . - - The property type of the lambda expression. - - This interface doesn't provide any new members. It is used to tie together two existing - interfaces so that the - method will return the right syntax. - - - - - Matcher that checks whether the actual value in string representation (actual.ToString()) - matches with the wrapped matcher. - - - - - Holds the wrapped matcher. - - - - - Initializes a new instance of the class. - - The wrapped matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object in string representation (o.ToString()) matches the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a value matches the check provided as a delegate. - the expectation. - - The type of the expected value. - - - - The test that is performed to check if the matches the expectation. - - The actually received value. - True then value matches the expectation. - - - - The test that is performed to see if the value matches the expectation. - - - - - Initializes a new instance of the class. - - The test that is performed to check if the value matches expectation. - - matchExpression is null. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - A syntax class to create an in a easy to read way. - - - - - A syntax method to create an class. - - The to invoke when the in invoked. - An instance of an class. - - - - Provides shortcuts to matchers. - - - - - Returns a matcher for testing string representation of objects. - - The wrapped matcher. - Returns a for testing string representation of objects. - - - - Returns a matcher for checking property values. - - Name of the property. - The value matcher. - Returns a for checking property values. - - - - Returns a matcher for checking field values. - - Name of the field. - The value matcher. - Returns a for checking field values. - - - - A matcher that uses lambda expressions to perform matching - - - - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - A message to describe the expectation. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Manages a list of parameters for a mocked method together with the parameter's values. - - - - - Holds a boolean for each value if it was set or not. - - - - - Holds the method to be mocked. - - - - - An array holding the values of the parameters. - - - - - Initializes a new instance of the class. - - The method to be mocked. - The values of the parameters. - - - - Determines whether the value specified by index was set. - - The index. - - Returns true if value specified by index was set; otherwise, false. - - - - - Marks all values as set. - - - - - Determines whether the parameter specified by index can be set. - - The index of the parameter. - - Returns true if the parameter specified by index can be set; otherwise, false. - - - - - Gets the parameter name by index. - - The index of the parameter name to get. - - Returns the parameter name with the given index. - - - - - Gets the number of values. - - The number of values. - - - - Gets the values as array. - - Values as array. - - - - Gets or sets the with the specified index. - - The index of the value to be get or set. - - The value of a parameter specified by its . - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Initializes a new instance of the class. - - The parent of this instance. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Performs the specified invocation on the corresponding expectation if a match was found. - - The invocation to match. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Represents one or more types that are to be mocked. Provides operations - that work over top of all the contained types, as well as a means of - grouping and identifying unique combinations of types. - - Duplicate types are ignored when added. Only interface and class types are - supported, and there may only be a maximum of one class type per CompositeType instance. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The types to include in the CompositeType. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The first type to include in the CompositeType. This cannot be null. - Zero or more further types to include in the CompositeType. - This constructor is mostly included for convenience. - - - - Adds a to this instance - - - - - - - Determines whether the specified CompositeType is equal to the current CompositeType. - - The CompositeType to compare with the current CompositeType. - true if the specified CompositeType is equal to the current CompositeType; otherwise, false. - - - - Gets any methods of the contained type(s) that match the specified matcher. - - The matcher. - if set to true then only the first match is returned. - The methods of the contained type(s) that match the specified matcher. - Only non-private methods can be matched. - - - - Returns the hash code for this instance. - - An Int32 containing the hash code for this instance. - - - - Determines whether the specified Object is equal to the current CompositeType. - - The Object to compare with the current CompositeType. - true if the specified Object is equal to the current CompositeType; otherwise, false. - - - - Returns a String that represents the current CompositeType. - - A String that represents the current CompositeType. - - - - Initializes the specified types. - - The types. - - - - Gets the interfaces implemented by the specified type. - - The interface type to inspect. - The interfaces implemented by the specified type. - - - - Filters out private methods. - - The method to test for visibility. - True if the method is not private, otherwise false. - - - - Gets the 'primary' type we are mocking. This may be a class or an interface - and will determine the proxy generation method that will be used. - - - - - Gets any additional types to be mocked. These will always be interfaces. - - - - - Gets all types of this instance. - - - - - Initializes a new instance of the class. - - The expectation description. - The required count matcher. - The matching count matcher. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Adds itself to the if the matches - the specified . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of validation errors - - - - - - - Matcher that checks whether the actual object is a and its name is equal to the expected name. - - - - - Initializes a new instance of the class. - - The expected name of the method. - - - - Initializes a new instance of the class with a method name and declaring type - - - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Matcher that checks whether the actual object is a and its signature matches the expected signature. - - - - - Initializes a new instance of the class. - - The expected method reference. - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Syntax methods that are used specifically for stubbing. - - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are ignored, use the result of this - method to specify the expected arguments. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will not use the parameters supplied to the method call. - Parameters must be supplied in order for the code to compile. Use the or - methods - as part of the return type of this method. As an alternative, use the method which - will use the parameters supplied to the method as part of the expectation. - - - The method should not be used from this method. This method - is used for return types, therefore a return expectation is not needed. - - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.Method(m=>m.MethodName("IgnoredParam")).With("RealParam"); - - - - - Creates an expectation that this method will be called. The arguments are ignored, use the - result of this method to specify the expected arguments. - - A method call expression that specifies the expected method. - An object used to specify expected arguments or return value. - - - mock.Expects.One.Method(m=>m.MethodName("", 3)).Will(Return.Value(true)); - mock.Expects.One.Method(m=>m.MethodName()).WillReturn(7); - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will use the parameters supplied to the method call. - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.MethodWith(m=>m.MethodName("RealParam")); - - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An object used to specify the return value of the method. - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - The value to be returned when the method is called. - An object used to specify the explanation for the expectation. - Compare this method to other versions of this overloaded method in the See Also section. - - - - Creates an expectation that this property will be accessed. - - The property data type. - The expression to extract the property name. - An that can be used to set the return value. - - - - Creates an expectation that this property will be accessed and it should return the specified value. - - The property data type. - A lambda expression to extract the property name. - The value to be returned when the property is accessed. - An object to add comments about this expectation. - - Use this method as a shorthand to . - It sacrifices syntactic sugar but reduces the number of characters to type. - - - - - Creates an expectation that a will be bound to an event. The type of binding will be infered from the use of += or -=. - - - - - - - If a binding expectation uses null, any arguments will be allowed. - If a binding references a specific , the expectation will expect that delegate. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - - - - Use to bind to is used. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - The type of event args for the - - - - - - Tracks the expectations created by its s and s. - - - The MockFactory is a main component of the NMock3 API. It is used to create - instances and instances of a or . - - - - - A popper pops an expectation ordering from the expectations stack on disposal. - - - - - Initializes a new instance of the class. - - The mockFactory. - The previous. - - - - Pops the expectation ordering from the stack. - - - - - The mock object factory that is being used by this MockFactory instance. - - - - - Holds all mapping from mocks/types to mock styles. - - - - - The delegate used to resolve the default type returned as return value in calls to mocks with stub behavior. - - - - - If an unexpected invocation exception is thrown then it is stored here to re-throw it in the - method - exception cannot be swallowed by tested code. - - - - - A field to store s if and Expectation is incomplete - - - - - Expectations at current nesting level. - - - - - Creates a default . - - - Default classes do not ignore unexpected incovations. - - - - - Creates a with all of the default values. - - The type of mock to create. - - - - - - Creates a with the specified name. - - The type of mock to create. - - - - - - - - Creates a with the specified . - - The type of mock to create. - - - - - - - - Creates a with the specified and additional types. - - The type of mock to create. - - - - - - - - - - Creates a with the specified name and . - - The type of mock to create. - - - - - - - - - - Creates a of the primary type and the specified additional types - - The type of mock to create. - - - - - - - - Creates a with the specified constructor arguments. - - The type of mock to create. - - - - - - - - Creates a instance. Use the class as a parameter. - - The type of mock to create. - - - - - - This method gives the developer the most control when creating the mock because they can - specify all parts of the mock definition. - - - - - Creates a using the specified arguments. - - The type of mock to create. - - - - - - - - - - - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - An to create the mock from. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - The name of the mock. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Gets a disposable object and tells the mockFactory that the following expectations are ordered, i.e. they have to be met in the specified order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the ordered expectation mode is set back to the mode it was previously - to call to . - - - - Gets a disposable object and tells the mockFactory that the following expectations are unordered, i.e. they can be met in any order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the unordered expectation mode is set back to the mode it was previously - to the call to . - - - - Disposes the mockFactory be verifying that all expectations were met. - - - - - Suppresses when the factory would throw an exception on unmet or unexpected expectations until the next time - VerifyAllExpectationsHaveBeenMet() is called. - - - - - Allows the default to be replaced with a different implementation. - - The System.Type of the implementation to use. - This is expected to implement and have a default constructor. - - - - Changes the current MockObjectFactory to a user defined one. - - The new factory - - - - Creates a new named dynamic mock of the specified type and allows the style - of the mock to be specified. - - The type to mock. - A name for the mock that will be used in error messages. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A named mock. - - - - Verifies that all expectations have been met. - Will be called in , too. - - A value indicating if exceptions that have already been thrown should be thrown again. - - - - Verifies that all expectations have been met. - Will be called in , too. - - - - - Sets the resolve type handler used to override default values returned by stubs. - - The resolve type handler. - - - - Sets the mock style used for all properties and methods returning a value of any type of the . - Can be overridden with a type specific mock style with . - - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The type of the stub. - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The mock (with mock style Stub). - Type of the nested mock. - The nested mock style. - - - - Clears all expectation on the specified mock. - - The mock for which all expectations are cleared. - - - - Adds the expectation. - - The expectation. - - - - Resolves the return value to be used in a call to a mock with stub behavior. - - The mock on which the call is made. - The type of the return value. - The object to be returned as return value; or - if the default value should be used. - - - - Gets the mock style to be used for a mock created for a return value of a call to mock with stub behavior. - - The mock that wants to create a mock. - The type of the requested mock. - The mock style to use on the created mock. Null if has to be used. - - - - Dispatches the specified invocation. - - The invocation. - - - - Determines whether there exist expectations for the specified invocation. - - The invocation. - - true if there exist expectations for the specified invocation; otherwise, false. - - - - - Casts the argument to . - - The object to cast. - The argument casted to - Thrown if is null - Thrown if is not a - - - - Resets the state of the factory. - - - Use this method after expected exceptions. - - - - - Clears thrown unexpected exceptions so that a new exception will be thrown. - - - - - Pushes the specified new ordering on the expectations stack. - - The new ordering. - Disposable popper. - - - - Pops the specified old ordering from the expectations stack. - - The old ordering. - - - - Throws an exception listing all unmet expectations. - - - - - Throws an exception indicating that the specified invocation is not expected. - - The invocation. - - - - Delegate used to override default type returned in stub behavior. - - The mock that has to return a value. - Type of the return value. - The object to return as return value for the requested type. - - - - Matcher for indexer setters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - BinaryOperator is an abstract base class for matchers that combine two matchers into a single matcher. - - - - - The left hand side of the binary operator. - - - - - The right hand side of the binary operator. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - This class contains extension methods to support other classes. - - - - - Returns a string representing grammatically correctness of n times depending on the value of . - - An integer value representing n times. - The string ' time' or ' times'. - - - - Returns the default name for a type that is used to name mocks. - - The type to get the default name for. - Default name for the specified type. - - - - Finds the first lower case char in the specified string. - - The string to inspect. - the first lower case char in the specified string. - - - - Contains the methods that define the expectation for either a property, method, or event. - - The interface or class being mocked. - - This interface defines generic methods that take lambda expressions. - - - - - Creates an expectation that this property will be set to a value specified in the - result of this method. The value used in the expression - is ignored. - - - - A set property expression that specifies the property to be set. - - If the property specified in the expression has a getter, a value isn't required in the expression. - - mock.Expects.One.SetProperty(p => p.Prop) - - instead of - - mock.Expects.One.SetProperty(p => p.Prop = "Ignored Value") - - The code above only needs to be used in cases where the property is write-only. - - - - - - - Creates an expectation that this property will be set to the specified value. - - z => z.prop = 0 - An object to specify the comment for the expectation. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - This class represents a mock object of an interface or class. To create a , - use a . - - The type to mock. - - - - public class TestClass - { - public void TestMethod() - { - MockFactory factory = new MockFactory(); - Mock<ISample> mock = factory.CreateMock<ISample>(); - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - new Driver(mock.MockObject).Drive(3); - } - } - - public interface ISample - { - int Prop {get; set;} - } - - public class Driver - { - public Driver(ISample sample) - { - Sample = sample; - } - public int Sample {get;set;} - public void Drive(int value) - { - Sample.Prop = value; - } - } - - - - - - - - - - - - - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - This method will not throw an exception if the cast is not successful. It will return null. Use to specify if an exception should be thrown. - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - - - - - Use this method to specify if an exception should be thrown when a cast is not valid. - - - - Overriden ToString method that throws an exception when called so that the deloper does not - confuse this ToString with the ToString of the property. - - The name of the - - - - - Clears all expectations of this mock. - - - Use this method to clear expectations in a test before the test cleanup runs - to avoid unmet expectations. It is useful when testing error conditions. - - - - - An object of type to be used whenever the Mocked object is needed. - - - This property provides access to the proxy that is mocking the actual type. Use this property - when a reference to an object that is of the mocked type is needed. - - - This example shows how a presenter needs arguments of the right type during construction. The - MockObject property is used because the presenter can't be instantiated with a - argument. - - interface IView { ... } - interface IModel { ... } - - Mock<IView> view = factory.CreateMock<IView>(); - Mock<IModel> view = factory.CreateMock<IModel>(); - - Presenter p = new Presenter(view.MockObject, model.MockObject); - - - - - A syntax property used to access members that specify the number of times an expectation could occur. - - This would be considered to be the main property of a class. This property - provides access to all other expectation setup methods. - - In this example: - mockis an instance of a .Expectsrefers to this property.Oneis the number of times this action is expected.SetPropertyTois the type of expection. means the mock expects a property to be set to a value.mis the variable in our anonymous method that represents the mocked interface or class.Propis the property on the mocked interface or class that the expectation is for. It will be set to the value 3. - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - - View more of this code in the example. - - - - - A syntax property that returns a class to stub out a member on the Mock. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - Gets or sets a value indicating if an exception should be thrown when the is called. - - - - - Returns the name of the underlying proxy - - - - - Used by NMock framework to make sure two lists are equal. - - - - - Constructor - - The list containing the expected results. - - - - Called by NMock to verify o corresponds to the source list. - - List to compare against the source list for equality. - True: the two lists have the same number of items and their items are equal. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that is the logical and combination of two matchers. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - A matcher that stores a delegate to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a reference to the callback assigned during the matching operation of the expectation. - - - - - Action that calls the collect delegate passed to constructor with the n-th element of the arguments to an invocation. - - Type of the argument to collect. - - - - Delegate that is called on collecting an argument. - - The collected generic parameter. - - - - Stores the index of the argument. - - - - - Stores the collect delegate. - - - - - Initializes a new instance of the class. - - Index of the argument. - The collect delegate. - - - - Defines action for throwing actions. - - - - - Throws an exeception when the action is invoked. - - The exception to throw when invoked. - Returns a new instance of the class. - - - - Provides shortcuts to s. - - - - - Matches anything. - - - - - Matches nothing. - - - - - Matches if the value is null. - - - - - Matches if the value is not null. - - - - - Matches out parameters of methods. - - - - - Matches objects the are equal to the expected object. - - The expected. - Returns a new instance of the class. - - - - Matches an expected object. - - The expected object. - Returns a new instance of the class. - - - - Matches objects that implement the interface. - - The instance to be compared. - Returns a new instance of the class. - - - - Matches strings containing the specified . - - The substring. - Returns a new instance of the class. - - - - Matches objects that are greater than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are at least equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects less than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are less or equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects in the specified collection. - - The collection with objects to match. - Returns a new instance of the class. - - - - Matches objects in the specified elements. - - The elements to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - - Returns a new instance of the class. - - - - - Matches objects against the specified expression. - - Type of the value to match. - The match expression. - returns a new instance of the . - - - - Syntax for defining expected arguments of a method call. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - The specified arguments are converted to s. Matchers - as well as non-Matchers can be used interchangably in the method. - - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that any arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Matcher syntax. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - Initializes a new instance of the class. - - The builder. - - - - A flag that specifies if the expectation was set up using 'MethodWith' in which case an ExpectationException is not thrown - when the method takes no arguments. - - - - - Initializes a new instance of the class. - - The description. - The required count matcher. - The matching count matcher. - - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines a matching criteria. - - The matcher. - - Action syntax defining the action to take. - - - - - Defines what will happen. - - The actions to take. - - Returns the comment syntax defined after will. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Methods the specified method name. - - Name of the method. - - - - - - Defines a method. - - Matcher for matching the method on an invocation. - - Argument syntax defining the arguments of the method. - - - - - Gets the property. - - Name of the property. - - - - - - Sets the property. - - Name of the property. - - - - - - Defines the receiver. - - The dynamic mock on which the expectation or stub is applied. - Method syntax defining the method, property or event. - - - - Converts the object array into a List of matchers. - - The expected arguments. - - - - - - Ensures the matching method exists on mock. - - The method matcher. - The method description. - - - - Defines the initial characteristics of a new mock object. - This is normally used in conjunction with - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - - The name for the mock. - The mock object definition. - - - - Returns a default implementation of . - - - - - Gather information about invocations. - - - - - Calls the specified with the method argument at index . - Can only be used as action of an expectation on a method call. - - The type of the argument. - Index of the argument. - The collect delegate. - Action that collects a method argument. - - - - Calls the specified with the value that is set to the property. - Can only be used as action of an expectation on a property setter. - - The type of the value. - The collect delegate. - Action that collects a property value. - - - - Wraps any object in a DynamicObject, but in a strongly-typed way. - It also logs usage of the object to standard output. - - Running: - dynamic item = new Dynamic<String>("Jabberwocky"); - item = new Dynamic<AppDomain>(AppDomain.CurrentDomain); - item.SetData("Foo", "Bar"); - item.GetData("Foo"); - item.Foo = "Bar"; - var bar = item.Foo; - - Outputs: - Dynamic's Inherited Properties: - Chars - Length - - Dynamic's Inherited Properties: - DomainManager - CurrentDomain - Evidence - FriendlyName - BaseDirectory - RelativeSearchPath - ShadowCopyFiles - ActivationContext - ApplicationIdentity - ApplicationTrust - DynamicDirectory - SetupInformation - PermissionSet - IsFullyTrusted - IsHomogenous - Id - MonitoringIsEnabled - MonitoringTotalProcessorTime - MonitoringTotalAllocatedMemorySize - MonitoringSurvivedMemorySize - MonitoringSurvivedProcessMemorySize - - Results: - Invoking instance.SetData() returned '(null)' - - Results: - Invoking instance.GetData() returned 'Bar' - - Results: - Setting instance.Foo = Bar - - Results: - Getting instance.Foo returned 'Bar' - - - - - - Our instance constructor. - - The object we are wrapping. - - - - Action that executes the delegate passed to the constructor. - - - - - Delegate that is executed on invocation of the action. - - - - - Stores the handler of the delegate action. - - - - - Initializes a new instance of the class. - - The action handler. - - - - A syntax class to setup expectations on methods when they throw exceptions. - - - - - Creates an instance of this class specifying the action that will throw an exception - - - - - - - Indicates that this method will throw an . - - - - - Indicates that this method will throw an . - - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - The type of to throw. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - Class that creates mocks for interfaces and classes (virtual members only) using the - Castle proxy generator. - - - - - A collection of types - - - - - Initializes a new instance of a - - - - Initializes a new instance of a - A value indicating if the ProxyBuilder should be persistent - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - Matcher that checks whether the specified field of the actual object matches with the specified matcher. - - - - - Name of the field to match against the . - - - - - The value used to match the field of the object under investigation. - - - - - Initializes a new instance of the class. - - Name of the field to match against the . - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks a value against upper and lower bounds. - - - - - Stores the maximum comparison result for a successful match. - - - - - Stores the minimum comparison result for a successful match. - - - - - Stores the value to be compared. - - - - - Initializes a new instance of the class. - - The value to compare. - The first allowed comparison result (result of value.CompareTo(other)). - The second allowed comparison result (result of value.CompareTo(other)). - Thrown when one value is -1 and the other is 1. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object compared to the value resulted in either of both specified comparison results. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Extends by adding other syntax methods. - - - - - Creates an expectation that this property can be set to any value. - - - - - - - Creates an expectation that the property will be set to this value. - - - - - - - - - This syntax class contains properties that control - the number of expectations added for the referenced . - - The class or interface that is being mocked. - - is the return type of the main property used on a instance. You - access it by typing mockObject.Expects.The class provides access to - all other methods that help create expectations. - - - - Initializes a new instance of the class with the specified type as the template. - - - - - - - Creates an expectation for at least count number of calls for the referenced member. - - The minimum number of calls expect - An to reference the expected call. - - - - Creates an expectation for at most count number of calls for the referenced member. - - The maximum number of calls expect - An to reference the expected call. - - - - Creates an expectation for a range from minCount to maxCount number of calls for the referenced member. - - The minimum number of expected calls. - The maximum number of expected calls. - An to reference the expected call. - - - - Creates an expectation for exactly count number of calls for the referenced member. - - The exact number of calls expect - An to reference the expected call. - - - - Creates an expectation for at least one call of the referenced member. - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Specifies that there should be no calls to the referenced member. - - - - - Creates an expectation for one call of the referenced member. - - - - - Action that sets the result value on an invocation. - - - - - Stores the result to set on the invocation as the return value. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Invokes this object. Sets the result value of the invocation. - - The invocation. - - - - Describes this object. - - The text writer the description is added to. - - - - Gets the type of the template parameter . - - - - - Action that sets the result value on an invocation. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Verify that a condition is met. - - - - - Verifies that the is matched by the . - - The actual value to match. - The matcher. - The error message. - The format args for the error message. - Thrown if value does not match. - - - - Verifies that the is matched by the . - - The actual value. - The matcher. - Thrown if value does not match. - - - - Writes the description of a failed match to the specified . - - The where the description is written to. - The actual value to be written. - The matcher which is used for the expected value to be written. - - - - Provides shortcuts to s that return values - - - - - Returns the specified value as an object. - - The value to return. - An action that returns the specified value. - - - - Returns the specified value as a strongly-typed value. - - The value to return. - An action that returns the specified value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Specifies a queue of return values to be used for each call to the expectation. - - The type that needs to be returned. - The of items to be returned. - An action that will return one value each time the expectation is met. - - - - Returns a clone as method return value. - - The prototype to clone. - Action defining the return value of a method. - - - - Defines the value returned by an out parameter. - - Name of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - Defines the value returned by an out parameter. - - Index of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - short cut to initialize GetArgumentAction - - - - - Create a GetArgumentAction to get arments of invoked method - - delegate used to get argments of executed method - - - - - - Matcher that combines two matcher with a logically or. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches one of the two combined matchers. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - An ordered list of type 's each matching a single method argument. - - - - - Initializes a new instance of the class and specifies no generic types. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Initializes a new instance of the class and specifies the types to match. - - The types to match. (Typically a result of the method. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - Determines whether the arguments of the invocation matches the initial arguments. - - The invocation to match against the initial arguments. - - Returns true if invocation matches the initial arguments; false otherwise. - - - - - Determines whether all argument types of the generic method matches the invocation. - - The invocation to match against the initial argument types. - - Returns true if invocation types matches the inital argument types; false otherwise. - - - - - Matcher that is used to change the description the wrapped matcher. - - - - - Initializes a new instance of the class. - - The new description for the wrapped matcher. - The matcher to wrap. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the wrapped matcher matches. - - - - Stores the matcher to wrap. - - - - - A matcher that will always or never match independent of the value matched but depending on how it is initialized. - - - - - Initializes a new instance of the class. - - if set to true the matcher will always match, otherwise it will never match. - The description which will be printed out when calling . - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Responsible for handling the results of an invocation. - - - - - Stores the default results. - - - - - Stores the results. - - - - - Sets the result of the specified . - - The type to be returned as a result. - The result to be set. - - - - Gets a new the empty array of the specified . - - Type of the array to be returned. - - Returns a new empty array of the specified . - - - - - Action that sets the exception of an invocation. - - - - - Stores the exception to be thrown. - - - - - Initializes a new instance of the class. - - The exception. - - - - Provides functionality to map stubs and specific types of a stub to mock styles. - - - - - Key into the dictionary. - - - - - Initializes a new instance of the class. - - The mock object. - Type of the nested mock. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Gets the mock. - - The mock object. - - - - Gets the type of the nested mock. - - The type of the nested mock. - - - - holds mappings from stub to mock style (holds for all types unless there is a mapping defined in . - - - - - holds mappings from stub.type to mock style. - - - - - Gets or sets the mock style for the specified mock. - - the mock object - mock style. null if no value defined. - - - - Gets or sets the mock style for the specified mock and type. - - the mock object - the type of the nested mock. - mock style. null if no value defined. - - - - Exception representing an expectation exception. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Creates and returns a string representation of the current exception. - - - A string representation of the current exception. - - - - - Represents an unexpected action during the course of exercising a unit test - - - - - Constructs a with the given parameters. - - The MockFactory that threw this exception - The unexpected invocation - The expectations collection to describe - A message to help the user understand what was unexpected - - - - Gets the exception's message - - - - - Represents an expectation that was not met after has been called - - - - - Initializes the exception with a message - - - - - - - Wraps an exception and provides a message - - - - - - - - - Represents an expectation that was not completely filled out - - - - - Initializes an exception with a message - - - - - - - Represents a delegate in an expectation that can be matched - - - - - Initializes an instance of this class with a to match. - - - - - - - Determines if this delegate matches the specified parameter - - The delegate to match - true if the delegates match, false if the object is null or does not match - - - - Defines public constants - - - - - A string that represents the name and Public Key of the NMock assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - A string that represents the name and Public Key of the DynamicProxyGenAssembly assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - The NMock Public Key string. - - - This string is used internally to reference the public key. - - - - - Action that signals an event. - You can use this action to synchronize threads when an expectation is invoked. - - - - - Stores the wait handle to be signalled. - - - - - Initializes a new instance of the class. - - The signal. - - - - Gets the signal. - You can use this signal to wait for this action beeing invoked. - - The signal. - - - - General purpose class to represent a standard pair of values. - - Type of the first value - Type of the second value - - - - Constructs a pair with its values - - - - - - - - - Manages the instantiation of s. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - NullLogFactory used when logging is turned off. - - - - - Creates an instance of ILogger with the specified name. - - Name. - - - - - - Creates an instance of ILogger with the specified name and LoggerLevel. - - Name. - Level. - - - - - - Get the proxy target (note that null is a valid target!) - - - - - - - Gets the interceptors for the proxy - - - - - - - Abstracts the implementation of proxy type construction. - - - - - Creates a proxy type for given , implementing , using provided. - - The class type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified class and interfaces. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type that proxies calls to members on , implementing , using provided. - - The interface type to proxy. - Additional interface types to proxy. - Type implementing on which calls to the interface members should be intercepted. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface that 'proceeds' executions to the specified target. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface(s) that delegate all executions to the specified interceptors - and uses an instance of the interface as their targets (i.e. ), rather than a class. All classes should then implement interface, - to allow interceptors to switch invocation target with instance of another type implementing called interface. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given that delegates all calls to the provided interceptors. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface and additional interfaces that delegate all executions to the specified interceptors. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Gets or sets the that this logs to. - - - - - Gets the associated with this builder. - - The module scope associated with this builder. - - - - Contract for dynamic value resolution. - - - - - Contract for typed dynamic value resolution. - - - - - - - Helper class for retrieving attributes. - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Gets the attributes. Does not consider inherited attributes! - - The member. - The member attributes. - - - - Gets the type attribute. - - The type. - The type attribute. - - - - Gets the type attributes. - - The type. - The type attributes. - - - - Gets the type converter. - - The member. - - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Defines the contract for customizing dictionary access. - - - - - Copies the dictionary behavior. - - null if should not be copied. Otherwise copy. - - - - Determines relative order to apply related behaviors. - - - - - Defines the contract for building typed dictionary keys. - - - - - Builds the specified key. - - The dictionary adapter. - The current key. - The property. - The updated key - - - - Contract for editing the Dictionary adapter. - - - - - Contract for managing Dictionary adapter notifications. - - - - - Contract for validating Dictionary adapter. - - - - - Contract for creating additional Dictionary adapters. - - - - - Contract for manipulating the Dictionary adapter. - - - - - Assigns a property to a group. - - - - - Constructs a group assignment. - - The group name. - - - - Constructs a group assignment. - - The group name. - - - - Gets the group the property is assigned to. - - - - - Assigns a specific dictionary key. - - - - - Contract for dictionary meta-data initialization. - - - - - Initializes the given object. - - The dictionary adapter factory. - The dictionary adapter meta. - - - - Determines whether the given behavior should be included in a new - object. - - A dictionary behavior or annotation. - True if the behavior should be included; otherwise, false. - - behaviors are always included, - regardless of the result of this method. - - - - - Represents a 'streamable' resource. Can - be a file, a resource in an assembly. - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - - - Returns an instance of - created according to the relativePath - using itself as the root. - - - - - - - - - - - Only valid for resources that - can be obtained through relative paths - - - - - - - - - This returns a new stream instance each time it is called. - It is the responsibility of the caller to dispose of this stream - - - - - Wraps a reference that is passed - ByRef and provides indirect load/store support. - - - - - Performs some basic screening and invokes the - to select methods. - - - - - - - - - - - - - Contract for dictionary validation. - - - - - Determines if is valid. - - The dictionary adapter. - true if valid. - - - - Validates the . - - The dictionary adapter. - The error summary information. - - - - Validates the for a property. - - The dictionary adapter. - The property to validate. - The property summary information. - - - - Invalidates any results cached by the validator. - - The dictionary adapter. - - - - Defines the contract for building typed dictionary adapters. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - The property descriptor. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the namedValues. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the namedValues. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the . - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the . - - The type represented by T must be an interface with properties. - - - - - Gets the associated with the type. - - The typed interface. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - The property descriptor. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - Another from which to copy behaviors. - The adapter meta-data. - - - - Defines the contract for retrieving dictionary values. - - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - Manages conversion between property values. - - - - - Initializes a new instance of the class. - - The converter. - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - - - - - Contract for property descriptor initialization. - - - - - Performs any initialization of the - The property descriptor. - The property behaviors. - - - - Suppress property change notifications. - - - - - Support for on-demand value resolution. - - - - - Initializes a new instance of the class. - - The hook. - - - - Initializes a new instance of the class. - - - - - Default implementation of interface producing in-memory proxy assemblies. - - - - - Initializes a new instance of the class with new . - - - - - Initializes a new instance of the class. - - The module scope for generated proxy types. - - - - ProxyBuilder that persists the generated type. - - - The saved assembly contains just the last generated type. - - - - - Initializes a new instance of the class. - - - - - Saves the generated assembly to a physical file. Note that this renders the unusable. - - The path of the generated assembly file, or null if no assembly has been generated. - - This method does not support saving multiple files. If both a signed and an unsigned module have been generated, use the - respective methods of the . - - - - - Interface describing elements composing generated type - - - - - Base class that exposes the common functionalities - to proxy generation. - - - - - It is safe to add mapping (no mapping for the interface exists) - - - - - - - - - - - Generates a parameters constructor that initializes the proxy - state with just to make it non-null. - - This constructor is important to allow proxies to be XML serializable - - - - - Substitutes part of key with another string. - - - - - Initializes a new instance of the class. - - The old value. - The new value. - - - - Abstract adapter for the support - needed by the - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - An element with the same key already exists in the object. - key is null. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - key is null. - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - The object is read-only.-or- The has a fixed size. - key is null. - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - The type of the source cannot be cast automatically to the type of the destination array. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - - - - Gets a value indicating whether the object has a fixed size. - - - - true if the object has a fixed size; otherwise, false. - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - Gets or sets the with the specified key. - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Adapts a static string content as an - - - - Depicts the contract for resource factories. - - - - - Used to check whether the resource factory - is able to deal with the given resource - identifier. - - - Implementors should return true - only if the given identifier is supported - by the resource factory - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - - - Provides a factory that can produce either or - classes. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Encapsulates an invocation of a proxied method. - - - - - Gets the value of the argument at the specified . - - The index. - The value of the argument at the specified . - - - - Returns the concrete instantiation of the on the proxy, with any generic - parameters bound to real types. - - - The concrete instantiation of the on the proxy, or the if - not a generic method. - - - Can be slower than calling . - - - - - Returns the concrete instantiation of , with any - generic parameters bound to real types. - For interface proxies, this will point to the on the target class. - - The concrete instantiation of , or - if not a generic method. - - In debug builds this can be slower than calling . - - - - - Proceeds the call to the next interceptor in line, and ultimately to the target method. - - - Since interface proxies without a target don't have the target implementation to proceed to, - it is important, that the last interceptor does not call this method, otherwise a - will be thrown. - - - - - Overrides the value of an argument at the given with the - new provided. - - - This method accepts an , however the value provided must be compatible - with the type of the argument defined on the method, otherwise an exception will be thrown. - - The index of the argument to override. - The new value for the argument. - - - - Gets the arguments that the has been invoked with. - - The arguments the method was invoked with. - - - - Gets the generic arguments of the method. - - The generic arguments, or null if not a generic method. - - - - Gets the object on which the invocation is performed. This is different from proxy object - because most of the time this will be the proxy target object. - - - The invocation target. - - - - Gets the representing the method being invoked on the proxy. - - The representing the method being invoked. - - - - For interface proxies, this will point to the on the target class. - - The method invocation target. - - - - Gets the proxy object on which the intercepted method is invoked. - - Proxy object on which the intercepted method is invoked. - - - - Gets or sets the return value of the method. - - The return value of the method. - - - - Gets the type of the target object for the intercepted method. - - The type of the target object. - - - - - - - - - - - - - - For interface proxies, this will point to the - on the target class - - - - - Initializes a new instance of the class. - - The name. - Type declaring the original event being overriten, or null. - - - The add method. - The remove method. - The attributes. - - - - Summary description for NewArrayExpression. - - - - - Contract for value matching. - - - - - Defines the contract for building s. - - - - - Builds the dictionary behaviors. - - - - - - - Indicates that underlying values are changeable and should not be cached. - - - - - Identifies an interface or property to be pre-fetched. - - - - - Instructs fetching to occur. - - - - - Instructs fetching according to - - - - - - Gets whether or not fetching should occur. - - - - - Contract for dictionary initialization. - - - - - Performs any initialization of the - The dictionary adapter. - The dictionary behaviors. - - - - Defines the contract for updating dictionary values. - - - - - Sets the stored dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if the property should be stored. - - - - Initializes a new instance of the class - that represents a child object in a larger object graph. - - - - - - - - - Provides a generic collection that supports data binding. - - - This class wraps the CLR - in order to implement the Castle-specific . - - The type of elements in the list. - - - - Initializes a new instance of the class - using default values. - - - - - Initializes a new instance of the class - with the specified list. - - - An of items - to be contained in the . - - - - - Initializes a new instance of the class - wrapping the specified instance. - - - A - to be wrapped by the . - - - - - Removes a property if matches value. - - - - - - - - - Deserializes the specified node into an abstract representation of configuration. - - The node. - - - - - - If a config value is an empty string we return null, this is to keep - backward compatibility with old code - - - - - Provides appropriate Ldind.X opcode for - the type of primitive value to be loaded indirectly. - - - - - Returns list of all unique interfaces implemented given types, including their base interfaces. - - - - - - - - - Used during the target type inspection process. Implementors have a chance to customize the - proxy generation process. - - - - - Invoked by the generation process to notify that the whole process has completed. - - - - - Invoked by the generation process to notify that a member was not marked as virtual. - - The type which declares the non-virtual member. - The non-virtual member. - - This method gives an opportunity to inspect any non-proxyable member of a type that has - been requested to be proxied, and if appropriate - throw an exception to notify the caller. - - - - - Invoked by the generation process to determine if the specified method should be proxied. - - The type which declares the given method. - The method to inspect. - True if the given method should be proxied; false otherwise. - - - - Assigns a prefix to the keyed properties of an interface. - - - Key prefixes are not inherited by sub-interfaces. - - - - - Initializes a default instance of the class. - - - - - Initializes a new instance of the class. - - The prefix for the keyed properties of the interface. - - - - Gets the prefix key added to the properties of the interface. - - - - - is a interface encapsulating a configuration node - used to retrieve configuration values. - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets the name of the node. - - - The Name of the node. - - - - - Gets the value of the node. - - - The Value of the node. - - - - - Gets an of - elements containing all node children. - - The Collection of child nodes. - - - - Gets an of the configuration attributes. - - - - - This is an abstract implementation - that deals with methods that can be abstracted away - from underlying implementations. - - - - AbstractConfiguration makes easier to implementers - to create a new version of - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets node attributes. - - - All attributes of the node. - - - - - Gets all child nodes. - - The of child nodes. - - - - Gets the name of the . - - - The Name of the . - - - - - Gets the value of . - - - The Value of the . - - - - - Summary description for MutableConfiguration. - - - - - Initializes a new instance of the class. - - The name. - - - - Gets the value of . - - - The Value of the . - - - - - Manages logging. - - - This is a facade for the different logging subsystems. - It offers a simplified interface that follows IOC patterns - and a simplified priority/level/severity abstraction. - - - - - Create a new child logger. - The name of the child logger is [current-loggers-name].[passed-in-name] - - The Subname of this logger. - The New ILogger instance. - If the name has an empty element name. - - - - Logs a debug message. - - The message to log - - - - Logs a debug message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs a info message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Determines if messages of priority "debug" will be logged. - - True if "debug" messages will be logged. - - - - Determines if messages of priority "error" will be logged. - - True if "error" messages will be logged. - - - - Determines if messages of priority "fatal" will be logged. - - True if "fatal" messages will be logged. - - - - Determines if messages of priority "info" will be logged. - - True if "info" messages will be logged. - - - - Determines if messages of priority "warn" will be logged. - - True if "warn" messages will be logged. - - - - Interface for Context Properties implementations - - - - This interface defines a basic property get set accessor. - - - Based on the ContextPropertiesBase of log4net, by Nicko Cadell. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Creates a new lock. - - - - - - - Conract for traversing a . - - - - - The Level Filtered Logger class. This is a base clase which - provides a LogLevel attribute and reroutes all functions into - one Log method. - - - - - Creates a new LevelFilteredLogger. - - - - - Keep the instance alive in a remoting scenario - - - - - - - Logs a debug message. - - The message to log - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Implementors output the log content by implementing this method only. - Note that exception can be null - - - - - - - - - - - - - The LoggerLevel that this logger - will be using. Defaults to LoggerLevel.Off - - - - The name that this logger will be using. - Defaults to String.Empty - - - - Determines if messages of priority "debug" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "info" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "warn" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "error" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "fatal" will be logged. - - - true if log level flags include the bit - - - - The TraceLogger sends all logging to the System.Diagnostics.TraceSource - built into the .net framework. - - - Logging can be configured in the system.diagnostics configuration - section. - - If logger doesn't find a source name with a full match it will - use source names which match the namespace partially. For example you can - configure from all castle components by adding a source name with the - name "Castle". - - If no portion of the namespace matches the source named "Default" will - be used. - - - - - Build a new trace logger based on the named TraceSource - - The name used to locate the best TraceSource. In most cases comes from the using type's fullname. - - - - Build a new trace logger based on the named TraceSource - - The name used to locate the best TraceSource. In most cases comes from the using type's fullname. - The default logging level at which this source should write messages. In almost all cases this - default value will be overridden in the config file. - - - - Create a new child logger. - The name of the child logger is [current-loggers-name].[passed-in-name] - - The Subname of this logger. - The New ILogger instance. - - - - Provides functionality for disassembling instances of attributes to CustomAttributeBuilder form, during the process of emiting new types by Dynamic Proxy. - - - - - Disassembles given attribute instance back to corresponding CustomAttributeBuilder. - - An instance of attribute to disassemble - - corresponding 1 to 1 to given attribute instance, or null reference. - - Implementers should return that corresponds to given attribute instance 1 to 1, - that is after calling specified constructor with specified arguments, and setting specified properties and fields with values specified - we should be able to get an attribute instance identical to the one passed in . Implementer can return null - if it wishes to opt out of replicating the attribute. Notice however, that for some cases, like attributes passed explicitly by the user - it is illegal to return null, and doing so will result in exception. - - - - - Because we need to cache the types based on the mixed in mixins, we do the following here: - - Get all the mixin interfaces - - Sort them by full name - - Return them by position - - The idea is to have reproducible behavior for the case that mixins are registered in different orders. - This method is here because it is required - - - - - Identifies a property should be represented as a delimited string value. - - - - - Gets the separator. - - - - - Identifies the dictionary adapter types. - - - - - Used to create the TraceLogger implementation of ILogger interface. See . - - - - - Holds objects representing methods of class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents the scope of uniquenes of names for types and their members - - - - - Gets a unique name based on - Name suggested by the caller - Unique name based on . - - Implementers should provide name as closely resembling as possible. - Generally if no collision occurs it is suggested to return suggested name, otherwise append sequential suffix. - Implementers must return deterministic names, that is when is called twice - with the same suggested name, the same returned name should be provided each time. Non-deterministic return - values, like appending random suffices will break serialization of proxies. - - - - - Returns new, disposable naming scope. It is responsibilty of the caller to make sure that no naming collision - with enclosing scope, or other subscopes is possible. - - New naming scope. - - - - Generates the constructor for the class that extends - - - - - - - - - - - Enable access to files on network shares - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - Provides an extension point that allows proxies to choose specific interceptors on - a per method basis. - - - - - Selects the interceptors that should intercept calls to the given . - - The type declaring the method to intercept. - The method that will be intercepted. - All interceptors registered with the proxy. - An array of interceptors to invoke upon calling the . - - This method is called only once per proxy instance, upon the first call to the - . Either an empty array or null are valid return values to indicate - that no interceptor should intercept calls to the method. Although it is not advised, it is - legal to return other implementations than these provided in - . - - - - - Handles the deserialization of proxies. - - - - - Resets the used for deserialization to a new scope. - - - This is useful for test cases. - - - - - Resets the used for deserialization to a given . - - The scope to be used for deserialization. - - By default, the deserialization process uses a different scope than the rest of the application, which can lead to multiple proxies - being generated for the same type. By explicitly setting the deserialization scope to the application's scope, this can be avoided. - - - - - Gets the used for deserialization. - - As has no way of automatically determining the scope used by the application (and the application might use more than one scope at the same time), uses a dedicated scope instance for deserializing proxy types. This instance can be reset and set to a specific value via and . - - - - Determines whether the specified method is internal. - - The method. - - true if the specified method is internal; otherwise, false. - - - - - Determines whether this assembly has internals visible to dynamic proxy. - - The assembly to inspect. - - - - Checks if the method is public or protected. - - - - - - - - - Provides appropriate Stind.X opcode - for the type of primitive value to be stored indirectly. - - - - - Emits a load indirect opcode of the appropriate type for a value or object reference. - Pops a pointer off the evaluation stack, dereferences it and loads - a value of the specified type. - - - - - - - - - Emits a load opcode of the appropriate kind for a constant string or - primitive value. - - - - - - - - - Emits a load opcode of the appropriate kind for the constant default value of a - type, such as 0 for value types and null for reference types. - - - - - Emits a store indirectopcode of the appropriate type for a value or object reference. - Pops a value of the specified type and a pointer off the evaluation stack, and - stores the value. - - - - - - - - - Registers custom disassembler to handle disassembly of specified type of attributes. - - Type of attributes to handle - Disassembler converting existing instances of Attributes to CustomAttributeBuilders - - When disassembling an attribute Dynamic Proxy will first check if an custom disassembler has been registered to handle attributes of that type, - and if none is found, it'll use the . - - - - - Attributes should be replicated if they are non-inheritable, - but there are some special cases where the attributes means - something to the CLR, where they should be skipped. - - - - - Supporting Logger levels. - - - - - Logging will be off - - - - - Fatal logging level - - - - - Error logging level - - - - - Warn logging level - - - - - Info logging level - - - - - Debug logging level - - - - - Describes a dictionary property. - - - - - Initializes an empty class. - - - - - Initializes a new instance of the class. - - The property. - The annotations. - - - - Initializes a new instance class. - - - - - Copies an existinginstance of the class. - - - - - - - - - Gets the key. - - The dictionary adapter. - The key. - The descriptor. - - - - - - Gets the property value. - - The dictionary adapter. - The key. - The stored value. - The descriptor. - true if return only existing. - - - - - - Sets the property value. - - The dictionary adapter. - The key. - The value. - The descriptor. - - - - - - Adds a single behavior. - - The behavior. - - - - Adds the behaviors. - - The behaviors. - - - - Adds the behaviors. - - The behaviors. - - - - Copies the behaviors to the other - - - - - - - - Copies the - - - - - - - - - - Gets the property name. - - - - - Gets the property type. - - - - - Gets the property. - - The property. - - - - Returns true if the property is dynamic. - - - - - Gets additional state. - - - - - Determines if property should be fetched. - - - - - Determines if property must exist first. - - - - - Determines if notifications should occur. - - - - - Gets the property behaviors. - - - - - Gets the type converter. - - The type converter. - - - - Gets the extended properties. - - - - - Gets the setter. - - The setter. - - - - Gets the key builders. - - The key builders. - - - - Gets the setter. - - The setter. - - - - Gets the getter. - - The getter. - - - - Gets the initializers. - - The initializers. - - - - Gets the meta-data initializers. - - The meta-data initializers. - - - - Converts all properties to strings. - - - - - Gets or sets the format. - - The format. - - - - Constant to use when making assembly internals visible to Castle.Core - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToCastleCore)] - - - - Constant to use when making assembly internals visible to proxy types generated by DynamicProxy. Required when proxying internal types. - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToDynamicProxyGenAssembly2)] - - - - Checks whether or not collection is null or empty. Assumes colleciton can be safely enumerated multiple times. - - - - - - - - - Provides an interface that supports and - allows the storage and retrieval of Contexts. These are supported in - both log4net and NLog. - - - - - Exposes the Global Context of the extended logger. - - - - - Exposes the Thread Context of the extended logger. - - - - - Exposes the Thread Stack of the extended logger. - - - - - Increments IServiceProvider with a generic service resolution operation. - - - - - Defines that the implementation wants a - in order to - access other components. The creator must be aware - that the component might (or might not) implement - the interface. - - - Used by Castle Project components to, for example, - gather logging factories - - - - - Initializes a new instance of the class. - - Target element. This is either target type or target method for invocation types. - The type of the proxy. This is base type for invocation types. - The interfaces. - The options. - - - - Initializes a new instance of the class. - - Type of the target. - The interfaces. - The options. - - - - Requests support for multi-level editing. - - - - - Suppresses any on-demand behaviors. - - - - - Specifies assignment by reference rather than by copying. - - - - - The Logger using standart Diagnostics namespace. - - - - - Creates a logger based on . - - - - - - - - Creates a logger based on . - - - - - - - - - - - Creates a logger based on . - - - - - - - - - - - - - - Creates outputing - to files. The name of the file is derived from the log name - plus the 'log' extension. - - - - - Holds objects representing methods of class. - - - - - Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue - where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded. - - - - - Summary description for PropertiesCollection. - - - - - Handles error during disassembly process - - Type of the attribute being disassembled - Exception thrown during the process - usually null, or (re)throws the exception - - - - Here we try to match a constructor argument to its value. - Since we can't get the values from the assembly, we use some heuristics to get it. - a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument - b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string). - - - - - We have the following rules here. - Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that - we can convert it. - - - - - Attributes can only accept simple types, so we return null for null, - if the value is passed as string we call to string (should help with converting), - otherwise, we use the value as is (enums, integer, etc). - - - - - Provides simple string formatting from existing properties. - - - - - Gets the string format. - - - - - Gets the format properties. - - - - - Assigns a specific dictionary key. - - - - - Initializes a new instance of the class. - - The key. - - - - Initializes a new instance of the class. - - The compound key. - - - - Removes a property if null or empty string, guid or collection. - - - - - The Logger sending everything to the standard output streams. - This is mainly for the cases when you have a utility that - does not have a logger to supply. - - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug and the Name - set to String.Empty. - - - - - Creates a new ConsoleLogger with the Name - set to String.Empty. - - The logs Level. - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug. - - The logs Name. - - - - Creates a new ConsoleLogger. - - The logs Name. - The logs Level. - - - - A Common method to log. - - The level of logging - The name of the logger - The Message - The Exception - - - - Returns a new ConsoleLogger with the name - added after this loggers name, with a dot in between. - - The added hierarchical name. - A new ConsoleLogger. - - - - Exposes means to change target objects of proxies and invocations - - - - - Changes the target object () of current . - - The new value of target of invocation. - - Although the method takes the actual instance must be of type assignable to , otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - Permanently changes the target object of the proxy. This does not affect target of the current invocation. - - The new value of target of the proxy. - - Although the method takes the actual instance must be of type assignable to proxy's target type, otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - This interface should be implemented by classes - that are available in a bigger context, exposing - the container to different areas in the same application. - - For example, in Web application, the (global) HttpApplication - subclasses should implement this interface to expose - the configured container - - - - - - - - - A collection of objects. - - - - - Creates a new instance of ConfigurationCollection. - - - - - Creates a new instance of ConfigurationCollection. - - - - - The Null Logger class. This is useful for implementations where you need - to provide a logger to a utility class, but do not want any output from it. - It also helps when you have a utility that does not have a logger to supply. - - - - - Returns this NullLogger. - - Ignored - This ILogger instance. - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - Returns empty context properties. - - - - - Returns empty context properties. - - - - - Returns empty context stacks. - - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - New interface that is going to be used by DynamicProxy 2 - - - - - Summary description for ModuleScope. - - - - - The default file name used when the assembly is saved using . - - - - - The default assembly (simple) name used for the assemblies generated by a instance. - - - - - Initializes a new instance of the class; assemblies created by this instance will not be saved. - - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - Naming scope used to provide unique names to generated types and their members (usually via sub-scopes). - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Returns a type from this scope's type cache, or null if the key cannot be found. - - The key to be looked up in the cache. - The type from this scope's type cache matching the key, or null if the key cannot be found - - - - Registers a type in this scope's type cache. - - The key to be associated with the type. - The type to be stored in the cache. - - - - Gets the key pair used to sign the strong-named assembly generated by this . - - - - - - - Gets the specified module generated by this scope, creating a new one if none has yet been generated. - - If set to true, a strong-named module is returned; otherwise, a weak-named module is returned. - A strong-named or weak-named module generated by this scope, as specified by the parameter. - - - - Gets the strong-named module generated by this scope, creating a new one if none has yet been generated. - - A strong-named module generated by this scope. - - - - Gets the weak-named module generated by this scope, creating a new one if none has yet been generated. - - A weak-named module generated by this scope. - - - - Saves the generated assembly with the name and directory information given when this instance was created (or with - the and current directory if none was given). - - - - This method stores the generated assembly in the directory passed as part of the module information specified when this instance was - constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly - have been generated, it will throw an exception; in this case, use the overload. - - - If this was created without indicating that the assembly should be saved, this method does nothing. - - - Both a strong-named and a weak-named assembly have been generated. - The path of the generated assembly file, or null if no file has been generated. - - - - Saves the specified generated assembly with the name and directory information given when this instance was created - (or with the and current directory if none was given). - - True if the generated assembly with a strong name should be saved (see ); - false if the generated assembly without a strong name should be saved (see . - - - This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was - constructed (if any, else the current directory is used). - - - If this was created without indicating that the assembly should be saved, this method does nothing. - - - No assembly has been generated that matches the parameter. - - The path of the generated assembly file, or null if no file has been generated. - - - - Loads the generated types from the given assembly into this 's cache. - - The assembly to load types from. This assembly must have been saved via or - , or it must have the manually applied. - - This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order - to avoid the performance hit associated with proxy generation. - - - - - Users of this should use this lock when accessing the cache. - - - - - Gets the strong-named module generated by this scope, or if none has yet been generated. - - The strong-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the strongly named module generated by this scope. - - The file name of the strongly named module generated by this scope. - - - - Gets the directory where the strongly named module generated by this scope will be saved, or if the current directory - is used. - - The directory where the strongly named module generated by this scope will be saved when is called - (if this scope was created to save modules). - - - - Gets the weak-named module generated by this scope, or if none has yet been generated. - - The weak-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the weakly named module generated by this scope. - - The file name of the weakly named module generated by this scope. - - - - Gets the directory where the weakly named module generated by this scope will be saved, or if the current directory - is used. - - The directory where the weakly named module generated by this scope will be saved when is called - (if this scope was created to save modules). - - - - Email sender abstraction. - - - - - Sends a mail message. - - From field - To field - E-mail's subject - message's body - - - - Sends a message. - - - Message instance - - - - Sends multiple messages. - - List of messages - - - - Default implementation. - - - - - Initializes a new instance of the class based on the configuration provided in the application configuration file. - - - This constructor is based on the default configuration in the application configuration file. - - - - - This service implementation - requires a host name in order to work - - The smtp server name - - - - Sends a message. - - If any of the parameters is null - From field - To field - e-mail's subject - message's body - - - - Sends a message. - - If the message is null - Message instance - - - - Configures the sender - with port information and eventual credential - informed - - Message instance - - - - Gets or sets the port used to - access the SMTP server - - - - - Gets the hostname. - - The hostname. - - - - Gets or sets a value which is used to - configure if emails are going to be sent asynchronously or not. - - - - - Gets or sets a value that specifies - the amount of time after which a synchronous Send call times out. - - - - - Gets or sets a value indicating whether the email should be sent using - a secure communication channel. - - - true if should use SSL; otherwise, false. - - - - Gets or sets the domain. - - The domain. - - - - Gets or sets the name of the user. - - The name of the user. - - - - Gets or sets the password. - - The password. - - - - Gets a value indicating whether credentials were informed. - - - if this instance has credentials; otherwise, . - - - - - - - - - Readonly implementation of which uses an anonymous object as its source. Uses names of properties as keys, and property values as... well - values. Keys are not case sensitive. - - - - - Initializes a new instance of the class. - - The target. - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - - is null. - An element with the same key already exists in the object. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - - is null. - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - - is null. - The object is read-only.-or- The has a fixed size. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Reads values of properties from and inserts them into using property names as keys. - - - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets or sets the with the specified key. - - - - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - - - - - Initializes a new instance of the class. - - The name values. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - key is null. - - - - Adapts the specified name values. - - The name values. - - - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets or sets the with the specified key. - - - - - - - Abstract implementation of . - - - - - List of utility methods related to dynamic proxy operations - - - - - Determines whether the specified type is a proxy generated by - DynamicProxy (1 or 2). - - The type. - - true if it is a proxy; otherwise, false. - - - - - The Stream Logger class. This class can stream log information - to any stream, it is suitable for storing a log file to disk, - or to a MemoryStream for testing your components. - - - This logger is not thread safe. - - - - - Creates a new StreamLogger with default encoding - and buffer size. Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - - - Creates a new StreamLogger with default buffer size. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - - - Creates a new StreamLogger. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - The buffer size that will be used for this stream. - - - - - Creates a new StreamLogger with - Debug as default Level. - - The name of the log. - The StreamWriter the log will write to. - - - - Provides proxy objects for classes and interfaces. - - - - - Initializes a new instance of the class. - - Proxy types builder. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - If true forces all types to be generated into an unsigned module. - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - Object proxying calls to members of on object. - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates the proxy type for class proxy with given class, implementing given and using provided . - - The base class for proxy type. - The interfaces that proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - Actual type that the proxy type will encompass. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target interface for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy without target for given interface, implementing given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Gets or sets the that this log to. - - - - - Gets the proxy builder instance used to generate proxy types. - - The proxy builder. - - - - s - Provides appropriate Ldc.X opcode for the type of primitive value to be loaded. - - - - - Applied to the assemblies saved by in order to persist the cache data included in the persisted assembly. - - - - - Assigns a prefix to the keyed properties using the interface name. - - - - - Identifies a property should be represented as a nested component. - - - - - Applies no prefix. - - - - - Gets or sets the prefix. - - The prefix. - - - - Uses Reflection.Emit to expose the properties of a dictionary - through a dynamic implementation of a typed interface. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generates a new GUID on demand. - - - - - Represents a type that can modify method bodies. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Represents a weaver class that can modify its host. - - The host that holds the item to be modified. - - - - Imports references into the target instance. - - The module that will hold the modified item. - - - - Adds additional members to the host type. - - The host that holds the current item being modified. - - - - Represents a type that can modify method bodies. - - - - - Adds local variables to the . - - The target method. - - - - Represents the basic implementation of a method rewriter class. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Determines whether or not the given method should be modified. - - The target method. - A indicating whether or not a method should be rewritten. - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Adds additional members to the host type. - - The host type. - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Represents a method rewriter that modifies a method body to support dynamic exception handling. - - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Rewrites the instructions in the target method body to support dynamic exception handling. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Saves the current instance. - - The target method. - The instance that will emit the current method context. - - - - Represents a type that is capable of manipulating instructions within a given method body. - - - - - Emits a set of instructions to the given CilWorker. - - The responsible for the target method body. - - - - Represents an instruction emitter that adds method body replacement support to a given method body. - - - - - Initializes a new instance of the class. - - The set of parameters that describe the target method body. - - - - Adds method body interception to the target method. - - The pointing to the target method body. - - - - Represents an instruction emitter that adds the original method instructions to a given method body. - - - - - Initializes a new instance of the class. - - The original method instructions. - The instruction label that marks the end of the method body. - - - - Adds the original instructions to a given method body. - - The responsible for the target method body. - - - - A class that extends instances. - - - - - Removes the strong-name signature from the . - - - - - - - A helper class that extends Cecil to support LinFu's weaver model. - - - - - Allows a instance to traverse any - instance. - - The visitable object. - The type weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The type weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The method weaver. - - - - Allows a instance to traverse any - instance. - - The visitable object. - The method weaver. - - - - Represents a type that emits the call to the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance. - The local vaiable that contains the return value of the target method. - - - - Emits the call to the instance. - - The that points to the current method body. - - - - Represents a type that emits the call to the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance-level instance. - The interception registry type that will be responsible for handling class-level interception events. - - - - Emits the call to the instance. - - The that points to the current method body. - - - - Represents a class that describes the context of a thrown exception. - - - - - Initializes a new instance of the class. - - The thrown exception. - The instance that describes the context of the method call. - - - - Gets the value indicating the thrown exception. - - The thrown exception. - - - - Gets the value indicating the instance that describes the context of the method - that threw the exception. - - The instance. - - - - Gets or sets the value indicating the return value that will be used in place of the original return value if - the exception is intercepted by an instance. - - The method return value. - - - - Gets or sets the value indicating whether or not the exception should be rethrown after - the handles the given exception. - - This should be true if the exception should be rethrown, otherwise, it must be false. - - - - Represents an extension class that adds support for intercepting exceptions thrown at runtime. - - - - - Enables exception interception on the given type. - - The target type. - - - - Enables exception interception on the given type. - - The target type. - - - - Enables exception interception on the given type. - - The target type. - The instance that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The instance that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The method filter functor that will determine which methods should support exception interception. - - - - Enables exception interception on the given type. - - The target type. - The method filter functor that will determine which methods should support exception interception. - - - - A factory instance that creates delegates - that emit the necessary information - and store it in a local variable named '__invocationInfo___'. - - - - - Generates the delegate that will emit - the necessary information. - - The instance that describes the requested service type. - A delegate that can emit the necessary context that will allow other developers to infer information about the method currently being executed. - - - - Represents a class that generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to every type in every module of an instance. - - - - - Generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to every type in every module of an instance. - - The that describes the service request. - An action delegate that will apply a specific method weaver to all the types in the given assembly. - - - - Represents a class that generates instances - that apply a specific method weaver (with the name given in the first delegate parameter) - to a specific instance. - - - - - Generates the instance that will - weave the target type. - - The that describes the service request. - The instance that will weave the target type. - - - - Represents a class that emits the instructions that obtain an instance-level instance. - - - - - Initializes a new instance of the class. - - The local variable that contains the instance. - The target method. - The functor that will resolve the GetProvider method. - - - - Emits the instructions that obtain the instance. - - The instance. - - - - Represents a class that emits the instructions that obtain the instance. - - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the instance. - The method that will obtain the instance. - - - - Emits the instructions that obtain the instance. - - The that points to the current method body. - - - - Represents a class that emits the instructions that obtain the current instance. - - - - - Initializes a new instance of the class. - - The variable that will hold the instance. - - - - - - - - - - Emits the instructions that obtain the current instance. - - - - - - - Represents a class that emits the call to obtain the instance. - - - - - Initializes a new instance of the class. - - The local variable that holds the instance. - The name of the property. - - - - Emits the call to obtain the instance. - - The pointing to the target method body. - - - - Represents a class that emits the instructions that determine whether or not method interception is disabled. - - - - - Initializes a new instance of the class. - - The instance. - - - - Initializes a new instance of the class. - - The target method. - The local variable that determines whether or not method interception is disabled. - - - - Emits the instructions that determine whether or not method interception is disabled. - - The instance responsible for adding or removing instructions to the method body. - - - - Represents a class that emits the instructions that obtain a class-level instance. - - - - - Initializes a new instance of the class. - - The method body rewriter paramters that describe the - The functor that resolves the method that obtains the method replacement provider instance. - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the class method replacement provider instance. - The functor that resolves the method that obtains the method replacement provider instance. - - - - Emits the instructions that obtain a class-level instance. - - The instance that points to the instructions in the method body. - - - - Represents an extension class that adds field interception support to a given type. - - - - - Adds field interception support to the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all instance fields on the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all static fields on the target type. - - The type that will be modified. - - - - Adds field interception support to the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all instance fields on the target type. - - The type that will be modified. - - - - Adds field interception support intercepting all static fields on the target type. - - The type that will be modified. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines which methods on the target type will be modified to support field interception. - The filter that determines which fields should be intercepted. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines the host types to be modified. - The field filter that determines the fields that will be intercepted. - - - - Adds field interception support to the target type. - - The type that will be modified. - The filter that determines which methods on the target type will be modified to support field interception. - The filter that determines which fields should be intercepted. - - - - Represents a type that determines whether or not a particular field get or set should be intercepted. - - - - - Determines whether or not a particular field get or set should be intercepted. - - The host method. - The target field. - Returns true if the field should be intercepted; otherwise, it will return false. - - - - Represents an adapter class that maps a functor to an instance. - - - - - Initializes a new instance of the class. - - The field filter. - - - - Determines whether or not a particular field get or set should be intercepted. - - The host method. - The target field. - Returns true if the field should be intercepted; otherwise, it will return false. - - - - Represents a class that keeps track of the internal object instances that should be ignored - by the interception routines. - - - - - Determines whether or not the registry contains the given ignored object. - - The target object. - Returns true if the object should be ignored; otherwise, it will return false. - - - - Adds an instance to the list of ignored instances. - - The target instance to be ignored by the interception routines. - - - - Represents a type that determines which host methods should be modified for method call interception. - - - - - Determines whether or not a particular method should be modified. - - The target method to be modified. - Returns true if the method should be modified; otherwise, it will return false. - - - - Represents a type that determines the method calls that need to be intercepted. - - - - - Determines whether or not a particular method call should be intercepted. - - The host type that contains the method call. - The method that contains the current method call. - The method call to be intercepted. - Returns true if the method call should be intercepted; otherwise, it will return false. - - - - Represents the parameters used to add interception to a given method body. - - - - - Gets the value indicating the TargetMethod to be modified. - - The method to be modified. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the class-level instance. - - The class-level instance. - - - - Gets the value indicating the local variable that will store the value that determines whether or not - interception is disabled. - - The value that determines whether or not interception is disabled. - - - - Gets the value indicating the local variable that will store the instance. - - The local variable that will store the instance. - - - - Gets the value indicating the local variable that will store the return value. - - The value indicating the local variable that will store the return value. - - - - Gets the value indicating the interception registry type that will be responsible for handling class-level interception events. - - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the functor that resolves the GetMethodReplacementProvider method. - - The functor that resolves the GetMethodReplacementProvider method. - - - - Gets the value indicating the list of old instructions in the current method body. - - The value indicating the list of old instructions in the current method body. - - - - Represents a type that determines the constructor calls that will be intercepted by the postweaver. - - - - - Determines whether or not a particular constructor call should be intercepted by the postweaver. - - The constructor used to instantiate the current instance. - The concrete type that contains the new instance call. - The host method that contains the new operator call. - Returns true if the new operator call should be intercepted; otherwise, it should return false. - - - - Represents a type that converts functors into method call filter instances. - - - - - Initializes a new instance of the class. - - The method filter that will determine the host methods that will be modified for interception. - The method filter that will determine which method calls will be intercepted. - - - - Determines whether or not a particular method call should be intercepted. - - The host type that contains the method call. - The method that contains the current method call. - The method call to be intercepted. - Returns true if the method call should be intercepted; otherwise, it will return false. - - - - Represents an adapter class that maps instances to - functors. - - - - - Initializes a new instance of the class. - - The filter that determines which instances will be intercepted. - - - - Determines whether or not a particular constructor call should be intercepted by the postweaver. - - The constructor used to instantiate the current instance. - The concrete type that contains the new instance call. - The host method that contains the new operator call. - Returns true if the new operator call should be intercepted; otherwise, it should return false. - - - - Represents a class that can weave (or modify) - a member embedded in an assembly. - - The type of object to modify. - The host that holds the item to be modified. - - - - Determines whether or not the current item should be modified. - - The target item. - Returns true if the current item can be modified; otherwise, it should return false. - - - - Modifies the target . - - The item to be modified. - - - - Represents a type that can modify an existing . - - - - - Represents a type weaver that modifies types to implement the interface. - - - - - Initializes a new instance of the ImplementFieldInterceptionHostWeaver class. - - The filter that determines which types should be modified. - - - - Determines whether or not a type should be modified. - - - - - true if the type should be modified; otherwise, it will return false. - - - - Modifies the target type. - - The type to be modified. - - - - Adds additional members to the target module. - - The host module. - - - - Imports references into the target module. - - The module containing the type to be modified. - - - - Represents a type that can provide the instructions for a given method. - - - - - Determines the instructions for a given method. - - The source method that contains the instructions. - The set of instructions for the given method. - - - - Represents the default implementation of the class. - - - - - Determines the instructions for a given method. - - The source method that contains the instructions. - The set of instructions for the given method. - - - - Provides the basic functionality for the interface. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Determines whether or not the method rewriter should replace the . - - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a new set of instructions.. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker for the target method body. - - - - Represents a method body rewriter that surrounds a method body with the necessary prolog and epilogs - that enable method body interception. - - - - - Initializes a new instance of the class. - - The emitter that will instantiate the instance. - The emitter that will determine whether or not method interception is enabled. - The instance that will add the epilogs and prologs to the method body. - The emitter that will obtain the method replacement provider instance. - The emitter that will obtain the class-level method replacement provider instance. - The instruction emitter that will add the call to obtain the method body replacement instance. - The parameters that describe the context of the method body rewrite. - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Represents a that intercepts calls to field getters and setters and redirects those calls to - a instance. - - - - - Initializes a new instance of the InterceptFieldAccess class. - - The filter that determines which fields should be intercepted. - - - - Initializes a new instance of the InterceptFieldAccess class. - - The filter that determines which fields should be intercepted. - - - - Adds locals to the target method. - - The method to be modified - - - - Adds references to the target module. - - The module that will be modified. - - - - Determines whether or not the method rewriter should replace the . - - The class only modifies instructions that get or set the value of static and instance fields. - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a set of new instructions. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker that will be used to emit the method body instructions. - - - - Represents a method rewriter type that adds interception capabilities to any given method body. - - - - - Initializes a new instance of the class. - - The method filter that will determine the methods with the method bodies that will be intercepted. - - - - Determines whether or not the given method should be modified. - - The target method. - A indicating whether or not a method should be rewritten. - - - - Rewrites the instructions in the target method body. - - The target method. - The instance that represents the method body. - The IL instructions of the original method body. - - - - Represents a class that adds a method - epilog and prolog to an existing method instance. - - - - - Determines whether or not the current item should be modified. - - The target item. - Returns true if the current item can be modified; otherwise, it should return false. - - - - Adds an prolog to the target method. - - The instruction that marks the start of the - The method body of the target method. - - - - Adds an epilog to the target method. - - The instruction that marks the end of the - The method body of the target method. - - - - Represents a class that emits - the IL to save information about - the method currently being executed. - - - - - Emits the IL to save information about - the method currently being executed. - - - The target method currently being executed. - The method that will be passed to the as the currently executing method. - The local variable that will store the resulting instance. - - - - Represents a type that can modify objects. - - - - - Represents a class that can modify existing instances. - - - - - Represents a type that can emit IL that instantiates an object - within a given method. - - - - - Adds local variables to the . - - The target method. - - - - Determines whether or not the object instantiation call to the - should be instrumented. - - The constructor that will be used to instantiate the target type. - The type to be created. - The method that contains the instantiation request. - - true if the call to the new operator should be intercepted; otherwise, it should return false. - - - - Emits the necessary necessary to instantiate - the . - - The method that contains the activation request. - The CilWorker that will be used to replace the existing instructions in the method body. - The constructor that is currently being used to instantiate the concrete type. - The that describes the object type that needs to be instantiated. - - - - Represents a type that can load PDB files from disk. - - - - - Loads an assembly into memory. - - The bytes that represent the target assembly. - The bytes that represent the PDB file. - A that represents the loaded assembly. - - - - Loads the debug symbols from the target . - - The assembly that contains the symbols to be loaded. - - - - Saves the debug symbols for the target. - - The assembly that contains the symbols to be saved. - - - - Represents the information associated with - a single method call. - - - - - Initializes the instance. - - The target instance currently being called. - The method currently being called. - The associated with the method call when the call was made. - The parameter types for the current target method. - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - The return type of the target method. - The arguments used in the method call. - - - - Returns a string that represents the current object. - - A string that represents the current object. - - - - The target instance currently being called. - - This typically is a reference to a proxy object. - - - - The method currently being called. - - - - - The associated - with the method call when the call was made. - - - - - This is the actual calling method that invoked the . - - - - - The return type of the . - - - - - The parameter types for the current target method. - - - - This could be very useful in cases where the actual target method - is based on a generic type definition. In such cases, - the instance needs to be able - to describe the actual parameter types being used by the - current generic type instantiation. This property helps - users determine which parameter types are actually being used - at the time of the method call. - - - - - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - - - - The arguments used in the method call. - - - - - Represents the default implementation for the - class. - - - - - Initializes a new instance of the InvocationInfoEmitter class. - - - - - Initializes a new instance of the InvocationInfoEmitter class. - - Determines whether or not stack trace information will be available at runtime. - - - - Emits the IL to save information about - the method currently being executed. - - - The target method currently being executed. - The method that will be passed to the as the currently executing method. - The local variable that will store the resulting instance. - - - - Adds helper methods classes that implement the - interface. - - - - - Emits the IL instructions that will store information about the method currently being executed - and stores the results into the variable. - The instance. - The method whose implementation will be intercepted. - The actual method that will contain the resulting instructions. - The local variable that will store the current instance. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The return value of the method call. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The target instance that will handle the method call. - The return value of the method call. - - - - Invokes the currently executing method by using the - as the target instance, the as the method, - and uses the for the method - arguments. - - The instance that contains information about the method call itself. - The target instance that will handle the method call. - The arguments that will be used for the actual method call. - The return value of the method call. - - - - A class that verifies a given instance. - - - - - Verifies the given instance. - - The assembly definition that needs to be verified. - - - - Represents a class that emits the instructions that call the method replacement instead of the original method body. - - - - - Initializes a new instance of the class. - - The instruction label that will be used if the original instructions should be executed. - The variable that contains the instance. - The variable that contains the class-level instance. - The variable that contains the instance. - - - - Emits the instructions that call the method replacement instead of the original method body. - - The that points to the current method body. - - - - Represents a type that can add a prolog and epilog instructions to a particular method body. - - - - - Adds a prolog to the given method body. - - The that points to the given method body. - - - - Adds an epilog to the given method body. - - The that points to the given method body. - - - - Represents a type that determines whether or not a particular type should be modified. - - - - - Determines whether or not a type should be modified. - - The target type. - Returns true if the type should be modified. - - - - Represents an class that adds support for loading PDB files into memory every time an assembly is loaded into memory. - - - - - Initializes a new instance of the AssemblyLoaderWithPdbSupport class. - - The that will perform the actual load operation. - - - - Loads the target assembly (and its corresponding PDB file) into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Removes the temporary backup files that were created during the load operation. - - The full path and location of the original assembly file. - The full path and location of the original PDB file. - The full path and location of the temporary pdb file. - The full path and location of the backup assembly file. - - - - Gets or sets the value indicating the instance that will be used to load assemblies into memory. - - - - - Represents a loader that modifies a given assembly prior to being loaded from disk. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The loader that will be responsible for loading the program debugging information into memory. - - - - Modifies a given assembly prior to being loaded from disk. - - The filename of the target assembly. - A valid assembly. - - - - Gets or sets the value indicating the that will be used to load debug symbols into memory. - - - - - Gets the value indicating the list of delegates - that will be used to modify the assemblies loaded into memory. - - - - - Gets or sets the value indicating the - instance that will be used to ensure that the modified assemblies are valid. - - - - - Represents the default implementation of the interface. - - - - - Loads an assembly into memory. - - The bytes that represent the target assembly. - The bytes that represent the PDB file. - A that represents the loaded assembly. - - - - Loads the debug symbols from the target . - - The assembly that contains the symbols to be loaded. - - - - Saves the debug symbols for the target. - - The assembly that contains the symbols to be saved. - - - - Represents the parameters used to add interception to a given method body. - - - - - Initializes a new instance of the class. - - The CilWorker that is responsible for the current method body. - The value indicating the list of old instructions in the current method body. - The value that determines whether or not interception is disabled. - The local variable that will store the instance. - The value indicating the local variable that will store the return value. - The instance. - The instance. - The class-level instance. - The functor that resolves the GetMethodReplacementProvider method. - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the list of old instructions in the current method body. - - The value indicating the list of old instructions in the current method body. - - - - Gets the value indicating the class-level instance. - - The class-level instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the local variable used to store the instance. - - The instance. - - - - Gets the value indicating the TargetMethod to be modified. - - The method to be modified. - - - - Gets the value indicating the local variable that will store the value that determines whether or not - interception is disabled. - - The value that determines whether or not interception is disabled. - - - - Gets the value indicating the local variable that will store the instance. - - The local variable that will store the instance. - - - - Gets the value indicating the local variable that will store the return value. - - The value indicating the local variable that will store the return value. - - - - Gets the value indicating the interception registry type that will be responsible for handling class-level interception events. - - The interception registry type that will be responsible for handling class-level interception events. - - - - Gets the value indicating the functor that resolves the GetMethodReplacementProvider method. - - The functor that resolves the GetMethodReplacementProvider method. - - - - Represents an extension class that adds helper methods to the type. - - - - - Adds a local variable to the given method. - - The target method. - The variable type. - A local variable definition. - - - - Represents an extension class that adds method body interception support to the Mono.Cecil object model. - - - - - Intercepts all method bodies on the target item. - - The target to be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Intercepts all method bodies on the target item. - - The target to be modified. - The method filter that will determine the methods that will be modified. - - - - Represents an extension class that adds method call interception support to the Mono.Cecil object model. - - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The type filter that determines which types will be modified for interception. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The type filter that determines the types that will be modified. - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The instance that determines the method calls that will be intercepted. - The instance that determines the host method calls that will be modified - - - - Modifies the current to support third-party method call interception for all method calls made inside the target. - - The target object. - The instance that determines the method calls that will be intercepted. - The instance that determines the host method calls that will be modified - - - - Modifies the current to support third-party method call interception. - - The target object. - The filter that will determine the target types that will be modified. - The filter that will determine the methods that will be modified on the target type. - The filter that will determine which third-party methods will be intercepted on the target type. - - - - Modifies the current to support third-party method call interception. - - The target object. - The filter that will determine the target types that will be modified. - The filter that will determine the methods that will be modified on the target type. - The filter that will determine which third-party methods will be intercepted on the target type. - - - - Provides the basic functionality for the interface. - - - - - Initializes a new instance of the MethodRewriter class. - - - - - Rewrites a target method using the given CilWorker. - - The target method. - The CilWorker that will be used to rewrite the target method. - The original instructions from the target method body. - - - - Adds additional members to the host type. - - The host type. - - - - Adds additional references to the target module. - - The host module. - - - - Adds local variables to the . - - The target method. - - - - Determines whether or not the method rewriter should replace the . - - The instruction that is currently being evaluated. - The method that hosts the current instruction. - - true if the method should be replaced; otherwise, it should return false. - - - - Replaces the with a new set of instructions.. - - The instruction currently being evaluated. - The method that contains the target instruction. - The CilWorker for the target method body. - - - - A helper class that extends Cecil to support the interface. - - - - - Transforms the methods in the using the given method rewriter. - - The transformation target. - The method rewriter. - The method filter that determines which methods will be rewritten. - - - - Transforms the methods in the using the given method rewriter. - - The transformation target. - The method rewriter. - The method filter that determines which methods will be rewritten. - - - - Represents the default implementation of the interface. - - - - - Initializes a new instance of the MethodWeaver class. - - The instance that will modify the existing method. - The filter that determines which methods should be modified. - - - - Initializes a new instance of the MethodWeaver class. - - The instance that will modify the existing method. - The provider that will obtain the original instructions for the target method. - The filter that determines which methods should be modified. - - - - Determines whether or not a method should be modified. - - The target method. - - true if the method should be modified; otherwise, it returns false. - - - - Modifies a target method. - - The target method. - - - - Rewrites an existing method. - - The method that needs to be modified. - - - - Adds additional members to the target type. - - The target type to be modified. - - - - Imports additional references into the given module. - - The module that will store the additional references. - - - - Represents a visitor class that can iterate over - instances. - - - - - Initializes a new instance of the MethodWeaverVisitor class. - - The that will be used to modify a given type. - - - - Visits a instance. - - The instance that will be modified. - - - - Visits a instance. - - The instance that will be modified. - - - - Visits a instance. - - A object. - - - - Visits a instance. - - A object. - - - - An extension class that adds support for intercepting the 'new' operator with LinFu.AOP. - - - - - Modifies a to support intercepting all calls to the 'new' operator. - - The assembly to be modified. - - - - Modifies a to support intercepting all calls to the 'new' operator. - - The assembly to be modified. - - - - Modifies a to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies a assembly to support intercepting calls to the 'new' operator. - - The assembly to be modified. - The functor that determines which type instantiations should be intercepted. - - The type filter determines the concrete types that should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<TypeReference, bool> filter = - concreteType => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that determines which host methods will be modified - The filter that determines which types will be modified. - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The functor that determines which type instantiations should be intercepted. - The filter that determines which host methods will be modified - - The type filter determines which concrete types and constructors should be intercepted at runtime. - For example, the following functor code intercepts types named "Foo": - - Func<MethodReference, TypeReference, bool> filter = - (constructor, concreteType, hostMethod) => concreteType.Name == "Foo"; - - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that will determine which constructor calls should be intercepted. - The filter that will determine which host methods should be modified to support new instance interception. - - - - Modifies the to support intercepting calls to the 'new' operator. - - The item to be modified. - The filter that will determine which constructor calls should be intercepted. - The filter that will determine which host methods should be modified to support new instance interception. - - - - Modifies the methods in the given using the custom instance. - - The host that contains the methods that will be modified. - The custom that will replace all calls to the new operator with the custom code emitted by the given weaver. - The method filter that will determine which methods should be modified. - - - - Modifies the methods in the given using the custom instance. - - The host that contains the methods that will be modified. - The custom that will replace all calls to the new operator with the custom code emitted by the given weaver. - The method filter that will determine which methods should be modified. - - - - Represents an instruction emitter that saves the return value from a given method call. - - - - - Initializes a new instance of the class. - - The return type. - The return value. - - - - Saves the return value from a given method call. - - The pointing to the target method body. - - - - Represents a class that surrounds a call site with calls to an instance. - - - - - Initializes a new instance of the class. - - The parameters that describe the context of the emitter call. - The name of the property. - - - - Initializes a new instance of the class. - - The variable that contains the instance. - The variable that contains the instance - The variable that contains the instance. - The variable that determines whether or not interception is disabled - The variable that contains the method return value. - The interception registry type that will be responsible for handling class-level interception events. - The name of the property. - - - - Adds a prolog to the given method body. - - The that points to the given method body. - - - - Adds an epilog to the given method body. - - The that points to the given method body. - - - - Adds helper methods to the class. - - - - - Applies a instance to all methods - within the given . - - The target module. - The instance that will modify the methods in the given target type. - - - - Represents a visitor class that can iterate over - instances. - - - - - Initializes a new instance of the TypeWeaverVisitor class. - - The that will be used to modify a given type. - - - - Visits a instance. - - A object. - - - - Represents a class that describes a request to instantiate a particular object type. - - - - - Gets the value indicating the type to be instantiated. - - - - - Gets the value indicating the arguments that will be passed to the constructor during instantiation. - - - - - Represents a class that describes a request to instantiate a particular object type. - - - - - Initializes the context with the given parameters. - - The type to be instantiated. - The additional arguments that must be passed to the constructor. - - - - Gets the value indicating the type to be instantiated. - - - - - Gets the value indicating the arguments that will be passed to the constructor during instantiation. - - - - - An extension class that adds helper methods to the interface. - - - - - Instantiates the with the given and . - - The instance that will be responsible for creating the . - The type to be created. - The arguments that will be passed to the constructor. - An object reference that matches the given . - - - - Instantiates the with the given and . - - The instance that will be responsible for creating the target type. - The arguments that will be passed to the constructor. - The target type that will be instantiated by the activator. - An object reference that matches the given . - - - - Represents a registry class that handles all class-level method call interception operations for all modified types. - - - - - Obtains the instance for the given . - - The instance that describes the current method call. - An instance that will be used to wrap a method call or method body. - - - - Adds an to the list of provider instances. - - The instance. - - - - Clears the list of instances. - - - - - Represents a registry class that handles all class-level interception operations for all modified types. - - - - - Obtains the instance for the given . - - The instance that describes the current method call. - An instance that will be used to wrap a method call or method body. - - - - Adds an to the list of provider instances. - - The instance. - - - - Clears the list of instances. - - - - - Represents an exception thrown when LinFu.AOP is unable to bootstrap itself. - - - - - Initializes a new instance of the class. - - The exception message. - The exception itself. - - - - Represents a registry class that bootstraps components into memory when the application starts. - - - - - Initializes the BootStrapRegistry. - - - - - Returns the list of components that have been initialized by the bootstrapper. - - - - - - - Gets the value indicating the BootStrapRegistry instance. - - - - - Represents a class that is invoked before a method call. - - - - - This method will be called just before the actual - method call is executed. - - The associated with the method call. - - - - - Represents a class that is invoked after a method call. - - - - - This method will be called immediately after the actual - method call is executed. - - The associated with the method call. - The value returned from the actual method call. - - - - Represents a class that can wrap itself around any given method call. - - - - - Represents a class that stores instances in a central location. - - - - - Gets the instance that can handle the current exception. - - The instance that describes the context of the thrown exception. - An exception handler. - - - - Sets the instance that can handle all thrown exceptions. - - The exception handler. - - - - Represents a class that describes the state of a field just as it is being intercepted. - - - - - Gets a value indicating the target instance that is attached to the target field. - - - - - Gets a value indicating the host method that is currently accessing the target field. - - - - - Gets a value indicating the field that is currently being accessed by the target method. - - - - - Gets a value indicating the that holds the target field. - - - - - Represents a class that describes the state of a field just as it is being intercepted by a . - - - - - Initializes a new instance of the FieldInterceptionContext class. - - The target that hosts the given field. - The method that accessed the target field. - The field currently being accessed by the target method. - The type that hosts the target field. - - - - Gets a value indicating the target instance that is attached to the target field. - - - - - Gets a value indicating the host method that is currently accessing the target field. - - - - - Gets a value indicating the field that is currently being accessed by the target method. - - - - - Gets a value indicating the that holds the target field. - - - - - Represents a registry class that allows users to intercept fields from a single location. - - - - - Gets current the associated with the . - - The instance that describes the state of the method call when the field getter or setter is called. - The field interceptor that will be used to preempt field getter and setter calls. - - - - Sets current the that will be associated with the . - - The field interceptor that will be used to preempt field getter and setter calls. - - - - Represents a class that can instantiate object instances. - - - The type that describes the context of the object instantiation. - - - - - Creates an object instance. - - The context that describes the request to instantiate the target type. - A valid object instance. - - - - Represents a type that can intercept activation requests. - - - - - Gets or sets the value indicating the that - will be used to instantiate object types. - - - - - Represents a type that supports injecting code around a method body or method call. - - - - - Gets or sets the value indicating the - that will be used to inject code "around" a particular method body - implementation. - - - - - Gets or sets the value indicating the - that will be used to inject code "around" a particular method call - implementation. - - - - - Represents a class that injects code around a method implementation. - - - - - Gets the instance that will be executed - before and after the target method (specified in the parameter) - is called. - - The that describes the context of the method call at the call site. /// An instance if the surrounding behavior can be found; otherwise, it should return null. - - - Represents a type that will be automatically initialized once the LinFu.AOP assembly is loaded into memory. - - - - - Initializes the bootstrapped component. - - - - - Represents a type that can catch thrown exceptions. - - - - - Determines whether or not an exception can be handled. - - The object that describes the exception being thrown. - - True if the exception can be handled by the current handler. - - - - Handles the exception specified in the instance. - - The object that describes the exception being thrown. - - - - Represents a type that describes the context of a thrown exception. - - - - - Gets the value indicating the thrown exception. - - The thrown exception. - - - - Gets the value indicating the instance that describes the context of the method - that threw the exception. - - The instance. - - - - Gets or sets the value indicating the return value that will be used in place of the original return value if - the exception is intercepted by an instance. - - The method return value. - - - - Gets or sets the value indicating whether or not the exception should be rethrown after - the handles the given exception. - - This should be true if the exception should be rethrown, otherwise, it must be false. - - - - Represents a type that has been modified to intercept field getters and setters. - - - - - Gets or sets the value indicating the interceptor that will handle field getters and setters. - - - - - Represents a type that can intercept field getter and setter calls. - - - - - Determines whether or not a field can be intercepted. - - The context that describes the field to be intercepted. - - true if it can be intercepted; otherwise, it will return false. - - - - Gets the value of a field. - - The context that describes the field to be intercepted. - The value of the target field. - - - - Sets the value of a field. - - The context that describes the field to be intercepted. - The original value that will be assigned to the target field. - The value that will be assigned to the target field. - - - - Represents a class that can dynamically intercept method calls. - - - - - Intercepts a method call using the given - instance. - - The instance that will - contain all the necessary information associated with a - particular method call. - The return value of the target method. If the return type of the target - method is , then the return value will be ignored. - - - - Represents the information associated with - a single method call. - - - - - The target instance currently being called. - - This typically is a reference to a proxy object. - - - - The method currently being called. - - - - - The return type of the . - - - - - The associated - with the method call when the call was made. - - - - - The parameter types for the current target method. - - - - This could be very useful in cases where the actual target method - is based on a generic type definition. In such cases, - the instance needs to be able - to describe the actual parameter types being used by the - current generic type instantiation. This property helps - users determine which parameter types are actually being used - at the time of the method call. - - - - - - If the method is a generic method, - this will hold the generic type arguments used to construct the - method. - - - - - The arguments used in the method call. - - - - - Represents a special type of interceptor that can - wrap itself around a method call. - - - - - This method will provide the actual implementation - for the target method - instance. - - The associated with the method call. - The actual return value from the . - - - - Represents a special type of that can be used to instantiate a given type - and can be used to describe the method that invoked the instantiation operation as well as specify the object - instance that invoked the instantiation itself. - - - - - Gets the value indicating the object instance that initiated the object instantiation operation. - - - - - Gets the value indiating the instance that initiated the object instantiation operation. - - - - - Represents an that can instantiate objects from within a particular method. - - - - - Determines whether or not a type can be instantiated using the - . - - The instance that describes the type to be created. - - true if the type can be created; otherwise, it will return false. - - - - Represents a type that can have its method body implementations replaced at runtime. - - - - - Gets or sets a value indicating the that will be used to swap method body implementations at runtime. - - - - - Gets or sets a value indicating the that will be used to swap method body implementations at runtime. - - - - - Represents a type that can swap method body implementations at runtime. - - - - - Determines whether or not the current method implementation can be replaced. - - The target instance of the method call. - The that describes the context of the method call. - - true if the method can be intercepted; otherwise, it will return false. - - - - Obtains the instance that will be used to replace the current method call. - - The target instance of the method call. - The that describes the context of the method call. - The interceptor that will intercept the method call itself. - - - - Represents a type that has been modified to support - pervasive method interception. - - - - - Gets or sets the value indicating whether or not - method interception should be disabled. - - - - - Represents a static type that allows users to register a method replacement provider from a single location. - - - - - Returns the provider that is currently attached to the registry. - - The type that is currently being intercepted. - The object that describes the invocation context. - A that will determine the code that will be executed once a target method is called. - - - - Assigns the to the MethodReplacementProvider registry. - - A that will determine the code that will be executed once a target method is called. - - - - Represents a static type that allows users to register a method replacement provider from a single location. - - - - - Returns the provider that is currently attached to the registry. - - The type that is currently being intercepted. - The object that describes the invocation context. - A that will determine the code that will be executed once a target method is called. - - - - Assigns the to the MethodReplacementProvider registry. - - A that will determine the code that will be executed once a target method is called. - - - - Represents an that can be used to instantiate a given type - and be used to describe the method that invoked the instantiation operation as well as specify the object - instance that invoked the instantiation itself. - - - - - Initializes a new instance of the MethodActivationContext class. - - The object instance that initiated the activation request. - The method where the activation was invoked. - The type to be constructed. - The additional arguments that will be passed to the constructor. - - - - Gets the value indicating the object instance that initiated the object instantiation operation. - - - - - Gets the value indiating the instance that initiated the object instantiation operation. - - - - - Represents a registry that allows users to statically register - instances. - - - - - Obtains an activator for the given . - - The instance that describes the object to be created. - A method activator. - - - - Sets the that will be used to - instantiate object instances. - - The that will instantiate types. - - - - Represents an MSBuild task for LinFu.AOP that allows users to inject an aspect framework into their applications - at postbuild time. - - - - - Executes the postweaver. - - Returns true if the operation succeeded. Otherwise, it will return false. - - - - Gets or sets the value indicating the full path and filename of the target assembly. - - The target assembly filename. - - - - Gets or sets the value indicating the full path and filename of the output assembly. - - The output assembly filename. - This field is optional; if blank, the default value will be the same value as the property. - - - - Gets or sets the value indicating whether or not third party method calls should be intercepted in the target assembly. - - A boolean value indicating whether or not third party method call interception should be enabled. - - - - Gets or sets the value indicating whether or not method bodies should be intercepted in the target assembly. - - A boolean value indicating whether or not method body interception should be enabled. - - - - Gets or sets the value indicating whether or not new instances should be intercepted in the target assembly. - - A boolean value indicating whether or not new instance interception should be enabled. - - - - Gets or sets the value indicating whether or not field reads and writes should be intercepted in the target assembly. - - A boolean value indicating whether or not field reads and writes should be enabled. - - - - Gets or sets the value indicating whether or not thrown exceptions should be intercepted in the target assembly. - - A boolean value indicating whether or not exception interception should be enabled. - - - - Represents a class that describes the search criteria - for a given item type. - - The target item type. - - - - Gets or sets a value indicating the - of the current . - - - - - The condition that will determine whether or not - the target item matches the criteria. - - - - - Gets or sets a value indicating the weight of the given . - - - - - Represents the default implementation of the interface. - - The type of item to test. - - - - Gets or sets a value indicating the - of the current . - - - - - The condition that will determine whether or not - the target item matches the criteria. - - - - - The weight of the given . - - - - - A class that adds fuzzy search support to instances. - - - - - Applies a criteria to the of - fuzzy items. - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The criteria to test against each item in the list. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - The to associate with the predicate. - - - - Applies a criteria to the of - fuzzy items using the given . - - The type of item to test. - The list of instances that represent a single test case in a fuzzy search. - The condition that will be used to test the target item. - The to associate with the predicate. - The weight of the predicate value expressed in the number of tests that will be counted for/against the target item as a result of the predicate. - - - - Adds an item to a fuzzy list. - - The type of the item being added. - The fuzzy list that will contain the new item. - The item being added. - - - - Returns the FuzzyItem with the highest confidence score in a given - list. - - The type of item being compared. - The fuzzy list that contains the list of possible matches. - The item with the highest match. - - - - Resets the scores of all fuzzy items in the current list. - - The target item type. - The fuzzy list itself. - - - - Converts a list into a list of objects. - - The item type will be used in the fuzzy search. - The target list to be converted. - A fuzzy list containing the elements from the given list. - - - - Represents a search item in a fuzzy search list. - - - - - - - Tests if the current item matches the given - . - - The that determines whether or not the meets a particular description. - - - - Resets the item back to its initial state. - - - - - Reports the probability of a match - based on the - that has been tested so far. - - A value of 1.0 indicates a 100% match; - A value of 0.0 equals a zero percent match. - - - - - Gets the target item. - - - - - Represents the default implementation of a weighted item in - a fuzzy list. - - The item type to be tested. - - - - Initializes the class with the given . - - An instance of the item type that will be tested. - - - - Tests if the current item matches the given - . - - The that determines whether or not the meets a particular description. - - - - Resets the item back to its initial state. - - - - - Reports the probability of a match - based on the - that has been tested so far. - - A value of 1.0 indicates a 100% match; - A value of 0.0 equals a zero percent match. - - - - - Gets the target item. - - - - - The enumeration that determines how a instance should - be handled if the criteria test fails. - - - - - A failure in a criteria test will result in a lower weighted - score for a target item. - - - - - A failure in a criteria test will be ignored, and hence, - the criteria will be optional. - - - - - A failure in a criteria test will cause all previous and remaining - tests against the criteria to fail. - - - - - A class that adds logical extensions to the predicate - class. - - - - - Logically ORs two predicates together. - - The type of item being compared. - The left hand predicate. - The right hand predicate. - A predicate that will return true if and only if one of the given predicates is true; otherwise, it will return false. - - - - Logically ANDs two predicates together. - - The type of item being compared. - The left hand predicate. - The right hand predicate. - A predicate that will return true if and only if both of the given predicates are true; otherwise, it will return false. - - - - Logically negates a single predicate. - - The type of item being compared. - The predicate to negate. - Returns true if the given predicate is false. - - - - An attribute that marks a type as a custom factory. - - - - - The service name that will be associated - with the service type. - - - - - The additional parameters supported by the custom factory. - - - - - Marks a target type as a custom factory - that can create object instances that - can implement the . - - The service type to create. - - - - Gets the service type that can be created - using the factory instance. - - - - - An inversion of control container interface. - - - - - Adds an instance and associates it - with the given service type. - - The service type to associate with the factory - The list of additional parameters that this factory type will support. - The instance that will be responsible for creating the service instance - - - - Determines whether or not the container can create - the given service type. - - The type of service used to determine whether or not the given service can actually be created - The list of additional parameters that this factory type will support. - A boolean value that indicates whether or not the service exists. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - The list of services currently available inside the container. - - - - - Determines whether or not a container will throw an exception - if the requested service is not found. - - - - - Allows an object to create its own service instances. - - - - - Creates a service instance using the given instance. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - Represents the parameters made to a instance during - a method call. - - - - - Gets or sets the value indicating the service container that made the service request. - - - - - Gets the value indicating the service name. - - A null service name indicates that no service name was given during the request. - - - - Gets the value indicating the requested service type. - - - - - Gets the value indicating the additional arguments given in the factory request. - - - - - Represents service classes that need to be initialized - every time a particular - instance creates that type. - - - - - The attribute used to specify how a service should be implemented - in addition to its instancing behavior. - - - - - The name to associate with the given service. - - - - - Allows users to add services to a container using a - given service type. - - By default, each service will be created once per request. - The of service to implement. - - - - Allows users to add services to a container using a - given service type and - lifecycle type. - - The of service to implement. - The instancing behavior to use with this implementation. - - - - The type of service that will be implemented. - - - - - The instancing behavior of the service instance. - - - - - - Represents a class that can inspect or modify service requests - from a given container once a service is created. - - - - - Allows a instance - to inspect or modify the result of a service request. - - - The created as a result of the container operation. - - - - Represents a class that can inspect or modify service requests - from a given container before a service is created. - - - - - Allows a instance - to inspect or modify the result of a service request - just before the service is instantiated. - - - The instance that describes the nature of the service that needs to be created. - - - - An inversion of control container that supports - named services. - - - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Determines whether or not a service can be created using - the given service name - and service type. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that the factory type must support. - Returns true if the service exists; otherwise, it will return false. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The name of the service to instantiate. - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - The list of preprocessors that will handle - every service request before each actual service is created. - - - - - The list of postprocessors that will handle every - service request result. - - - - - A class that describes a single service - provided by a container. - - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - Gets a value indicating the list of arguments required by this particular service. - - - - - Represents a class that describes the context of a service request made to a service container. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the actual arguments that - will be used for the service request. - - - - - Gets the value indicating the original arguments that - were given during the service request. - - - - - Gets the value indicating the original instance - that will be used to handle the service request. - - - - - Gets or sets the value indicating the actual instance - that will be used to handle the service request. - - - - - Represents the results returned when a service request - is made against an instance. - - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - The raw object reference created by the container itself. - - - - - The result that will be returned from the container - instead of the . - - If this property is null, then the original result will be used. - - - - - The container that will handle the service request. - - - - - Gets the value indicating the additional arguments that - were used during the service request. - - - - - An enumeration that denotes the instance behavior - of a particular object reference. - - - - - This means that a new object instance - will be created on each call. - - - - - This means that a new object instance - will be created only once per thread. - - - - - This means that only a single object instance - will ever be created in spite of the number of - subsequent requests for a new object instance. - - - - - Represents an type that processes multiple instances at once. - - - - - Initializes the type using the given . - - The list of instances that will be handled by this type. - - - - A method that passes every request result made - to the list of postprocessors. - - The instance that describes the result of the service request. - A representing the results returned as a result of the postprocessors. - - - - Represents an type that processes multiple instances at once. - - - - - Initializes the type using the given . - - The list of instances that will be handled by this type. - - - - A method that passes every request result made - to the list of preprocessors. - - The parameter that describes the context of the service request. - - - - Represents a class that describes a request to instantiate a particular object type using a given - instance. - - - - - Gets the value indicating the instance - that will instantiate the . - - - - - Represents a class that describes a request to instantiate a particular object type using a given - instance. - - - - - Initializes the class with the given parameters. - - The type to be instantiated. - The container that will be used to instantiate the target type. - The additional arguments that must be passed to the constructor. - - - - Gets the value indicating the instance - that will instantiate the . - - - - - Represents a class that can instantiate object instances. - - - - - Creates an object instance. - - A valid object instance. - - - - Determines which parameter types need to be supplied to invoke a particular - instance. - - The target constructor. - The additional arguments that will be used to invoke the constructor. - The list of parameter types that are still missing parameter values. - - - - Initializes the class with the default services. - - The target service container. - - - - The attribute used to mark a property for autoinjection. - - - - - Marks a target type as an - instance that can be injected into a - instance. - - - - - Marks a target type as an - instance that can be injected into a - instance. - - - - - Represents a class that is responsible for generating methods - from other existing methods. - - The method type to generate. - - - - Creates a method from the . - - The method that will be used to define the new method. - A method based on the old method. - - - - Represents the default implementation of the interface. - - The method type to generate. - - - - Creates a method from the . - - The method that will be used to define the new method. - A method based on the old method. - - - - Pushes the method arguments onto the stack. - - The of the target method body. - The target method that will be invoked. - - - - Determines the parameter types of the dynamically generated method. - - The target method. - The target method argument types. - The list of objects that describe the signature of the method to generate. - - - - Pushes the method target onto the stack. - - The that belongs to the method body. - The current method. - - - - Determines the return type from the target . - - The target method itself. - The method return type. - - - - Emits the instruction to call the target - The of the target method body. - The method that will be invoked. - - - - Represents a type that can invoke a method - using a given set of method arguments. - - - - - Invokes the - using the given . - - The target object instance. - The target method to invoke. - The arguments to be used with the method. - The method return value. - - - - Represents the default implementation of the interface. - - - - - Initializes the class with the default values. - - - - - Instantiates an object instance with the - and . - - The target object reference. In this particular case, this parameter will be ignored. - The target method. - The arguments to be used with the method. - An object reference that represents the method return value. - - - - Invokes the with the given . - - The target instance. - The original method that describes the target method. - The actual method that will be invoked. - The method arguments. - The return value from the target method. - - - - Creates a that will be used as the - factory method and stores it in the method cache. - - The constructor that will be used to instantiate the target type. - - - - Initializes the class with the source service container. - The instance that will initialize this class. - - - - Gets or sets the value indicating the method builder that will be used to - create the target method. - - - - - A class that invokes constructor instances. - - - - - Initializes the class with the default values. - - - - - A method builder that generates dynamic methods using existing constructors. - - - - - Returns the declaring type of the target constructor. - - - - The declaring type of the target constructor. - - - - Emits an instruction that instantiates the type associated with the - . - - The of the target method body. - The target constructor. - - - - A class that adds generics support to existing - and - instances. - - - - - Loads a set of files from the target directory - using a custom instance. - - The container to be loaded. - The custom that will be used to load the target assemblies from disk. - The target directory. - The search pattern that describes the list of files to be loaded. - The custom loader that will be used to load the container. - - - - Loads a set of files from the target directory - using a custom instance. - - The container to be loaded. - The custom that will be used to load the target assemblies from disk. - The target directory. - The search pattern that describes the list of files to be loaded. - - - - Loads a set of files from the target directory. - - The container to be loaded. - The target directory. - The search pattern that describes the list of files to be loaded. - The custom loader that will be used to load the container. - - - - Loads a set of files from the target directory. - - The container to be loaded. - The target directory. - The search pattern that describes the list of files to be loaded. - - - - Loads a set of files from the application base directory. - - The container to be loaded. - The search pattern that describes the list of files to be loaded. - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - - This method only performs constructor injection on the target type. If you need any other form of injection (such as property injection), you'll need to - register your type and instantiate it with the method. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Loads an existing into the container. - - The target container to be configured. - The assembly to be loaded. - - - - Generates the default for a class instance. - - The loader that will load the target container. - A valid instance. - - - - Sets the custom attribute type that will be used to mark properties - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark properties for injection. - - - - Sets the custom attribute type that will be used to mark methods - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark method for injection. - - - - Sets the custom attribute type that will be used to mark fields - for automatic injection. - - The target instance. - The custom property attribute that will be used to mark fields for injection. - - - - Initializes the target - with the default services. - - - - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Postprocesses an object instance as if it were created from the target . - - The container that will postprocess the target . - The type being processed. - The target instance to be processed. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Automatically instantiates a - with the constructor with the most resolvable parameters from - the given instance. - - - This method only performs constructor injection on the target type. If you need any other form of injection (such as property injection), you'll need to - register your type and instantiate it with the method. - - The service container that contains the arguments that will automatically be injected into the constructor. - The type to instantiate. - The list of arguments to pass to the target type. - A valid, non-null object reference. - - - - Initializes the container with the minimum required services. - - The target service container. - - - - Creates an instance of - using the given . - - The service type to create. - The container that will instantiate the service. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Instantiates a service that matches the service description. - - The container that will instantiate the service. - The description of the requested service. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Creates an instance of - using the given . - - The service type to create. - The container that will instantiate the service. - The name of the service to instantiate. - The additional arguments that will be used to construct the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Configures the container to instantiate the - on every request for the . - - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - - - - Registers the service type - as both the implementing type and the service type using the given . - - The container that will hold the service type. - The service type that will be registered as both the service type and the implementing type. - The service . - - - - Registers the service type - as both the implementing type and the service type. - - The container that will hold the service type. - The service type that will be registered as both the service type and the implementing type. - - - - Configures the container to instantiate the - on every request for the . - - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - The service . - - - - Registers an existing service instance with the container using the given - and . - - The target container instance. - The service name that will be associated with the service instance. - The target service type. - The actual service instance that will represent the service type. - - - - Registers an existing service instance with the container using the given - . - - The target container instance. - The target service type. - The actual service instance that will represent the service type. - - - - Configures the container to instantiate the - on every request for the . - - The name of the service to associate with the given . - The container that will hold the service type. - The type of service being implemented. - The concrete type that will implement the service type. - The service . - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The container that will hold the factory instance. - The instance that will create the object instance. - - - - Adds an instance and associates it - with the given service type. - - The container that will hold the factory instance. - The instance that will create the object instance. - - - - Adds an instance and associates it with the given - and - The target container. - The service name. - The service type. - The factory instance that will be responsible for creating the service itself. - - - - Adds an instance and associates it with the given - - The target container. - The service type. - The factory instance that will be responsible for creating the service itself. - - - - Registers the as the default factory instance - that will be used if no other factory can be found for the current . - - The host container. - The service type that will be created by the default factory. - The instance that will be used if no other factories can create the given service type. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type that will be implemented. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The third parameter type of the . - The third parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given - to instantiate the service instance. - - The service type itself. - The first parameter type of the . - The second parameter type of the . - The third parameter type of the . - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - - - - Adds a service to the container by using the given and - to instantiate the service instance. - - The service type itself. - The name that will be associated with the service instance. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type. - - - - Adds a service to the container by using the given and - to instantiate the service instance. - - The service type itself. - The host container that will instantiate the service type. - The factory method that will be used to create the actual service instance. - The service type. - - - - Adds an existing service instance to the container. - - The type of service being added. - The container that will hold the service instance. - The service instance itself. - - - - Adds an existing service instance to the container and - associates it with the . - - The type of service being added. - The container that will hold the service instance. - The name that will be associated with the service instance. - The service instance itself. - - - - Returns all the services in the container that match the given - service type. - - The type of service to return. - The target container. - The additional arguments that will be used to construct the service type. - The list of services that implement the given service type. - - - - Returns a list of services that match the given . - - The predicate that determines which services should be returned. - A list of objects that describe the services returned as well as provide a reference to the resulting services themselves. - the target instance. - The additional arguments that will be used to construct the service type. - - - - Determines whether or not the container can instantiate the given - and using the given . - - The target container. - The name of the requested service. - The requested service type. - The potential arguments for the service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not the container contains a service that matches - the given . - - The target container. - The requested service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not the container contains a service that matches - the given . - - The target container. - The requested service name. - The requested service type. - Returns true if the requested services exist; otherwise, it will return false. - - - - Determines whether or not a container contains services that match - the given . - - The target container. - The predicate that will be used to determine whether or not the requested services exist. - Returns true if the requested services exist; otherwise, it will return false. - - - - Disables automatic property injection for the . - - The target container. - - - - Disables automatic method injection for the . - - The target container. - - - - Disables automatic field injection for the . - - The target container. - - - - Disables automatic dependency injection for members that match the specific - type. - - The member injection type to disable. - The target container. - - - - A class that adds fluent syntax support to - instances. - - - - - Injects a type - into a using the - given - The type of service to inject. - The container that will hold the actual service service instance. - The name of the service to create. - A non-null instance. - - - - Injects a type - into a . - - The type of service to inject. - The container that will hold the actual service service instance. - A non-null instance. - - - - Initializes services that match the given type. - - The service type to initialize. - The container that will create the service itself. - A instance. This cannot be null. - - - - Initializes services that match the given and type. - - The service type to initialize. - The container that will create the service itself. - The name of the service to initialize. - A instance. This cannot be null. - - - - Converts a - lambda into an equivalent - instance. - - The type of service to create. - The lambda function to be converted. - The equivalent - that delegates its calls back to the lambda function. - - - - Adds methods that extend LinFu.IoC to support automatic constructor resolution. - - - - - Generates a predicate that determines whether or not a specific parameter type - exists in a container. - - The target . - A a predicate that determines whether or not a specific type - exists in a container - - - - Generates a predicate that determines whether or not a specific type is actually - a list of services that can be created from a given container. - - The target . - A a predicate that determines whether or not a specific type - exists as a list of services in a container - - - - Generates a predicate that determines whether or not a specific type is actually - a list of services that can be created from a given container. - - The target . - A a predicate that determines whether or not a specific type - exists as a list of services in a container - - - - Builds an argument list for the - using the given instance. - - The method that will be used to instantiate an object instance. - The container that will provide the method arguments. - An array of objects to be used with the target method. - - - - Builds an argument list for the target from - services embedded inside the instance. - - The instance that will determine the method arguments. - The target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects to be used with the target method. - - - - Casts an set of items into an array of - items. - - The items being converted. - The element type of the resulting array. - An array of items that match the . - - - - Performs a strongly typed cast against an instance. - - The target element type. - The list of items being converted. - An array of items that match the element type. - - - - Represents a class that can generate instances - from a given service type, implementing type, and lifecycle. - - - - - Generates a instance that can create the - using the and model. - - The service type that will be created by the factory. - The concrete type that will provide the implementation for the service type. - The instancing behavior of the given service type. - A valid instance. - - - - The default implementation of the class. - - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The that determines the lifetime of each instance being created. - A valid instance. - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The factory type that will instantiate the target service. - A valid instance. - - - - Determines the implementing concrete type from the given . - - The service type. - The concrete class that will implement the service type. - The actual implementing type. - - - - A private method that creates the factory method delegate - for use with a particular factory class. - - - - - The service type being instantiated. - The type that will provide the implementation for the actual service. - A factory method delegate that can create the given service. - - - - A method that generates the actual lambda function that creates - the new service instance. - - The service type being instantiated. - The type that will provide the implementation for the actual service. - A strongly-typed factory method delegate that can create the given service. - - - - Represents a class that provides the most basic information - for executing a fluent command against a - instance. - - - - - - - The service type to be created. - - - - - The name of the service to be created. - - - - - The actual - that ultimately will hold the service instance. - - - - - Represents the internal context class that will be used to - incrementally build enough information to initialize - a specific type once - that service has been instantiated. - - The service type to be created. - - - - The action that will be performed on an - instance once the fluent command executes. - - - - - Represents a postprocessor that will execute - the action associated with the given - instance every time the target container returns a - service with particular service name and service type. - - - - - - - Represents a fluent class that allows - users to create specific types of factories. - - The type of service being created. - - - - Creates a singleton factory. - - - - - - Creates a once per thread factory. - - - - - - Creates a once per request factory. - - - - - - Represents a fluent class that allows - users to create specific types of factories. - - The type of service being created. - - - - Instantiates the class using the given - . - - The instance - which will contain the information necessary to build a fluent command. - - - - Creates a singleton factory. - - - - - - Creates a once per thread factory. - - - - - - Creates a once per request factory. - - - - - - Adds a factory to the container by using the - delegate to - create the actual - instance. - - The delegate that will create the actual factory instance. - - - - Represents the internal context class that will be used to - incrementally build enough information to inject a specific - instance into a container. - - The service type to be created. - - - - The factory method that will be used to - instantiate the actual - instance. - - - - - Represents a fluent class that creates - a method that initializes a - instance. - - The service type being instantiated. - - - - Initializes service instances with the given - . - - An delegate that will be used to initialize newly created services. - - - - Uses an action delegate to initialize a given service using - the given and - instances. - - An delegate that will be used to initialize newly created services. - - - - Represents a fluent class that creates - a method that initializes a - instance. - - The service type being instantiated. - - - - Initializes the class with the . - - The context that will be associated with the target container. - - - - Initializes service instances with the given - . - - An delegate that will be used to initialize newly created services. - - - - Uses an action delegate to initialize a given service using - the given and - instances. - - An delegate that will be used to initialize newly created services. - - - - Attaches the action associated with the - instance to the target container embedded within the - class itself. - - The context that will be associated with the target container. - - - - Represents a fluent class that creates - a factory method that will be used - in instantiating a specific service instance. - - The service type being instantiated. - - - - Creates a service instance using the - concrete type - as the implementation for the - type. - - The concrete implementation that implements . This class must have a default constructor. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Represents a fluent class that creates - a factory method that will be used - in instantiating a specific service instance. - - The service type being instantiated. - - - - Initializes the class using the given . - - the internal context class that will be used to - incrementally build enough information to inject a specific - instance into a container. - - - - Creates a service instance using the - concrete type - as the implementation for the - type. - - The concrete implementation that implements . This class must have a default constructor. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - Creates a service instance using the - to - instantiate the service instance - with a particular factory type. - - The factory method that will be used to instantiate the actual service instance. - A non-null instance that will be used to create a factory and add it to a specific container. - - - - A class that initializes service instances that use - the interface. - - - - - Initializes the class with the given delegate. - - The functor that will obtain the object instance that will be used to initialize a given service. - - - - Initializes every service that implements - the interface. - - The instance that contains the service instance to be initialized. - - - - Initializes the with the given instance. - - The target to initialize. - The instance that will be introduced to the instance. - - - - A class that initializes service instances that use - the interface. - - - - - Initializes the class with the default settings. - - - - - A class that injects the postprocessor - into every container that is created or loaded. - - - - - This override does absolutely nothing. - - The target container. - - - - Injects the postprocessor into - the container. - - - - - - - An interface responsible for determining which methods - should be injected. - - - - - Returns the list of objects - that will be injected with arbitrary values. - - The target type that contains the target methods. - A set of methods that describe which methods that will injected. - - - - Defines the basic behavior of the interface. - - The member type that will be filtered. - - - - Returns the list of objects - whose setters will injected with arbitrary values. - - This implementation selects properties that are marked with the . - The target type that contains the target properties. - A set of properties that describe which parameters should be injected. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - Determines which items should be injected from the instance. - - The source container that will supply the values for the selected members. - The list of properties that will be filtered. - A list of properties that will be injected. - - - - Initializes the class. - - The host container. - - - - A default implementation of the - class that returns fields which have the - defined. - - - - - Initializes the class and uses the - to specify which field should be automatically injected with - services from the container. - - - - - Initializes the class and uses the - to specify which fields should be automatically injected with - services from the container. - - The custom property attribute that will be used to mark properties for automatic injection. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - A default implementation of the - class that returns methods which have the - defined. - - - - - Initializes the class with the as the - default injection attribute. - - - - - Initializes the class and uses the - as the custom injection attribute. - - - - - - - Returns the methods that have the custom attribute type defined. - - The target type that contains the target methods. - The host container. - The list of methods that have the custom attribute type defined. - - - - A default implementation of the - class that returns properties which have the - defined. - - - - - Initializes the class and uses the - to specify which properties should be automatically injected with - services from the container. - - - - - Initializes the class and uses the - to specify which properties should be automatically injected with - services from the container. - - The custom property attribute that will be used to mark properties for automatic injection. - - - - Determines which properties should be injected from the instance. - - The source container that will supply the property values for the selected properties. - The list of properties to be filtered. - A list of properties that should be injected. - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - Represents an alias interface used for backward compatibility with LinFu IoC 1.0 - - - - - The base class that defines the behavior for automatically injecting service - instances into type member instances. - - - - - - - Automatically injects service instances - into properties as soon as they are initialized. - - The service request result that contains the service whose members will be injected with service instances. - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - Injects a member service dependency into a target service instance. - - The that will be processed for injection. - - - - Does absolutely nothing. - - The target container. - - - - Inserts the class at the end - of the PostProcessor chain. - - The target container. - - - - A class that automatically injects fields using values - provided by an instance. - - - - - Injects a field with values from a given container. - - The target object. - The instance that will store the service instance. - The that will determine which values will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. Note: This parameter will be ignored by this override. - The container that will provide the service instances. - - - - A class that automatically invokes methods using arguments - derived from existing instances from within a - instance. - - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - A class that automatically injects property dependencies into - service instances. - - - - - Injects services from the into the target instance. - - The target object. - The instance that will store the service instance. - The that will determine which arguments will be assigned to the target member. - The additional arguments that were passed to the during the instantiation process. - The container that will provide the service instances. - - - - A class that injects unnamed custom instances into a given - service container. - - - - - Initializes the class with the given service type and factory. - - The service type that will be created by the factory. - The instance that will be used to create the service instance. - - - - Injects the given factory into the target container. - - The instance that describes the service that is currently being requested. - - - - Represents a type of - that always returns an empty match. - - - - - Always returns an empty list of injectable members. - - The type to be injected. - An empty list. - - - - An implementation - that automatically selects properties whose property types - currently exist in the target container. - - - - - Determines which members should be selected from the - using the - The target type that will supply the list of members that will be filtered. - The target container. - A list of objects that pass the filter description. - - - - An assembly loader that returns an existing - from memory. - - - - - Initializes the class with an existing - . - - The target assembly. - - - - Represents the data associated with a search. - - - - - Gets or sets the value indicating the type arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the list of arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the return type of the target method. - - - - - Represents a class that determines which method best matches the - services currently in the target container. - - The method type to search. - - - - Determines which method best matches the - services currently in the target container. - - The list of methods to search. - The that describes the target method. - Returns the method with the most resolvable parameters from the target instance. - - - - Represents a method finder that uses a instance - during its method searches. - - - - - - - Gets the value indicating the service container that will be used in the - method search. - - - - - Represents a class that loads configuration information - from a given assembly. - - - - - Generates one or more instances - from a given source type so that it can be used - against an instance. - - - - - A class that injects custom and - instances into an instance. - - - - - Loads an and instance - into a instance using the given - . - - The input type from which one or more factories will be created. - A set of instances. This cannot be null. - - - - Instantiates the instances associated with the and - adds those factories to the target container upon initialization. - - The currently being inspected. - The list of instances currently declared on on the source type. - The functor that will be responsible for generating the factory instance. - A list of actions that will add the factories to the target container. - - - - Instantiates the given factory using the factory functor. - The service type that will be created by the factory. - The functor that will be responsible for creating the factory itself. - The list of interfaces that are implemented by the source type. - A valid factory instance. - - - - Determines whether or not the current - can be loaded. - - The source type currently being loaded. - Returns true if the type is a class type; otherwise, it returns false. - - - - A loader class that scans a type for - attribute declarations and creates a factory for each corresponding - attribute instance. - - - - - - Converts a given into - a set of instances so that - the instance can be loaded - with the given factories. - - The input type from which one or more factories will be created. - A set of instances. This cannot be null. - - - - Creates a factory instance that can create instaces of the given - using the - as the implementation. - - The service being implemented. - The actual type that will implement the service. - The that determines the lifetime of each instance being created. - A valid instance. - - - - Determines whether or not the current - can be loaded. - - The source type currently being loaded. - Returns true if the type is a class type; otherwise, it returns false. - - - - Represents a class that can dynamically configure - instances at runtime. - - - - - Initializes the loader using the default values. - - - - - Gets or sets the value indicating the instance - that will be used to load assemblies into memory. - - - - - A class that automatically loads - instances and configures a loader to inject those postprocessors - into a container upon initialization. - - - - - Determines if the plugin loader can load the . - - The target type must implement the interface before it can be loaded into memory. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of instances - so that they can be loaded into a container upon initialization. - - The type that will be used to configure the target loader. - A set of instances. This cannot be null. - - - - A class that automatically loads - instances and configures a loader to inject those postprocessors - into a container upon initialization. - - - - - Determines if the plugin loader can load the . - - The target type must implement the interface before it can be loaded into memory. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of instances - so that they can be loaded into a container upon initialization. - - The type that will be used to configure the target loader. - A set of instances. This cannot be null. - - - - A class that dynamically generates calls to a instance. - - - - - Pushes the method target onto the evaluation stack. - - The of the method body. - The target method. - - - - Pushes the method arguments onto the stack. - - The of the target method body. - The target method that will be invoked. - - - - Determines the return type from the target . - - The target method itself. - The method return type. - - - - Determines the parameter types of the dynamically generated method. - - The target method. - The target method argument types. - The list of objects that describe the signature of the method to generate. - This override will add an additional parameter type to accomodate the method target. - - - - Emits the instruction to call the target - The of the target method body. - The method that will be invoked. - - - - Represents the data associated with a search. - - - - - Initializes the context with the default values. - - The list of arguments that will be passed to the target method. - - - - Initializes the context with the default values. - - The type arguments that will be used to construct the target method. - The list of arguments that will be passed to the target method. - The type that must be returned by the target method. - - - - Gets or sets the value indicating the type arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the list of arguments that will be passed to the target method. - - - - - Gets or sets the value indicating the return type of the target method. - - - - - A class that invokes methods. - - - - - Initializes the class with the default values. - - - - - Invokes the with the given . - - The target instance. - The original method that describes the target method. - The actual method that will be invoked. - The method arguments. - The return value from the target method. - - - - A class responsible for setting property values. - - - - - Sets the value of the . - - /// The target instance that contains the property to be modified.The property that will store the given value.The value that will be assigned to the property. - - - A class responsible for setting property values. - - - - - Sets the value of the . - - The target instance that contains the property to be modified. - The property that will store the given value. - The value that will be assigned to the property. - - - - Generates an delegate that will be used - as the property setter for a particular type. - - The property that will be modified. - A property setter. - - - - The exception thrown when a recursive dependency is detected - inside a instance. - - - - - Initializes the - class with the chain - of depedencies that caused the exception. - - The sequence of types that caused the dependency exception. - - - - Gets the value indicating the chain of types that caused the exception. - - - - - Gets the value indicating the error message from the . - - - - - Represents a type that simply lets - methods pass through it without performing any modifications to those methods. - - - - - Returns the unmodified. - - The method to be modified. - The modified method. - - - - Represents a type that can generate method arguments - from an existing instance. - - - - - Generates constructor arguments from the given - and . - - The parameter types for the target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects that represent the arguments to be passed to the target method. - - - - Represents the default implementation of the class. - - - - - Generates method arguments from the given - and . - - The parameter types for the target method. - The container that will provide the method arguments. - The additional arguments that will be passed to the target method. - An array of objects that represent the arguments to be passed to the target method. - - - - Constructs an array of services using the services currently available - in the . - - The current parameter type. - The container that will be used to build the array of services. - The list that will store new service array. - - - - Determines whether or not a parameter type is an existing - list of available services and automatically constructs the - service list and adds it to the . - - The current constructor parameter type. - The container that will provide the argument values. - The list that will hold the arguments to be passed to the constructor. - - - - Represents a class that can choose a member that best matches - the services currently available in a given instance. - - The member type that will be searched. - - - - Uses the to determine which member can be used to instantiate - a concrete type. - - The target type. - The container that contains the service instances that will be used to invoke the target member. - The that describes the target method. - A instance if a match is found; otherwise, it will return null. - - - - Represents a class that can choose a member that best matches - the services currently available in a given instance. - - The member type that will be searched. - - - - The default constructor for the class. - - - - - Initializes the class with a functor - that will be used to instantiate the method finder that will be used in the search. - - The functor that will be used to instantiate the method finder. - - - - Uses the to determine which member to use from - the concrete type. - - The target type. - The container that contains the member values that will be used to invoke the members. - The that describes the target method. - A member instance if a match is found; otherwise, it will return null. - - - - Determines the that will be used - in the method search. - - - - - - - - - The method used to retrieve the default result if no - other alternative is found. - - The target type that contains the default member. - The default member result. - - - - Lists the members associated with the . - - The target type that contains the type members. - A list of members that belong to the concrete type. - - - - Represents the default implementation of the class. - - - - - Initializes the class with the default values. - - - - - Initializes the class using the custom method finder. - - The functor that will be used to instantiate the method finder. - - - - Returns the constructors that belong to the . - - The type that contains the list of constructors. - A list of constructors that belong to the . - - - - Returns the parameterless constructor in case the search fails. - - The target type that contains the default constructor. - The default constructor. - - - - Represents a class that determines which method best matches the - services currently in the target container. - - The method type to search. - - - - Determines which method best matches the - services currently in the target container. - - The list of methods to search. - The that describes the target method. - Returns the method with the most resolvable parameters from the target instance. - - - - Determines which item among the is the best match. - - The list of possible matches. - The best match if found; otherwise, it should return null. - - - - Adds additional to the fuzzy search list. - - The list of methods to rank. - The that describes the target method. - - - - Attempts to match the against the list of methods. - - The list of items currently being compared. - The set of instances that describe each supplied argument type. - - - - A type that uses a - instance to find a method with the most resolvable parameters. - - The method type that will be searched. - - - - Examines a instance - and determines if it can be instantiated with the services embedded in - the target . - - The that represents the constructor to be examined. - The container that contains the services that will be used to instantiate the target type. - Indicates the index that - marks the point where the user-supplied arguments begin. - - - - Adds additional to the fuzzy search list. - - The list of methods to rank. - The that describes the target method. - - - - Initializes the target with the host container. - - The host instance. - - - - Gets the value indicating the service container that will be used in the - method search. - - - - - A type that represents a service instance returned by a container. - - - - - Gets the value indicating the instance - that describes the service instance itself. - - - - - Gets the value indicating the service instance itself. - - - - - Represents the default implementation of the interface. - - - - - Counts the number of occurrences of a specific type. - - - - - Increments the count for the current . - - The type being counted. - - - - Returns the number of occurrences of a specific . - - The type being counted. - The number of occurrences for the given type. - - - - Decrements the count for the current . - - The type being counted. - - - - Resets the counts back to zero. - - - - - Gets the value indicating the types that are - currently being counted. - - - - - Represents a type that can create service instances from a given instance and . - - - - - Creates a service instance using the given and instance. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents an type that generates an object instance from an existing instance. - - - - - Initializes the class with the target . - - The instance that will be returned every time the method is called. - - - - Returns the object instance that given when the class instance was initialized. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents the default implementation for the - - - - Creates a service instance using the given and instance. - - The instance that describes the context of the service request. - The instance that will be used to instantiate the service type. - A valid service instance. - - - - Represents a class that determines the behavior a instance. - - - - - Causes the container to instantiate the service using the given - service request. If the service type cannot be created, it will simply return null. - - A valid object reference if the service can be created; otherwise, it will return null - - - - Represents the default implementation for the interface. - - - - - Initializes the class with the given instance. - - The target service container. - - - - Initializes the class with the given instance. - - The target service container. - The instance responsible for instantiating service types. - The that will allow users to intercept a given service request. - The instance that will handle the results of a given service request. - - - - Instantiates the service described by the . - - The that describes the service that needs to be instantiated. - A valid object reference if the service can be found; otherwise, it will return null. - - - - A strongly-typed version of . Allows users - to create their own service instances - - The instance type that can be created by this factory. - - - - Creates a service instance using the given instance. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - A factory base class that combines both the IFactory and - the IFactory<T> interfaces into a single class. - - - - - - - Creates a service instance using the given container. - - - developers can inherit from this class - instead of having to write their own custom factories - from scratch. This should cut down on some of the boilerplate - code necessary to get a factory class up and running. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - Represents a class that uses a - to instantiate a service instance. - - - - - Initializes the class with the given - The delegate that will be used to instantiate the factory. - - - - Instantiates the service type using the given delegate. - - The that describes the service that needs to be created. - The service instance. - - - - An adapter that converts strongly-typed IFactory<T> - instances into an equivalent IFactory instance. - - The service type to create. - - - - Creates the factory adapter using the given - IFactory<T> instance. - - The factory instance that - will be called every time the method - is called. - - - - Overridden. Uses the strongly-typed factory - to create the service instance every time - the method - is called. - - The instance that describes the requested service. - An object instance that represents the service to be created. This cannot be null. - - - - The factory that will create the service instance. - - - - - A class that converts a delegate into an instance. - - - - - Initializes the class with the given . - - The delegate that will be used to instantiate a type. - - - - Instantiates an object reference using the given factory method. - - The instance that describes the requested service. - A non-null object reference that represents the service type. - - - - A factory that uses an existing object reference - instead of creating a new service. - - - - - Creates a factory using the existing . - - The existing object reference that the factory will return. - - - - A method that returns the existing object reference associated with - this factory. - - The instance that describes the requested service. - A non-null object reference. - - - - Represents an class that instantiates a factory only on request. - - - - - Instantiates the class with the factory functor method. - - The functor that will be responsible for instantiating the actual factory. - - - - Instantiates the actual factory instance and uses it to instantiate the target service type. - - The that describes the service to be created. - A valid service instance. - - - - Represents a factory that returns strongly-typed IFactory instances. - - The service type to be created. - - - - Initializes the factory with the given functor. - - The functor that will instantiate the actual factory instance. - - - - Instantiates the service type using the actual factory. - - The instance that describes the service to be created. - - - - - - A factory that creates a unique service instance every time - the method is called. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a OncePerRequestFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new OncePerRequestFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - This method creates a new service instance every time - it is invoked. - - The instance that describes the requested service. - A non-null object reference. - - - - A factory that creates service instances that are unique - from within the same thread as the factory itself. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a OncePerThreadFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new OncePerThreadFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - Creates the service instance using the given - instance. Every service instance created from this factory will - only be created once per thread. - - The instance that describes the requested service. - A a service instance as thread-wide singleton. - - - - A factory that creates Singletons. Each service that this factory creates will only be created once per concrete type. - - The type of service to instantiate. - - - - Initializes the factory class using the - parameter as a factory delegate. - - - The following is an example of initializing a SingletonFactory<T> - type: - - // Define the factory delegate - Func<IFactoryRequest, ISomeService> createService = container=>new SomeServiceImplementation(); - - // Create the factory - var factory = new SingletonFactory<ISomeService>(createService); - - // Use the service instance - var service = factory.CreateInstance(null); - - // ... - - The delegate that will be used to create each new service instance. - - - - A method that creates a service instance as a singleton. - - The instance that describes the requested service. - A service instance as a singleton. - - - - Extends the instance with a few helper methods. - - - - - Creates an object instance. - - The target factory. - The requested service type. - The target service contaienr. - The additional arguments that will be used to create the service instance. - A service instance. - - - - Represents the default implementation of the interface. - - - - - Gets the value indicating the service container that made the service request. - - - - - Gets the value indicating the service name. - - A null service name indicates that no service name was given during the request. - - - - Gets the value indicating the requested service type. - - - - - Gets the value indicating the additional arguments given in the factory request. - - - - - Represents a class that stores factory instances. - - - - - Determines which factories should be used - for a particular service request. - - The object that describes the target factory. - A factory instance. - - - - Adds a to the current object. - - The object that describes the target factory. - The instance that will create the object instance. - - - - Determines whether or not a factory exists in storage. - - The object that describes the target factory. - Returns true if the factory exists; otherwise, it will return false. - - - - Gets a value indicating the list of objects - that describe each available factory in the current - instance. - - - - - Represents the default base implementation of the class. - - - - - Determines which factories should be used - for a particular service request. - - The object that describes the target factory. - A factory instance. - - - - Adds a to the current object. - - The object that describes the target factory. - The instance that will create the object instance. - - - - Determines whether or not a factory exists in storage. - - The object that describes the target factory. - Returns true if the factory exists; otherwise, it will return false. - - - - Gets a value indicating the list of objects - that describe each available factory in the current - instance. - - - - - Represents an instance that adds generics support to the implementation. - - - - - Determines whether or not an instance - can be used to create the given service described by the object. - - The object that describes the service to be created. - - True if the service can be created; otherwise, it will return false. - - - - Obtains the instance that can instantiate the - service described by the object instance. - - The object that describes the service to be created. - A instance if the service can be instantiated; otherwise, it will return false. - - - - An extension class that adds a few helper methods to the - interface. - - - - - Adds a factory to the current instance. - - The object that will store the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Determines which factories should be used - for a particular service request. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameter values that this factory type will use to instantiate the service. - A factory instance. - - - - Determines which factories should be used - for a particular service request. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - A factory instance. - - - - Determines whether or not a factory exists in storage. - - The object that holds the target factory. - The name that will be associated with the target factory. - The service type that the factory will be able to create. - The list of additional parameters that this factory type will support. - Returns true if the factory exists; otherwise, it will return false. - - - - A class that provides the most basic functionality for an interceptor. - - - - - The default constructor. - - - - - Initializes the class with the instance. - - The instance that will invoke the target method. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - Intercepts a method call using the given - instance. - - The instance that will - contain all the necessary information associated with a - particular method call. - The return value of the target method. If the return type of the target - method is , then the return value will be ignored. - - - - Gets the value indicating the instance - that will be used to invoke the target method. - - - - - An interceptor class that instantiates a target type only when - the methods for that target are invoked. - - The type of object to intercept. - - - - Initializes the class with the - factory method. - - The functor that will be used to create the actual object instance. - - - - A method that uses the given factory method to provide a target - for the method currently being invoked. - - The object that describes the current invocation context. - The target itself. - - - - Intercepts the method and initializes the target instance before the - actual object is invoked. - - The that describes the execution context. - The return value of the target method. - - - - Adapts a instance into an . - - - - - Initializes the class. - - The functor responsible for obtaining the target instance. - The method invoker. - The target instance. - - - - Converts the call to to an - method call. - - The that describes the context of the method call. - The return value from the target method. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - The class responsible for loading interceptors marked with the - class. - - - - - Initializes the class with the given . - - The instance that will be responsible for loading the instance itself. - - - - Loads an derived class into a particular instance - so that the current interceptor type can intercept calls made to services created from the given - target container. - - The interceptor type. - By default, this will always return an empty set of container actions. The actual interceptor itself will be injected at the end of the postprocessor chain. - - - - Generates a proxy instance from an existing instance. - - The instance that describes the proxy type that must be generated. - The functor that will create the interceptor which will handle all calls made to the proxy instance. - A service proxy. - - - - Determines whether or not a target type is an interceptor. - - The target type currently being tested. - Returns true if the is an interceptor; otherwise, it will return false. - - - - The attribute class used to indentify interceptor classes. - - - - - Initializes the class with the given . - - The target type that will be intercepted. - - - - Initializes the class with the given and . - - The name of service that will be intercepted. - The target type that will be intercepted. - - - - Gets the value indicating the name of the service to intercept. - - - - - Gets the value indicating the target type that will be intercepted. - - - - - An interceptor that intercepts instances - and replaces the original target instance with a surrogate instance. - - - - - Initializes the class with a functor that can provide the actual target instance. - - The that will provide the target instance that will be used for the method invocation. - The method invoker. - The instance that describes the current execution context. - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - A implementation that inserts - instances at the beginning of a - loading sequence. - - - - - Initializes the class with the given instance. - - The postprocessor that will inject proxies in place of actual service requests. - - - - Injects a into the target container. - - The service container that will hold the . - - - - Does absolutely nothing. - - The target container. - - - - Represents a class that automatically injects a proxy instance - instead of an actual service instance. - - - - - Initializes the class with the - and the factory method. - - The predicate that will determine which service requests will be proxied. - The factory method that will generate the proxy instance itself. - - - - A method that injects service proxies in place of the actual . - - The instance that describes the service request. - - - - Represents a loader that reads a file and converts it - into an equivalent set of a set of - instances that can be applied to a particular - instance of an class. - - - - - An interceptor class that redirects calls to another interceptor. - - - - - Gets the target object instance. - - The instance that describes the current execution context. - - - - Represents a class that keeps track of all the disposable objects - created within a service container and disposes them when - the scope itself has been disposed. - - - - - A class that adds late binding support to any CLR object. - - - - - Invokes a method on the target . - - The target instance that will be used to invoke the method. - The name of the target method. - The arguments that will be passed to the target method. - The method return value. - - - - Invokes a method on the target using the given and . - - The target instance. - The name of the target method. - The that describes the target method. - The method return value. - - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The type argument that will be passed to the target method. - The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The third type argument that will be passed to the target method.The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The first type argument that will be passed to the target method. - The second type argument that will be passed to the target method. - The third type argument that will be passed to the target method.The fourth type argument that will be passed to the target method.The arguments that will be passed to the target method.The method return value. - - - Invokes a method on the target using the given . - - The target instance. - The name of the target method. - The type arguments that will be passed to the target method. - The arguments that will be passed to the target method. - The method return value. - - - - Represents a class that keeps track of all the disposable objects - created within a service container and disposes them when - the scope itself has been disposed. - - - - - Disposes the services that have been created while the scope has been active. - - - - - Monitors the for any services that are created and automatically disposes them - once the is disposed. - - The that describes the service being instantiated. - - - - Inserts the scope into the target container. - - The container that will hold the scope instance. - - - - Represents a service container with additional - extension points for customizing service instances - - - - - Initializes the container with the default services. - - - - - Initializes the container with a custom type. - - The instance that will be responsible for generating service instances. - The instance responsible for determining which factory instance will instantiate a given service request. - - - - Adds an instance and associates it - with the given service type and - service name. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - The instance that will create the object instance. - - - - Adds an instance and associates it - with the given service type. - - The service type to associate with the factory - The list of additional parameters that this factory type will support. - The instance that will be responsible for creating the service instance - - - - Determines whether or not the given - can be instantiated by the container. - - The type of service to instantiate. - The list of additional parameters that this factory type will support. - Returns true if the service exists; otherwise, it will return false. - - - - Overridden. Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - - This overload of the GetService method has been overridden - so that its results can be handled by the postprocessors. - - - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Causes the container to instantiate the service with the given - service type. If the service type cannot be created, then an - exception will be thrown if the property - is set to false. Otherwise, it will simply return null. - - The name of the service to instantiate. - The service type to instantiate. - The additional arguments that will be used to instantiate the service type. - If successful, it will return a service instance that is compatible with the given type; - otherwise, it will just return a null value. - - - - Determines whether or not a service can be created using - the given service name - and service type. - - The name of the service to associate with the given instance. - The type of service that the factory will be able to create. - The list of additional parameters that this factory type will support. - Returns true if the service exists; otherwise, it will return false. - - - - Gets or sets a System.Boolean value - that determines whether or not the container should throw - a if a requested service - cannot be found or created. - - - - - Gets the value indicating the instance - that will be used to store each instance. - - - - - The list of postprocessors that will handle every - service request result. - - - - - The list of preprocessors that will handle - every service request before each actual service is created. - - - - - The list of services currently available inside the container. - - - - - The exception thrown when a service type is - requested from a container and that named container - is unable to find or create that particular service instance. - - - - - Initializes the service exception using the - given as - the service that was not found. - - The service type being requested. - - - - The error message that this particular exception - will display. - - - - - The exception thrown when a service name and a service type is - requested from a named container and that named container - is unable to find or create that particular service instance. - - - - - Initializes the service exception using the - given as - the service that was not found. - - The service type being requested. - The name of the service being requested. - - - - The error message that this particular exception - will display. - - - - - Represents the default implementation of the ServiceInfo class. - - - - - Initializes the class with the given - and . - - The name of the service. - The type of service that can be created. - - - - Initializes the class with the given - and . - - The name of the service. - The type of service that can be created. - The parameter types required by the given service. - - - - Displays the name of the current service and the current service type. - - The name of the current service and the current service type. - - - - Determines if the other object is equal to the current instance. - - The other object that will be used in the comparison. - Returns true if both instances have the same service name, implement the same service type and have the same arguments; otherwise, it will return false. - - - - The name of the service being created. By default, this property is blank. - - - - - The type of service being requested. - - - - - Gets a value indicating the list of arguments required by this particular service. - - - - - Reprsents the default implementation of the interface. - - - - - Initializes the class. - - The name of the requested service. - The requested service type. - The proposed set of arguments that will be given to the factory. - The instance that will be used to handle the service request. - The host container. - - - - Gets the value indicating the original arguments that - were given during the service request. - - - - - Gets the value indicating the original instance - that will be used to handle the service request. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the actual arguments that - will be used for the service request. - - - - - Gets or sets the value indicating the actual instance - that will be used to handle the service request. - - - - - Represents the results returned when a service request - is made against an instance. - - - - - The name of the service being created. By default, this property is blank. - - - - - The raw object reference created by the container itself. - - - - - The result that will be returned from the container - instead of the . - - If this property is null, then the original result will be used. - - - - - The type of service being requested. - - - - - The container that will handle the service request. - - - - - Gets or sets the value indicating the additional arguments that - were used during the service request. - - - - - Provides the default implementation for the - interface. - - - - - Initializes the class with the default values. - - - - - Generates a method body for the . - - The method currently being intercepted. - The target method that will contain the new method body. - - - - Emits the IL instructions to obtain an instance for the proxy type. - - The responsible for emitting the method body. - The proxy type. - The getter method for the interceptor. - - - - Causes the to make the method throw a - if the method cannot be found. - - The responsible for emitting the method body. - - - - Saves the ref arguments of a given method using the - from the - object. - - The that will emit the method body. - The parameters of the target method. - The local variable that contains the instance. - The local variable that will store the arguments from the instance. - - - - Initializes the MethodBodyEmitter class. - - - - - - - The instance that - - - - - A type that generates - proxies that forward all virtual method calls to a - single interceptor. - - - - - Initializes the current class with the default values. - - - - - Generates a proxy that forwards all virtual method calls - to a single instance. - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - Initializes the current instance - with the container. - - The instance that will hold the current instance. - - - - Gets or sets the interface - which will emit the actual implementation of the IProxy interface. - - - - - Gets or sets the - instance that will determine which methods - will be proxied by the proxy builder. - - - - - The instance - that will be responsible for generating each method - for the current target type. - - - - - Provides the default implementation for the - interface. - - - - - Determines which interfaces a given type should implement. - - The base type that holds the list of interfaces to implement. - The list of interfaces already being implemented. - - - - Represents the default class implementation for the - interface. - - - - - Determines which methods can be proxied from - the given and . - - By default, only public virtual methods will be proxied. - The base class of the proxy type currently being generated. - The list of interfaces that the proxy must implement. - A list of objects that can be proxied. - - - - Represents the default implementation of the interface. - - - - - Determines whether or not the cache contains an existing proxy type - that is derived from the and implements - the given . - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns true if the proxy type already exists; otherwise, it will return false. - - - - Retrieves an existing proxy type from the cache. - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns a valid if the type already exists; otherwise, it might return null or opt to throw an exception. - - - - Stores a proxy type in the cache. - - The proxy type to be stored. - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - - - - Represents a cached proxy type. - - - - - Provides the basic implementation for a proxy factory class. - - - - - Initializes the proxy factory with the default values. - - - - - Creates a proxy type using the given - as the base class - and ensures that the proxy type implements the given - interface types. - - The base class from which the proxy type will be derived. - The list of interfaces that the proxy will implement. - A forwarding proxy. - - - - Initializes the instance - with the container. - - The instance that will hold the ProxyFactory. - - - - Gets or sets the type that will be - responsible for determining which interfaces - the proxy type should implement. - - - - - The instance that is - responsible for generating the proxy type. - - - - - The instance that will be used to - ensure that the generated assemblies are valid. - - - - - Gets or sets a value indicating the - instance that will be used to cache previous proxy generation runs. - - - - - A class that provides the default implementation - for the IProxy interface. - - - - - Constructs a type that implements the - interface. - - The module that will hold the target type. - The type that will implement the interface. - - - - Represents the default implementation of the - interface. - - - - - Initializes the class with the default property values. - - - - - Creates a method that matches the signature defined in the - parameter. - - The type that will host the new method. - The method from which the signature will be derived. - - - - Matches the generic parameters of a target method - The generic method that contains the generic type arguments. - The array of objects that describe the generic parameters for the current method. - - - - Initializes the class with the container. - - The instance that will create the class instance. - - - - The instance that will be - responsible for generating the method body. - - - - - Represents a helper class that deserializes proxy instances. - - - - - Initializes a new instance of the ProxyObjectReference class. - - The class that contains the serialized data. - The that describes the serialization state. - - - - Returns the deserialized proxy instance. - - The that describes the serialization state. - - - - - - Serializes the proxy to a stream. - - This method override does nothing. - The class that contains the serialized data. - The that describes the serialization state. - - - - Represents a type that can create serializable proxy types. - - - - - Generates a proxy that forwards all virtual method calls - to a single instance. - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - A class that adds proxy support to the class - - - - - Creates a duck type that redirects its calls to the - given . - - The target instance that will be invoked once the duck type instance has been invoked. - The additional list of interfaces that will be implemented by the duck type. - The type parameter that describes the duck type. - The return value from the target method. - - - - Creates a duck type that redirects its calls to the - given . - - The target instance that will be invoked once the duck type instance has been invoked. - The that describes the duck type. - The additional list of interfaces that will be implemented by the duck type. - The return value from the target method. - - - - Adapts an instance to an - instance. - - - - - Initializes the CallAdapter class with the instance. - - The instance that will be called every time the interceptor is invoked. - - - - Intercepts a method call and passes the arguments - down to the instance. - - The instance that describes the method currently being executed. - The return value of the target method. - - - - A class that converts a functor into an instance. - - - - - Initializes the class with the given functor. - - The functor that will be invoked every time a method is called on the proxy type. - - - - A method that redirects the method calls to - the functor instance. - - The instance that describes the context of the method call. - The return value from the target method. - - - - A class that is responsible for determining - which interfaces a given type should implement. - - - - - Determines which interfaces a given type should implement. - - The base type that holds the list of interfaces to implement. - The list of interfaces already being implemented. - - - - Represents a class that is responsible for - constructing method bodies. - - - - - Generates the method body for the target method. - - The original method that the will be based on. - The method that will contain the method body to be emitted. - - - - Represents a class that determines which methods should be proxied - by a given proxy factory. - - - - - Determines which methods should be proxied - by a given proxy factory. - - The base class of the proxy type currently being generated. - The list of interfaces that the proxy must implement. - A list of objects that can be proxied. - - - - Represents a class that generates methods based on other existing - methods. - - - - - Creates a method that matches the signature defined in the - parameter. - - The type that will host the new method. - The method from which the signature will be derived. - - - - Represents an interface for classes that store results from an - instance. - - - - - Determines whether or not the cache contains an existing proxy type - that is derived from the and implements - the given . - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns true if the proxy type already exists; otherwise, it will return false. - - - - Retrieves an existing proxy type from the cache. - - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - Returns a valid if the type already exists; otherwise, it might return null or opt to throw an exception. - - - - Stores a proxy type in the cache. - - The proxy type to be stored. - The base type of the dynamically-generated proxy type. - The list of interfaces that the generated proxy type must implement. - - - - Represents a dynamically generated proxy instance. - - - - - The interceptor that will handle all - calls made to the proxy instance. - - - - - Represents a class that is responsible - for generating proxy types. - - - - - Generates a proxy that must be derived - from the and implement - the list of . - - The base class of the type being constructed. - The list of interfaces that the new type must implement. - The module that will hold the brand new type. - The that represents the type to be created. - - - - Represents the basic interface for creating - dynamic proxy instances. - - - - - Generates a dynamic proxy type - that derives from the - and implements the given interfaces. - - The base class from which the generated dynamic proxy will be derived. - The list of interfaces that the generated dynamic proxy will implement. - A dynamic proxy type. - - - - Extends the class to support - instantiating proxy types. - - - - - Uses the to create a proxy instance - that directly derives from the - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The IProxyFactory instance that will be used to generate the proxy type. - The type that will be intercepted by the proxy. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The IProxyFactory instance that will be used to generate the proxy type. - The type that will be intercepted by the proxy. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - The instance, in turn, will be used - to intercept the method calls made to the proxy itself. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The instance that will be used to intercept method calls made to the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - - - The will be used to intercept method calls - performed against the target instance. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The functor that will invoked every time a method is called on the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Uses the to create a proxy instance - that directly derives from the type - and implements the given . - - - The will be used to intercept method calls - performed against the target instance. - - The type that will be intercepted by the proxy. - The IProxyFactory instance that will be used to generate the proxy type. - The functor that will invoked every time a method is called on the proxy. - The additional list of interfaces that the proxy will implement. - A valid proxy instance. - - - - Represents a class that can configure - a target of type - using an input type of . - - The target type to configure. - The input that will be used to configure the target. - - - - Generates a set of instances - using the given . - - The input that will be used to configure the target. - A set of instances. This cannot be null. - - - - Determines if the PluginLoader can load the . - - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - A class that reads an assembly and converts it into a set of actions - that can be used to build the list of actions against the - type. - - The target type. - - - - Initializes the class with a set of - instances that will be used to load the target assembly. - - The delegate that will return the actual list of typeloaders. - - - - Loads the target assembly and creates an action that can - create the list of actions which will modify the instance. - - The target assembly. - The list of actions which will modify the list of actions that will be executed against the instance. - - - - Determines if an instance can be loaded. - - The target assembly. - Returns true if the assembly is not null. - - - - Generates a list of actions from a target assemby. - - The target assembly. - The list that will store the resulting actions. - - - - Generates the list of - instances which will be used to configure a target instance. - - The instance that holds the configuration information. - The list that will hold the actions which will configure the container. - - - - The instance that will - determine which types will be extracted from an assembly. - - - - - Represents a class that loads assemblies into memory - from disk. - - - - - Loads the target assembly into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Represents a class that loads assemblies into memory - from disk. - - - - - Loads the target assembly into memory. - - The full path and filename of the assembly to load. - A loaded instance. - - - - Represents a specific - type that can load configuration information from an assembly - and apply it to a instance. - - The target type to configure. - - - - The instance that will load - the target assemblies. - - - - - The list of ActionLoaders that will be used to - configure the target. - - - - - Represents a loader class that takes - instances as input and generates - instances that can be used to configure a - instance. - - The target type to configure. - - - - Initializes the class with the default property values. - - - - - Determines whether or not the current type loader - instance can load the current file type. - - - This class only loads assemblies with the ".dll" extension. - - The filename and full path of the target file. - Returns true if the file can be loaded; otherwise, the result is false. - - - - Reads an input file using the given - and converts it into a set of - instances that can be applied to a target class instance.. - - This class can only load valid .NET Assemblies. - The target file to be loaded. - A set of instances to apply to a target type. - - - - The instance that will load - the target assemblies. - - - - - Gets or sets the value indicating the action loader - responsible for reading an assembly and converts it to - a list of actions to be performed against the target type. - - - - - The list of ActionLoaders that will be used to - configure the target. - - - - - Implements the basic functionality of a plugin loader. - - The target type being configured. - The attribute type that will be used to mark a type as a plugin. - - - - Determines if the plugin loader can load the . - - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Generates a set of instances - using the given . - - The input that will be used to configure the target. - A set of instances. This cannot be null. - - - - Adds additional support methods to the standard System.Collection classes. - - - - - Determines whether or not an element exists that matches the given - . - - The element type. - The list of items being searched. - The predicate that will be used to describe the matching items. - Returns true if at least one match is found; otherwise, it will return false. - - - - Loads a list of types that match the given target type. - - The target type to be loaded. - The list that will hold the instances of the target type. - The directory that will be used to scan for assemblies that contain the target type. - The wildcard pattern that describes the files to be loaded. - - - - Represents a class that can list the files - in a given directory. - - - - - Returns the names of the files in the specified directory - that match the specified search pattern. - - The directory to search. - The search string to match against the names of the files in the . - The list of files that match the and - - - - A class that lists the contents of a given directory. - - - - - Returns a list of files that match the - from the given directory . - - The target directory to search. - The search string to match against the names of the files in the . - The list of files that match the and - - - - Represents classes that need to be initialized - every time a particular - instance creates that type. - - - - - Initializes the target with the - particular instance. - - The instance that will hold the target type. - - - - Represents a generic interface for an abstract loader - that can read configuration information from disk - and apply it to a instance. - - The class type being configured. - - - - Loads the configuration using the files listed in - the target that match - the given file pattern. - - The full path of the location to scan. - The wildcard file pattern string to use when specifying the target files. - - - - Configures the instance - using the configuration currently loaded from disk. - - The instance to be configured. - - - - Clears the currently loaded configuration - and resets the loader back to its defaults. - - - - - The list of - instances that will be used to - signal the beginning and end of the - load sequence. - - - - - The list of - instances responsible for configuring the instance. - - - - - Gets or sets the instance - responsible for returning a list of filenames - to the loader for processing. - - - - - The custom list of actions that will be - performed prior to the beginning of a load operation. - - - - - The list of actions that will execute - every time a target instance is configured. - - - - - Represents a component that can monitor - a target instance as it loads. - - The target instance type. - - - - Signals the beginning of a load. - - The target being loaded. - - - - Signals the end of a load. - - The target being loaded. - - - - Represents a type that can extract - objects from an instance. - - - - - Returns a set of types from a given assembly. - - The that contains the target types. - An of types from the target assembly. - - - - Represents an action loader that can load collections from types embedded within a given assembly. - - The collection item type. - - - - Creates the list of actions that load the target collection into memory. - - The source type. - A list of actions that load the target collection into memory. - - - - Determines whether or not the given type can be loaded into memory. - - The source type. - Returns true if the type can be loaded into memory; otherwise, it will return false. - - - - Represents a generic loader class that can - load multiple delegates from multiple files and - apply them to a particular instance. - - - - - - - Initializes the target with the default settings. - - - - - Loads the container with the files listed in - the target that match - the given file pattern. - - The full path of the location to scan. - The wildcard file pattern string to use when specifying the target files. - - - - Loads the current configuration into the - instance. - - - - - - - Determines whether or not a specific plugin should be loaded. - - The target plugin to be loaded. - - true if the plugin should be loaded; otherwise, it will return false. - - - - Clears the currently loaded configuration - and resets the loader back to its defaults. - - - - - Loads the current file - using the list of associated . - - The full path and filename being loaded. - - - - The list of actions that will execute - every time a target instance is configured. - - - - - The custom list of actions that will be - performed prior to the beginning of the first load operation. - - - These actions will be performed only once per reset. - - - - - The list of - instances that will be used to - signal the beginning and end of the - load sequence. - - - - - The list of - instances responsible for configuring the target instance. - - - - - Gets or sets the instance - responsible for returning a list of filenames - to the loader for processing. - - - - - Marks a class as a loader plugin type. - - - - - Represents a loader class that can load - instances - marked with a particular - type. - - The target type being configured. - The attribute type that marks a type as a plugin type. - - - - Determines if the plugin loader can load the . - - The target type must implement before it can be loaded. - The target type that might contain the target instance. - - true if the type can be loaded; otherwise, it returns false. - - - - Loads a set of actions from a - instance. - - The target type to scan. - A set of actions which will be applied to the target instance. - - - - A class that implements the basic functionality of - a loader plugin. - - The type being loaded. - - - - Signals the beginning of a load. - - The target being loaded. - - - - Signals the end of a load. - - The target being loaded. - - - - A plugin class that provides the basic implementation - for plugins that work with instances. - - The target type being configured. - - - - Searches the loader for an - instance and uses its derived classes to initialize - the assembly target loader. - - The instance that will hold the plugin. - - - - Initializes the instance - with the given instance. - - The loader being configured. - The assembly loader that will load the types into the loader itself. - - - - Adds helper methods that return information about the current - runtime. - - - - - Gets a value indicating if the application is - currently running on the Mono platform. - - - - - Represents a type that can extract - objects from an instance. - - - - - Returns a set of types from a given assembly. - - The that contains the target types. - An of types from the target assembly. - - - - A class that adds extension methods to the - class. - - - - - Converts an - into a running . - - The to convert. - An that represents the instance. - - - - - Saves the assembly to disk. - - The target assembly definition. - The output file name. - - - - Saves the assembly to disk. - - The target assembly definition. - The destination file stream. - - - - A class that extends the class - with helper methods that make it easier to save - information about the method currently being implemented. - - - - - Emits a Console.WriteLine call to using the current CilWorker that will only be called if the contents - of the target variable are null at runtime. - - The target CilWorker. - The text that will be written to the console. - The target variable that will be checked for null at runtime. - - - - Emits a Console.WriteLine call using the current CilWorker. - - The target CilWorker. - The text that will be written to the console. - - - - Pushes the current onto the stack. - - The that will be used to create the instructions. - The method that represents the that will be pushed onto the stack. - The module that contains the host method. - - - - Gets the declaring type for the target method. - - The target method. - The declaring type. - - - - Pushes a instance onto the stack. - - The that will be used to create the instructions. - The type that represents the that will be pushed onto the stack. - The module that contains the host method. - - - - Pushes the current onto the stack. - - The that will be used to create the instructions. - The field that represents the that will be pushed onto the stack. - The module that contains the target field. - - - - Pushes the arguments of a method onto the stack. - - The that will be used to create the instructions. - The module that contains the host method. - The target method. - The local variable that will hold the array of arguments. - - - - Pushes the stack trace of the currently executing method onto the stack. - - The that will be used to create the instructions. - The module that contains the host method. - - - - Saves the generic type arguments that were used to construct the method. - - The that will be used to create the instructions. - The target method whose generic type arguments (if any) will be saved into the local variable. - The module that contains the host method. - The local variable that will store the resulting array of objects. - - - - Saves the current method signature of a method into an array - of objects. This can be used to determine the - signature of methods with generic type parameters or methods that have - parameters that are generic parameters specified by the type itself. - - The that will be used to create the instructions. - The target method whose generic type arguments (if any) will be saved into the local variable . - The module that contains the host method. - The local variable that will store the current method signature. - - - - Converts the return value of a method into the target type. - If the target type is void, then the value will simply be popped from the stack. - - The that will be used to create the instructions. - The module that contains the host method. - The method return type itself. - - - - Emits the proper Stind (store indirect) IL instruction for the . - - The target that will emit the IL. - The type of data being stored. - - - - Stores the current parameter value - into the array of method . - - The that will be used to create the instructions. - The local variable that will store the method arguments. - The array index that indicates where the parameter value will be stored in the array of arguments. - The current argument value being stored. - - - - Obtains the method definition that contains the current . - - The responsible for the method body. - A method definition. - - - - Obtains the module that contains the current . - - The responsible for the method body. - The host module. - - - - Obtains the declaring type for a given type reference. - - The declaring ty pe. - The actual declaring type. - - - - Represents a type that can construct - types. - - - - - Constructs a using - the given instance. - - The module that will hold the actual type. - The type being constructed. - - - - A class that extends the - class with features similar to the features in the - System.Reflection.Emit namespace. - - - - - Returns the instance - associated with the body of the target method. - - The target method to be modified. - The instance that points to the instructions of the method body. - - - - Adds a local variable - instance to the target method definition. - - The instance which will contain the local variable. - The object type that describes the type of objects that will be stored by the local variable. - A that represents the local variable itself. - - - - Adds a named local variable - instance to the target method definition. - - The instance which will contain the local variable. - The name of the local variable. - The object type that describes the type of objects that will be stored by the local variable. - - - - - - Adds a set of parameter types to the target . - - The target method. - The list of types that describe the method signature. - - - - Assigns the for the target method. - - The target method. - The instance that describes the return type. - - - - Adds a generic parameter type to the . - - The target method. - The parameter type. - A that represents the generic parameter type. - - - - Adds a local variable - instance to the target method definition. - - The object type that describes the type of objects that will be stored by the local variable. - The instance which will contain the local variable. - A that represents the local variable itself. - - - - Adds a named local variable - instance to the target method definition. - - The object type that describes the type of objects that will be stored by the local variable. - The instance which will contain the local variable. - The name of the local variable. - A that represents the local variable itself. - - - - A class that provides helper extension methods - for the class. - - - - - Defines a new class and adds it to the module. - - The module which will hold the new created type. - The name of the class to create. - The namespace that will contain the new class. - The for the given type. - The base class of the new type. - A representing the new class being created. - - - - Imports a constructor with the given - into the target . - - The type that holds the target constructor - The that will import the target constructor. - The list of objects that describe the signature of the constructor. - A that represents the constructor itself. - - - - Imports a method with a particular from the - into the target module. - - The instance that will import the actual method. - The name of the method being imported. - The instance that holds the target method. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The instance that will import the actual method. - The name of the method being imported. - The instance that holds the target method. - The that describes the visibility and behavior of the target method. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The target type that holds the target method. - The instance that will import the actual method. - The name of the method being imported. - A that represents the method being imported. - - - - Imports a method with a particular , , and from the - into the target module. - - The target type that holds the target method. - The list of objects that describe the method signature. - The instance that will import the actual method. - The name of the method being imported. - A that represents the method being imported. - - - - Imports a method with a particular and from the - into the target module. - - The target type that holds the target method itself. - The instance that will import the actual method. - The name of the method being imported. - The that describes the visibility and behavior of the target method. - A that represents the method being imported. - - - - Imports a target of type into the - instance. - - The type that will be imported into the instance itself. - The module that will store the imported type. - A instance that represents the imported type. - - - - Imports a target type into the - instance. - - The type that will be imported into the instance itself. - The module that will store the imported type. - A instance that represents the imported type. - - - - Returns a that matches the given . - - The target module to search. - The name of the target type. - A type that matches the given type name. If the type cannot be found, then this method will return null. - - - - A class that extends the class - to emulate features found in the System.Reflection.Emit namespace. - - - - - Determines whether or not a parameter is passed by reference. - - - - - - - - - A class that extends the - class with features similar to the features in the - System.Reflection.Emit namespace. - - - - - Adds a new method to the target type. - - The type that will hold the newly-created method. - The parameter that describes the characteristics of the method. - The name to be given to the new method. - The method return type. - The calling convention of the method being created. - The list of argument types that will be used to define the method signature. - A instance that represents the newly-created method. - - - - Adds a new method to the target type. - - The type that will hold the newly-created method. - The parameter that describes the characteristics of the method. - The name to be given to the new method. - The method return type. - The list of argument types that will be used to define the method signature. - The list of generic argument types that will be used to define the method signature. - A instance that represents the newly-created method. - - - - Adds a default constructor to the target type. - - The type that will contain the default constructor. - The default constructor. - - - - Adds a default constructor to the target type. - - The base class that contains the default constructor that will be used for constructor chaining.. - The type that will contain the default constructor. - The default constructor. - - - - Adds a rewritable property to the target type. - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - - - - Adds a rewritable property to the target type. - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - - - - Adds a rewriteable property to the target type - using an existing and . - - The target type that will hold the newly-created property. - The name of the property itself. - The instance that describes the property type. - The property getter method. - The property setter method. - - - - Retrieves the method that matches the given . - - The target type to search. - The name of the target method. - A method that matches the given . If the method is not found, then it will return a null value. - - - - Resolves the backing field for a generic type declaration. - - The name of the field to reference. - The type that holds the actual field. - The that describes the property type being referenced. - A that points to the actual backing field. - - - - Creates a property getter method implementation with the - as the return type. - - Represents the return type for the getter method. - The getter method name. - The method attributes associated with the getter method. - The field that will store the instance that the getter method will retrieve. - A representing the getter method itself. - - - - Creates a property setter method implementation with the - as the setter parameter. - - Represents the parameter type for the setter method. - The method attributes associated with the setter method. - The field that will store the instance for the setter method. - The method name of the setter method. - The that represents . - A that represents the setter method itself. - - - \ No newline at end of file diff --git a/packages/NMock3.3.5.44/lib/sl40/NMock3.dll b/packages/NMock3.3.5.44/lib/sl40/NMock3.dll deleted file mode 100644 index 8e7a558f..00000000 Binary files a/packages/NMock3.3.5.44/lib/sl40/NMock3.dll and /dev/null differ diff --git a/packages/NMock3.3.5.44/lib/sl40/NMock3.xml b/packages/NMock3.3.5.44/lib/sl40/NMock3.xml deleted file mode 100644 index 4c08a0a6..00000000 --- a/packages/NMock3.3.5.44/lib/sl40/NMock3.xml +++ /dev/null @@ -1,8526 +0,0 @@ - - - - NMock3 - - - - - Defines that an should be signaled. - - - - - Signals an to synchronizes threads. - - The signal to set. - Action that signals an . - - - - This interface is used to get a description of the implementator. - - - - - Describes this object. - - The text writer the description is added to. - - - - Represents the invocation of a method on an object (receiver). - - - - - Holds the exception to be thrown. When this field has been set, will become true. - - - - - Holds the result of the invocation. - - - - - Initializes a new instance of the class. - - The receiver providing the method. - The method. - The parameters passed to the method.. - - - - Invokes this invocation on the specified receiver and stores the result and exception - returns/thrown by the invocation. - - The receiver. - - - - Checks the returnType of the initialized method if it is valid to be mocked. - - The return value to be checked. - - - - Determines whether the initialized method is a property. - - - Returns true if initialized method is a property; false otherwise. - - - - - Determines whether the initialized method is an index getter. - - - Returns true if initialized method is an index getter; false otherwise. - - - - - Determines whether the initialized method is an index setter. - - - Returns true if initialized method is an index setter; false otherwise. - - - - - Describes the property with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the index setter with parameters to the specified . - - The writer where the description is written to. - - - - Describes the method with parameters to the specified . - - The writer where the description is written to. - - - - Writes the generic parameters of the method to the specified . - - The writer where the description is written to. - - - - Writes the parameter list to the specified . - - The writer where the description is written to. - The count of parameters to describe. - - - - Describes the event adder to the specified . - - The writer where the description is written to. - - - - Describes the event remover to the specified . - - The writer where the description is written to. - - - - Holds the receiver providing the method. - - - - - Returns the Receiver as an - - - - Gets the that was passed into the constructor of this - - - - Holds the method that is being invoked. - - - - - Gets the name of method or property specified by the - - - - Gets a string that represents the signature of the - - - - Gets a string that represents the signature of the property setter - - - - - Gets the return type of the method specified by the - - - - Gets the parameters of the method specified by the - - - - Gets the arguments passed into the constructor of this - - - - Holds the parameterlist of the invocation. - - - - - Gets or sets the result of the invocation. - - The result. - - - - Stores the value being assigned in a setter. - - - Used internally to store a setter value to return in an automatic getter. - - - - - Gets or sets the exception that is thrown on the invocation. - - The exception. - - - - Gets a value indicating whether an exception is thrown an this invocation. - - - true if this invocation is throwing an exception; otherwise, false. - - - - - Determines whether the initialized method is an event adder. - - - Returns true if initialized method is an event adder; false otherwise. - - - - - Determines whether the initialized method is an event remover. - - - Returns true if initialized method is an event remover; false otherwise. - - - - - Gets a value indicating if this is an event - - - - - Gets a value indicating if this is a property - - - - - Gets a value indicating if this is a property setter - - - - - Gets a value indicating if this is a property getter - - - - - Gets a value indicating if this is a method. - - - - - A matcher is used to match objects against it. - - - - - Initializes an instance of the class with an empty - - - - Initialized an instance of the class with the description argument. - - The value used when calling the method. - - - - Describes this matcher. - - The text writer the description is added to. - - - - Logical and of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Logical or of to matchers. - - First matcher. - Second matcher. - Matcher combining the two operands. - - - - Negation of a matcher. - - Matcher to negate. - Negation of the specified matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - A default description used when calling - - - - Matcher that negates another matcher. - - - - - Holds the matcher to negate. - - - - - Initializes a new instance of the class. - - The matcher to negate. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object does not matche the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - The definition of a mock object. - - - Implementations of this interface encapsulate the details of - how a mock object is defined, and provide the ability to be able to - instantiate an instance of it. - - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Syntax describing the initial characteristics of a new mock object. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - Allows a mock object to be incrementally defined, and then finally created. - - - - - A single empty array instance that is used as a default value - for constructor arguments. - - - - - The types that the mock object needs to implement. - - - - - Constructor arguments for any class type that this mock might subclass. - If not subclassing, or if using a default constructor, then this should - be an empty array. - - - - - The MockStyle for the mock. If not specified, this will ultimately be - assumed to be MockStyle.Default. - - - - - The name of the mock object. Null is a valid value. - - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - It is invalid to set the MockStyle of a mock more than once. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - It is invalid to specify the constructor arguments of a mock more than once. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - It is invalid to specify the name of a mock more than once. - - The name for the mock. - The mock object definition. - - - - This method supports NMock infrastructure and is not intended to be called directly from your code. - - The primary type that is being mocked. - The current instance. - An to use when creating the mock. - A new mock instance. - - - - Checks that interfaces do not contain ToString method declarations. - - The types that are to be mocked. - - - - Syntax defining a value. - - - - - Defines a value. - - The value matcher. - Match syntax defining the behavior of the value. - - - - Syntax for adding an explanation for the expectation. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Base class for Invoker classes that raise events. - - - - - Constructor - - - - - - - - - Holds a reference to the delegate that will be invoked. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Hooks up with the action that will be taken once a handler is added to the event. - - The action to hook the incoming handler to the event. - - - - Raises the event that created the expectations. - - Arguments for the event. - - - - An action defines something that has to be done. - For example the action to return a result value. - - - - - Invokes this object. - - The invocation. - - - - Can mock invoke any event it is feed with. - - - Code by Magnus MÃ¥rtensson - http://blog.noop.se/archive/2007/08/17.aspx - - - - - - - - - - - Invoke the event and send in parameter. - - The sender of the event. - The arguments of the call. - - - - EventInvoker is used to invoke events that definded by the . - - - An EventInvoker is created as a result of a call to the method. - - - - - Invokes the referenced event - - - - - Action that executes the delegate passed to the constructor to get argments of executed method. - - - - - constustor of GetArgumentsAction - - delegate used to get argments of executed method - - - - Action that returns the n-th element of the arguments to an invocation. - - - - - Stores the index of the argument. - - - - - Stores the parameter when this action gets invoked. - - - - - Initializes a new instance of the class. - - Index of the argument to collect. - - - - Gets the collected parameter. - - The collected parameter (n-th parameter of parameter list of the method's call. - - - - Matcher that checks whether the actual object has a property with the specified name - and its value matches the specified matcher. - - - - - Initializes a new instance of the class. - - Name of the property. - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object has a property with the expected name and expected value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a single object is in a collection of elements. - - - - - Initializes a new instance of the class. - - The collection to match against. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether to object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Represents an expectation. - - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Matcheses the ignoring is active. - - The invocation. - - - - - - Performs the specified invocation. - - The invocation. - A value indicating if the was successfully performed. - - - - Describes the active expectations to. - - The writer. - - - - Describes the unmet expectations to. - - The writer. - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of expectation validation errors - - - - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Gets a value indicating that the expectation is valid. - - - - - Gets or sets the that contains this - - - - Represents an ExpectationList - - - - - Adds an expectation. - - The expectation to add. - - - - Removes the specified expectation. - - The expectation to remove. - - - - Determines if the is in an ordered list. - - The to look for. - - - - - - Gets the root for the - - - - The nesting level of this - - - - Stores the calling depth for the document writer output. - - - - - Adds all expectations to that are associated to . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Gets or sets the expectation list that contains this ordering - - - - - Gets the root for the - - - - Gets a value indicating whether this instance has been met. - - - true if this instance has been met; otherwise, false. - - - - - Initializes a new instance of the class. - - The parent of this - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Gets the current expectation. - - The current expectation. - - - - Gets a value indicating whether this instance has next expectation. - - - true if this instance has next expectation; otherwise, false. - - - - - Gets the next expectation. - - The next expectation. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Holds the instance to the . - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - A matcher that stores a list of delegates to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a list of references to the callbacks assigned during the matching operation of the expectation. - - - - - Matches 2 objects using IComparable - - - - - - - - - - - Compares 2 objects using IComparable - - - - - - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - Matcher that matches method out parameters. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object mached is an out parameter. - - - - Describes this object. - - The text writer the description is added to. - - - - Stores the out parameter. - - - - - Stores the valuematchers given at initialization. - - - - - Creates an instance of the class. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Adds a matcher to the arguments matcher - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Returns the last argument matcher. - - Argument matcher - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - The number of value matchers - - - - - Gets a value matcher by index - - The index of the item to return - A value matcher - - - - Syntax for defining actions. - - - - - Creates the expectation of what to do when this member is called. - - Common s can be found in the and classes. - Returns the comment syntax defined after will. - - For void methods this action does not need to be used. - For non-void methods this action is typically set to use the class. - For all methods this action can be used to throw an exception using the class. - - - - - Extends the interface to include the method. - - - - - This is the strongly-typed version of the method. Use this method when - the value to return is this value (and not a matcher). - - - - - - - This version of the "Will" methods is used in place of .Will(Return.Value(obj)) when obj is known - and should be checked at compile time. The benefit is that the method takes a strongly-typed argument. The - drawback is that you can't specify a matcher. - - - - - This interface provides the syntax used for "Method" methods on the - interface that don't return void and don't use argument values explicitly. - - The return type of the method. - - This interface provides the syntax needed to specify method arguments or match - method arguments. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Action syntax defining the action to take. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - IInvokable objects can be invoked. - - - - - Invokes this object. - - The invocation. - - - - Interface for mocks. - - - - - Retrieves all matching methods on this mock. - - A Matcher to use in identifying the methods. - A list of zero or more matching MethodInfo instances. - - - - Adds an expectation to this mock. - - The expectation to add. - - - - Raises an event on this mock. - - Name of the event to fire. - The arguments passed to the event. - - - - - - - - - - Gets the name of the mock instance. This is often used in error messages - to identify a specific mock instance. - - - - - Gets a that represents all types to be mocked. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - A that stores property values from internal operations. - - - - - - - - - Results that have been explicitly assigned via a call to a property setter. - These will be returned for all subsequent calls to the matching property getter. - - - - - Stores the event handlers that could be added to the mock object. - - - - - Results that have been generated for methods or property getters. - These will be returned for all subsequent calls to the same member. - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Gets the default result for an invocation. - - The invocation. - The default value to return as result of the invocation. - if no default value was provided. - - - - Gets the name of the member to be used as the name for a mock returned an a call to a stub. - - The invocation. - Name of the mock created as a result value on a call to a stub. - - - - Gets the mock style of this mock. - - - - - Syntax defining matching criterias. - - - - - Defines a matching criteria. - - The matcher. - Action syntax defining the action to take. - - - - - - - - Invokes the delegate with the specified parameters. - - - - - - Action that sets the parameter of the invocation with the specified name to the specified value. - - - - - Stores the name of the parameter when the class gets initialized. - - - - - Stores the value of the parameter when the class gets initialized. - - - - - Initializes a new instance of the class. - - The name of the parameter to set. - The value. - - - - Action that sets a parameter (method argument) of the invocation to the specified value. - - - - - Stores the index of the paremter to set. - - - - - Stores the value of the parameter to set. - - - - - Initializes a new instance of the class. - - The index of the parameter to set. - The value. - - - - Action that sets the result value on an invocation. The value is aquired by calling the delegate specified in the constructor. - - - - - Delegate that is used to get the return value. - - - Returns an object... - - - - - Stores the evaluate delegate for this action. - - - - - Initializes a new instance of the class. - - The delegate used to aquire the return value. - - - - This class represents a stub. - - - - - - - A syntax property used to stub out data for this instance. - - - - - Matcher that checks whether the actual value contains the expected substring. - - - - - Initializes a new instance of the class. - - The substring that is expected. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is a string and contains the expected substring. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether the expected and actual value are equal. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Matcheses the specified actual. - - The actual value. - Whether the expected value is equal to the actual value. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Syntax defining a method, property or event (de)registration. - - - - - Sets up an expectation that a protected method will be called. - - The name of the method. - - Argument syntax defining the arguments of the method. - - - - - - - - - - - - - - - - - Represents an that returns a result. - - - - - The return type of this - - - - Action that returns an item from the queue - - - - - Initializes a new instance of the class with the queue of values. - - - - - - - Represents an that can call a delegate to provide the return value. - - The type to return. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Creates an instance of this class with a to call during invocation. - - The to invoke. - - - - Matcher that checks whether to actual value is equal to null. - - - - - Initializes an instance of the class with a description of null. - - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is equal to null. - - - - Used to describe Matchers and other classes for exception handling. - - - - - Writes the text representation of an object to the text stream by calling ToString on that object. - - The object to write. - - The is closed. - - - An I/O error occurs. - - - - - Formats the given depending on null and the type of the value. - - The value to format. - Returns the formatted string. - - - - Replaces backslashes with three escaped backslashes. - - The string to replace backslashes. - Returns the escaped string. - - - - Used as a base for interface mocks in order to provide a holder - for a meaningful ToString() value. - - - - - Default constructor used by Castle.DynamicProxy. - - Do not remove. This is needed by Castle. - - - - Initializes a new instance of the class. - - The name of this instance. - - - - Returns the name of this instance. - - The name of this instance. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - true if the specified is equal to the current ; otherwise, false. - - - - Serves as a hash function for a particular type. - - A hash code for the current System.Object. - - - - Action that fires an event. - - - - - Stores the event arguments. - - - - - Stores the name of the event to fire. - - - - - Initializes a new instance of the class. - - Name of the event. - The event args. - - - - Specifies how a mock object should behave when it is first created. - - - - - Calls to members that do not have expectations set will - result in ExpectationExceptions. - - - - - Calls to members that do not have expectations set will - pass through to the underlying implementation on the class - being mocked. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Calls to members that do not have expectations set will - be ignored. Default values are used for return values - (default value of the return type, stub or empty enumerable) - and the same value is returned on every call to the same member. - - - - - Matcher that checks whether the actual object can be assigned to the expected type. - - - - - Initializes a new instance of the class. - - The expected type. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object castable to the expected type. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher for indexer getters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - This interface adds a special method for property expectations. - - - - - - - Sets up an expectation that calls an action to return the value of the property - that was previously set in code or prior expectation. - - - - - It is useful in cases where a value is assigned to a property internally in a method - and only a could be used to match the assignment. This method - is called on a getter expectation to get that underlying value. - - - - - Used to set up expectations on types that are not mocks. - - - - - Creates an expectation related to the type of thrown. - - The method that should cause the exception. Hint: use () => to convert a method to an action. - An object to complete the expectation - Use this in place of a [ExpectedException] unit test attribute. - - - - Default expectation, specifies that a method, property, etc. that has to be called at least once. - - The receiver. - Returns a receiver of a method, property, etc. that has to be called at least once. - - - - An that can invoke an when the expectation is met. - - - - - Creates an that will invoke the . - - The action to invoke. - - - - A syntax class to create an in a easy to read way. - - - - - A syntax method to create an class. - - The to invoke when the in invoked. - An instance of an class. - - - - Provides shortcuts to matchers. - - - - - Returns a matcher for testing string representation of objects. - - The wrapped matcher. - Returns a for testing string representation of objects. - - - - Returns a matcher for checking property values. - - Name of the property. - The value matcher. - Returns a for checking property values. - - - - Returns a matcher for checking field values. - - Name of the field. - The value matcher. - Returns a for checking field values. - - - - Matcher that checks whether the actual value in string representation (actual.ToString()) - matches with the wrapped matcher. - - - - - Holds the wrapped matcher. - - - - - Initializes a new instance of the class. - - The wrapped matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object in string representation (o.ToString()) matches the wrapped matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether a value matches the check provided as a delegate. - the expectation. - - The type of the expected value. - - - - The test that is performed to check if the matches the expectation. - - The actually received value. - True then value matches the expectation. - - - - The test that is performed to see if the value matches the expectation. - - - - - Initializes a new instance of the class. - - The test that is performed to check if the value matches expectation. - - matchExpression is null. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - This interface ties together the and - interfaces to provide syntax on . - - The property type of the lambda expression. - - This interface doesn't provide any new members. It is used to tie together two existing - interfaces so that the - method will return the right syntax. - - - - - A matcher that uses lambda expressions to perform matching - - - - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - - - - Initializes a new instance of the class with the supplied predicate. - - A lambda expression that evaluates to true or false - A message to describe the expectation. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Manages a list of parameters for a mocked method together with the parameter's values. - - - - - Holds a boolean for each value if it was set or not. - - - - - Holds the method to be mocked. - - - - - An array holding the values of the parameters. - - - - - Initializes a new instance of the class. - - The method to be mocked. - The values of the parameters. - - - - Determines whether the value specified by index was set. - - The index. - - Returns true if value specified by index was set; otherwise, false. - - - - - Marks all values as set. - - - - - Determines whether the parameter specified by index can be set. - - The index of the parameter. - - Returns true if the parameter specified by index can be set; otherwise, false. - - - - - Gets the parameter name by index. - - The index of the parameter name to get. - - Returns the parameter name with the given index. - - - - - Gets the number of values. - - The number of values. - - - - Gets the values as array. - - Values as array. - - - - Gets or sets the with the specified index. - - The index of the value to be get or set. - - The value of a parameter specified by its . - - - - - Initializes a new instance of the class. - - The parent of this instance. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Performs the specified invocation on the corresponding expectation if a match was found. - - The invocation to match. - - - - Gets a value indicating whether this instance is active. - - - true if this instance is active; otherwise, false. - - - - Initializes a new instance of the class. - - The expectation description. - The required count matcher. - The matching count matcher. - - - - Checks whether stored expectations matches the specified invocation. - - The invocation to check. - Returns whether one of the stored expectations has met the specified invocation. - - - - Adds itself to the if the matches - the specified . - - The mock for which expectations are queried. - The result to add matching expectations to. - - - - Returns a list of validation errors - - - - - - - Implementations of this interface are responsible for generating runtime - proxies of classes and interfaces for use as mock objects. - - - Returned instances are expected to implement IMockObject and take care of - intercepting calls to their public members. Intercepted calls should be - forwarded on to the supplied MockFactory for processing against expectations. - - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - A base implementation of the interface - - - - - Combines the specified types with the into an array. - - An array of the specified types and , - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - Represents one or more types that are to be mocked. Provides operations - that work over top of all the contained types, as well as a means of - grouping and identifying unique combinations of types. - - Duplicate types are ignored when added. Only interface and class types are - supported, and there may only be a maximum of one class type per CompositeType instance. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The types to include in the CompositeType. - - - - Initializes a new instance of the CompositeType class from the supplied types. - - The first type to include in the CompositeType. This cannot be null. - Zero or more further types to include in the CompositeType. - This constructor is mostly included for convenience. - - - - Adds a to this instance - - - - - - - Determines whether the specified CompositeType is equal to the current CompositeType. - - The CompositeType to compare with the current CompositeType. - true if the specified CompositeType is equal to the current CompositeType; otherwise, false. - - - - Gets any methods of the contained type(s) that match the specified matcher. - - The matcher. - if set to true then only the first match is returned. - The methods of the contained type(s) that match the specified matcher. - Only non-private methods can be matched. - - - - Returns the hash code for this instance. - - An Int32 containing the hash code for this instance. - - - - Determines whether the specified Object is equal to the current CompositeType. - - The Object to compare with the current CompositeType. - true if the specified Object is equal to the current CompositeType; otherwise, false. - - - - Returns a String that represents the current CompositeType. - - A String that represents the current CompositeType. - - - - Initializes the specified types. - - The types. - - - - Gets the interfaces implemented by the specified type. - - The interface type to inspect. - The interfaces implemented by the specified type. - - - - Filters out private methods. - - The method to test for visibility. - True if the method is not private, otherwise false. - - - - Gets the 'primary' type we are mocking. This may be a class or an interface - and will determine the proxy generation method that will be used. - - - - - Gets any additional types to be mocked. These will always be interfaces. - - - - - Gets all types of this instance. - - - - - Initializes a new instance of the class. - - The mockFactory. - Type of the mocked. - The name. - The mock style. - - - - Matcher that checks whether the actual object is a and its name is equal to the expected name. - - - - - Initializes a new instance of the class. - - The expected name of the method. - - - - Initializes a new instance of the class with a method name and declaring type - - - - - - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Matcher that checks whether the actual object is a and its signature matches the expected signature. - - - - - Initializes a new instance of the class. - - The expected method reference. - - - - Matches the specified object to this matcher and returns whether it matches. - - The MethodInfo to match. - Whether the object is a MethodInfo and its name matches the expected one. - - - - Syntax methods that are used specifically for stubbing. - - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are ignored, use the result of this - method to specify the expected arguments. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will not use the parameters supplied to the method call. - Parameters must be supplied in order for the code to compile. Use the or - methods - as part of the return type of this method. As an alternative, use the method which - will use the parameters supplied to the method as part of the expectation. - - - The method should not be used from this method. This method - is used for return types, therefore a return expectation is not needed. - - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.Method(m=>m.MethodName("IgnoredParam")).With("RealParam"); - - - - - Creates an expectation that this method will be called. The arguments are ignored, use the - result of this method to specify the expected arguments. - - A method call expression that specifies the expected method. - An object used to specify expected arguments or return value. - - - mock.Expects.One.Method(m=>m.MethodName("", 3)).Will(Return.Value(true)); - mock.Expects.One.Method(m=>m.MethodName()).WillReturn(7); - - - - - - Creates an expectation for the method specified when the method returns . - The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An instance of a class used to specify the parameters. - - - This overload is chosen by the compiler when the method specified in the action returns - . - - - An expectation created with this method will use the parameters supplied to the method call. - - - - Creates an expectation for the method specified. - - - In this example, the method returns void. - - mock.Expects.One.MethodWith(m=>m.MethodName("RealParam")); - - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - An object used to specify the return value of the method. - - - - Creates an expectation that this method will be called. The arguments are used as the expected values. - - A method call expression that specifies the expected method. - The value to be returned when the method is called. - An object used to specify the explanation for the expectation. - Compare this method to other versions of this overloaded method in the See Also section. - - - - Creates an expectation that this property will be accessed. - - The property data type. - The expression to extract the property name. - An that can be used to set the return value. - - - - Creates an expectation that this property will be accessed and it should return the specified value. - - The property data type. - A lambda expression to extract the property name. - The value to be returned when the property is accessed. - An object to add comments about this expectation. - - Use this method as a shorthand to . - It sacrifices syntactic sugar but reduces the number of characters to type. - - - - - Creates an expectation that a will be bound to an event. The type of binding will be infered from the use of += or -=. - - - - - - - If a binding expectation uses null, any arguments will be allowed. - If a binding references a specific , the expectation will expect that delegate. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - - - - Use to bind to is used. - - - - - Creates an expectation that an will be bound. The type of binding will be infered from the use of += or -=. - - A lambda expression: e => e.Event += null - The type of event args for the - - - - - - Tracks the expectations created by its s and s. - - - The MockFactory is a main component of the NMock3 API. It is used to create - instances and instances of a or . - - - - - A popper pops an expectation ordering from the expectations stack on disposal. - - - - - Initializes a new instance of the class. - - The mockFactory. - The previous. - - - - Pops the expectation ordering from the stack. - - - - - The mock object factory that is being used by this MockFactory instance. - - - - - Holds all mapping from mocks/types to mock styles. - - - - - The delegate used to resolve the default type returned as return value in calls to mocks with stub behavior. - - - - - If an unexpected invocation exception is thrown then it is stored here to re-throw it in the - method - exception cannot be swallowed by tested code. - - - - - A field to store s if and Expectation is incomplete - - - - - Expectations at current nesting level. - - - - - Creates a default . - - - Default classes do not ignore unexpected incovations. - - - - - Creates a with all of the default values. - - The type of mock to create. - - - - - - Creates a with the specified name. - - The type of mock to create. - - - - - - - - Creates a with the specified . - - The type of mock to create. - - - - - - - - Creates a with the specified and additional types. - - The type of mock to create. - - - - - - - - - - Creates a with the specified name and . - - The type of mock to create. - - - - - - - - - - Creates a of the primary type and the specified additional types - - The type of mock to create. - - - - - - - - Creates a with the specified constructor arguments. - - The type of mock to create. - - - - - - - - Creates a instance. Use the class as a parameter. - - The type of mock to create. - - - - - - This method gives the developer the most control when creating the mock because they can - specify all parts of the mock definition. - - - - - Creates a using the specified arguments. - - The type of mock to create. - - - - - - - - - - - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - An to create the mock from. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type using the supplied definition. - - The type to mock. - The name of the mock. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Creates a new dynamic mock of the specified type. - - The type to mock. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A dynamic mock for the specified type. - - - - Gets a disposable object and tells the mockFactory that the following expectations are ordered, i.e. they have to be met in the specified order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the ordered expectation mode is set back to the mode it was previously - to call to . - - - - Gets a disposable object and tells the mockFactory that the following expectations are unordered, i.e. they can be met in any order. - Dispose the returned value to return to previous mode. - - Disposable object. When this object is disposed then the unordered expectation mode is set back to the mode it was previously - to the call to . - - - - Disposes the mockFactory be verifying that all expectations were met. - - - - - Suppresses when the factory would throw an exception on unmet or unexpected expectations until the next time - VerifyAllExpectationsHaveBeenMet() is called. - - - - - Allows the default to be replaced with a different implementation. - - The System.Type of the implementation to use. - This is expected to implement and have a default constructor. - - - - Changes the current MockObjectFactory to a user defined one. - - The new factory - - - - Creates a new named dynamic mock of the specified type and allows the style - of the mock to be specified. - - The type to mock. - A name for the mock that will be used in error messages. - Specifies how the mock object should behave when first created. - The arguments for the constructor of the class to be mocked. - Only applicable when mocking classes with non-default constructors. - A named mock. - - - - Verifies that all expectations have been met. - Will be called in , too. - - A value indicating if exceptions that have already been thrown should be thrown again. - - - - Verifies that all expectations have been met. - Will be called in , too. - - - - - Sets the resolve type handler used to override default values returned by stubs. - - The resolve type handler. - - - - Sets the mock style used for all properties and methods returning a value of any type of the . - Can be overridden with a type specific mock style with . - - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The type of the stub. - The mock (with mock style Stub). - The nested mock style. - - - - Sets the mock style used for all properties and methods returning a value of type - of the . - - The mock (with mock style Stub). - Type of the nested mock. - The nested mock style. - - - - Clears all expectation on the specified mock. - - The mock for which all expectations are cleared. - - - - Adds the expectation. - - The expectation. - - - - Resolves the return value to be used in a call to a mock with stub behavior. - - The mock on which the call is made. - The type of the return value. - The object to be returned as return value; or - if the default value should be used. - - - - Gets the mock style to be used for a mock created for a return value of a call to mock with stub behavior. - - The mock that wants to create a mock. - The type of the requested mock. - The mock style to use on the created mock. Null if has to be used. - - - - Dispatches the specified invocation. - - The invocation. - - - - Determines whether there exist expectations for the specified invocation. - - The invocation. - - true if there exist expectations for the specified invocation; otherwise, false. - - - - - Casts the argument to . - - The object to cast. - The argument casted to - Thrown if is null - Thrown if is not a - - - - Resets the state of the factory. - - - Use this method after expected exceptions. - - - - - Clears thrown unexpected exceptions so that a new exception will be thrown. - - - - - Pushes the specified new ordering on the expectations stack. - - The new ordering. - Disposable popper. - - - - Pops the specified old ordering from the expectations stack. - - The old ordering. - - - - Throws an exception listing all unmet expectations. - - - - - Throws an exception indicating that the specified invocation is not expected. - - The invocation. - - - - Delegate used to override default type returned in stub behavior. - - The mock that has to return a value. - Type of the return value. - The object to return as return value for the requested type. - - - - Matcher for indexer setters. Checks that the arguments passed to the indexer match. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - BinaryOperator is an abstract base class for matchers that combine two matchers into a single matcher. - - - - - The left hand side of the binary operator. - - - - - The right hand side of the binary operator. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - This class contains extension methods to support other classes. - - - - - Returns a string representing grammatically correctness of n times depending on the value of . - - An integer value representing n times. - The string ' time' or ' times'. - - - - Returns the default name for a type that is used to name mocks. - - The type to get the default name for. - Default name for the specified type. - - - - Finds the first lower case char in the specified string. - - The string to inspect. - the first lower case char in the specified string. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Used by NMock framework to make sure two lists are equal. - - - - - Constructor - - The list containing the expected results. - - - - Called by NMock to verify o corresponds to the source list. - - List to compare against the source list for equality. - True: the two lists have the same number of items and their items are equal. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that is the logical and combination of two matchers. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Contains the methods that define the expectation for either a property, method, or event. - - The interface or class being mocked. - - This interface defines generic methods that take lambda expressions. - - - - - Creates an expectation that this property will be set to a value specified in the - result of this method. The value used in the expression - is ignored. - - - - A set property expression that specifies the property to be set. - - If the property specified in the expression has a getter, a value isn't required in the expression. - - mock.Expects.One.SetProperty(p => p.Prop) - - instead of - - mock.Expects.One.SetProperty(p => p.Prop = "Ignored Value") - - The code above only needs to be used in cases where the property is write-only. - - - - - - - Creates an expectation that this property will be set to the specified value. - - z => z.prop = 0 - An object to specify the comment for the expectation. - - - - This class represents a mock object of an interface or class. To create a , - use a . - - The type to mock. - - - - public class TestClass - { - public void TestMethod() - { - MockFactory factory = new MockFactory(); - Mock<ISample> mock = factory.CreateMock<ISample>(); - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - new Driver(mock.MockObject).Drive(3); - } - } - - public interface ISample - { - int Prop {get; set;} - } - - public class Driver - { - public Driver(ISample sample) - { - Sample = sample; - } - public int Sample {get;set;} - public void Drive(int value) - { - Sample.Prop = value; - } - } - - - - - - - - - - - - - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - This method will not throw an exception if the cast is not successful. It will return null. Use to specify if an exception should be thrown. - - - - Duck Typing method: Returns a instance of the type being specified in . - - - - - - - - - - Use this method to specify if an exception should be thrown when a cast is not valid. - - - - Overriden ToString method that throws an exception when called so that the deloper does not - confuse this ToString with the ToString of the property. - - The name of the - - - - - Clears all expectations of this mock. - - - Use this method to clear expectations in a test before the test cleanup runs - to avoid unmet expectations. It is useful when testing error conditions. - - - - - An object of type to be used whenever the Mocked object is needed. - - - This property provides access to the proxy that is mocking the actual type. Use this property - when a reference to an object that is of the mocked type is needed. - - - This example shows how a presenter needs arguments of the right type during construction. The - MockObject property is used because the presenter can't be instantiated with a - argument. - - interface IView { ... } - interface IModel { ... } - - Mock<IView> view = factory.CreateMock<IView>(); - Mock<IModel> view = factory.CreateMock<IModel>(); - - Presenter p = new Presenter(view.MockObject, model.MockObject); - - - - - A syntax property used to access members that specify the number of times an expectation could occur. - - This would be considered to be the main property of a class. This property - provides access to all other expectation setup methods. - - In this example: - mockis an instance of a .Expectsrefers to this property.Oneis the number of times this action is expected.SetPropertyTois the type of expection. means the mock expects a property to be set to a value.mis the variable in our anonymous method that represents the mocked interface or class.Propis the property on the mocked interface or class that the expectation is for. It will be set to the value 3. - - //create an expectation that the property Prop will be set to 3 - mock.Expects.One.SetPropertyTo(m=>m.Prop=3); - - - View more of this code in the example. - - - - - A syntax property that returns a class to stub out a member on the Mock. - - - - - Gets or sets a value indicating if this should ignore unexpected invocations to properties, methods, or events. - - - Use the property to have a Mock ignore calls with no expectations. By default, this works fine for property setters, void methods, - and events. Property getters and non-void methods will need to indicate how they will be implemented as they need to return - a value. - - - - - Gets or sets a value indicating if an exception should be thrown when the is called. - - - - - Returns the name of the underlying proxy - - - - - A matcher that stores a delegate to call back to later. - - Typically a , , , or their equivalents. - - - - Determines if the parameter is the same type as . - - The value the matcher will evaluate. - A value indicating if the parameter matches or not. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Gets a reference to the callback assigned during the matching operation of the expectation. - - - - - Action that calls the collect delegate passed to constructor with the n-th element of the arguments to an invocation. - - Type of the argument to collect. - - - - Delegate that is called on collecting an argument. - - The collected generic parameter. - - - - Stores the index of the argument. - - - - - Stores the collect delegate. - - - - - Initializes a new instance of the class. - - Index of the argument. - The collect delegate. - - - - Defines action for throwing actions. - - - - - Throws an exeception when the action is invoked. - - The exception to throw when invoked. - Returns a new instance of the class. - - - - Provides shortcuts to s. - - - - - Matches anything. - - - - - Matches nothing. - - - - - Matches if the value is null. - - - - - Matches if the value is not null. - - - - - Matches out parameters of methods. - - - - - Matches objects the are equal to the expected object. - - The expected. - Returns a new instance of the class. - - - - Matches an expected object. - - The expected object. - Returns a new instance of the class. - - - - Matches objects that implement the interface. - - The instance to be compared. - Returns a new instance of the class. - - - - Matches strings containing the specified . - - The substring. - Returns a new instance of the class. - - - - Matches objects that are greater than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are at least equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects less than . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects that are less or equal to . - - The value to compare. - Returns a new instance of the class. - - - - Matches objects in the specified collection. - - The collection with objects to match. - Returns a new instance of the class. - - - - Matches objects in the specified elements. - - The elements to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - Returns a new instance of the class. - - - - Matches objects of the specified type. - - The type to match. - - Returns a new instance of the class. - - - - - Matches objects against the specified expression. - - Type of the value to match. - The match expression. - returns a new instance of the . - - - - Syntax for defining expected arguments of a method call. - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - The specified arguments are converted to s. Matchers - as well as non-Matchers can be used interchangably in the method. - - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that any arguments are allowed on the method call. - - Matcher syntax. - - - - Defines matching criteria for arguments. - - A list of matchers to match the arguments of a method. - Matcher syntax. - - The matchers will be automatically wrapped in an ArgumentsMatcher. - - - - - Initializes a new instance of the class. - - The expectation. - The builder. - - - - Initializes a new instance of the class. - - The builder. - - - - A flag that specifies if the expectation was set up using 'MethodWith' in which case an ExpectationException is not thrown - when the method takes no arguments. - - - - - Initializes a new instance of the class. - - The description. - The required count matcher. - The matching count matcher. - - - - - - Defines the arguments that are expected on the method call. - - The expected arguments. - Matcher syntax. - - - - Defines that no arguments are expected on the method call. - - Matcher syntax. - - - - Defines that all arguments are allowed on the method call. - - Matcher syntax. - - - - Defines a matching criteria. - - The matcher. - - Action syntax defining the action to take. - - - - - Defines what will happen. - - The actions to take. - - Returns the comment syntax defined after will. - - - - - Adds a comment for the expectation that is added to the error message if the expectation is not met. - - The comment that is shown in the error message if this expectation is not met. - You can describe here why this expectation has to be met. - - - - Methods the specified method name. - - Name of the method. - - - - - - Defines a method. - - Matcher for matching the method on an invocation. - - Argument syntax defining the arguments of the method. - - - - - Gets the property. - - Name of the property. - - - - - - Sets the property. - - Name of the property. - - - - - - Defines the receiver. - - The dynamic mock on which the expectation or stub is applied. - Method syntax defining the method, property or event. - - - - Converts the object array into a List of matchers. - - The expected arguments. - - - - - - Ensures the matching method exists on mock. - - The method matcher. - The method description. - - - - Gather information about invocations. - - - - - Calls the specified with the method argument at index . - Can only be used as action of an expectation on a method call. - - The type of the argument. - Index of the argument. - The collect delegate. - Action that collects a method argument. - - - - Calls the specified with the value that is set to the property. - Can only be used as action of an expectation on a property setter. - - The type of the value. - The collect delegate. - Action that collects a property value. - - - - Defines the initial characteristics of a new mock object. - This is normally used in conjunction with - - - - Specifies a type that this mock should implement. This may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The type to implement. - The mock object definition. - - - - Specifies the types that this mock should implement. These may be a class or interface, - but there can only be a maximum of one class implemented by a mock. - - The types to implement. - The mock object definition. - - - - Specifies how the mock object should behave when first created. - - A MockStyle value. - The mock object definition. - - - - Specifies the arguments for the constructor of the class to be mocked. - Only applicable when mocking a class with a non-default constructor. - - The arguments for the class constructor. - The mock object definition. - - - - Specifies a name for the mock. This will be used in error messages, - and as the return value of ToString() if not mocking a class. - - The name for the mock. - The mock object definition. - - - - Returns a default implementation of . - - - - - Action that executes the delegate passed to the constructor. - - - - - Delegate that is executed on invocation of the action. - - - - - Stores the handler of the delegate action. - - - - - Initializes a new instance of the class. - - The action handler. - - - - A syntax class to setup expectations on methods when they throw exceptions. - - - - - Creates an instance of this class specifying the action that will throw an exception - - - - - - - Indicates that this method will throw an . - - - - - Indicates that this method will throw an . - - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - - - - Indicates that this method will throw an . - - The type of to throw. - An array of matchers to match the exception string. - - - - Indicates that this method will throw an . - - The type of to throw. - A description of the reason for this expectation. - An array of matchers to match the exception string. - - - - This syntax class contains properties that control - the number of expectations added for the referenced . - - The class or interface that is being mocked. - - is the return type of the main property used on a instance. You - access it by typing mockObject.Expects.The class provides access to - all other methods that help create expectations. - - - - Initializes a new instance of the class with the specified type as the template. - - - - - - - Creates an expectation for at least count number of calls for the referenced member. - - The minimum number of calls expect - An to reference the expected call. - - - - Creates an expectation for at most count number of calls for the referenced member. - - The maximum number of calls expect - An to reference the expected call. - - - - Creates an expectation for a range from minCount to maxCount number of calls for the referenced member. - - The minimum number of expected calls. - The maximum number of expected calls. - An to reference the expected call. - - - - Creates an expectation for exactly count number of calls for the referenced member. - - The exact number of calls expect - An to reference the expected call. - - - - Creates an expectation for at least one call of the referenced member. - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Creates an expectation for at most one call of the referenced member. - - - - - - - Specifies that there should be no calls to the referenced member. - - - - - Creates an expectation for one call of the referenced member. - - - - - Matcher that checks whether the specified field of the actual object matches with the specified matcher. - - - - - Name of the field to match against the . - - - - - The value used to match the field of the object under investigation. - - - - - Initializes a new instance of the class. - - Name of the field to match against the . - The value matcher. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks a value against upper and lower bounds. - - - - - Stores the maximum comparison result for a successful match. - - - - - Stores the minimum comparison result for a successful match. - - - - - Stores the value to be compared. - - - - - Initializes a new instance of the class. - - The value to compare. - The first allowed comparison result (result of value.CompareTo(other)). - The second allowed comparison result (result of value.CompareTo(other)). - Thrown when one value is -1 and the other is 1. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object compared to the value resulted in either of both specified comparison results. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Extends by adding other syntax methods. - - - - - Creates an expectation that this property can be set to any value. - - - - - - - Creates an expectation that the property will be set to this value. - - - - - - - - - Class that creates mocks for interfaces and classes (virtual members only) using the - Castle proxy generator. - - - - - A collection of types - - - - - Initializes a new instance of a - - - - Initializes a new instance of a - A value indicating if the ProxyBuilder should be persistent - - - - Creates a mock of the specified type(s). - - The mockFactory used to create this mock instance. - The type(s) to include in the mock. - The name to use for the mock instance. - The behaviour of the mock instance when first created. - Constructor arguments for the class to be mocked. Only valid if mocking a class type. - A mock instance of the specified type(s). - - - - Action that sets the result value on an invocation. - - - - - Stores the result to set on the invocation as the return value. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Invokes this object. Sets the result value of the invocation. - - The invocation. - - - - Describes this object. - - The text writer the description is added to. - - - - Gets the type of the template parameter . - - - - - Action that sets the result value on an invocation. - - - - - Initializes a new instance of the class. - - The result to set on the invocation as the return value. - - - - Verify that a condition is met. - - - - - Verifies that the is matched by the . - - The actual value to match. - The matcher. - The error message. - The format args for the error message. - Thrown if value does not match. - - - - Verifies that the is matched by the . - - The actual value. - The matcher. - Thrown if value does not match. - - - - Writes the description of a failed match to the specified . - - The where the description is written to. - The actual value to be written. - The matcher which is used for the expected value to be written. - - - - Provides shortcuts to s that return values - - - - - Returns the specified value as an object. - - The value to return. - An action that returns the specified value. - - - - Returns the specified value as a strongly-typed value. - - The value to return. - An action that returns the specified value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Calls a method that will provide the return value. - - The type that needs to be returned. - The method that will provide the return value. (anonymous or otherwise) - An action that will provide the return value. - - - - Specifies a queue of return values to be used for each call to the expectation. - - The type that needs to be returned. - The of items to be returned. - An action that will return one value each time the expectation is met. - - - - Defines the value returned by an out parameter. - - Name of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - Defines the value returned by an out parameter. - - Index of the parameter. - The value to return. - Action defining the value of an out parameter. - - - - short cut to initialize GetArgumentAction - - - - - Create a GetArgumentAction to get arments of invoked method - - delegate used to get argments of executed method - - - - - - Matcher that combines two matcher with a logically or. - - - - - Initializes a new instance of the class. - - The left operand. - The right operand. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object matches one of the two combined matchers. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Matcher that checks whether parameters of a method match with the specified list of matchers. - - - - - An ordered list of type 's each matching a single method argument. - - - - - Initializes a new instance of the class and specifies no generic types. - - - - - Initializes a new instance of the class. - - The value matchers. This is an ordered list of matchers, each matching a single method argument. - - - - Initializes a new instance of the class and specifies the types to match. - - The types to match. (Typically a result of the method. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the object is an and all method arguments match their corresponding matcher. - - - - Describes this matcher. - - The text writer to which the description is added. - - - - Writes the list of matchers to a . - - Length of the list. - The writer. - - - - Determines whether the arguments of the invocation matches the initial arguments. - - The invocation to match against the initial arguments. - - Returns true if invocation matches the initial arguments; false otherwise. - - - - - Determines whether all argument types of the generic method matches the invocation. - - The invocation to match against the initial argument types. - - Returns true if invocation types matches the inital argument types; false otherwise. - - - - - Matcher that is used to change the description the wrapped matcher. - - - - - Initializes a new instance of the class. - - The new description for the wrapped matcher. - The matcher to wrap. - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Whether the wrapped matcher matches. - - - - Stores the matcher to wrap. - - - - - A matcher that will always or never match independent of the value matched but depending on how it is initialized. - - - - - Initializes a new instance of the class. - - if set to true the matcher will always match, otherwise it will never match. - The description which will be printed out when calling . - - - - Matches the specified object to this matcher and returns whether it matches. - - The object to match. - Returns whether the object matches. - - - - Responsible for handling the results of an invocation. - - - - - Stores the default results. - - - - - Stores the results. - - - - - Sets the result of the specified . - - The type to be returned as a result. - The result to be set. - - - - Gets a new the empty array of the specified . - - Type of the array to be returned. - - Returns a new empty array of the specified . - - - - - Action that sets the exception of an invocation. - - - - - Stores the exception to be thrown. - - - - - Initializes a new instance of the class. - - The exception. - - - - Provides functionality to map stubs and specific types of a stub to mock styles. - - - - - Key into the dictionary. - - - - - Initializes a new instance of the class. - - The mock object. - Type of the nested mock. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Whether this instance equals the specified other. - - The other to compare to. - A value indicating whether both instances are equal. - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Gets the mock. - - The mock object. - - - - Gets the type of the nested mock. - - The type of the nested mock. - - - - holds mappings from stub to mock style (holds for all types unless there is a mapping defined in . - - - - - holds mappings from stub.type to mock style. - - - - - Gets or sets the mock style for the specified mock. - - the mock object - mock style. null if no value defined. - - - - Gets or sets the mock style for the specified mock and type. - - the mock object - the type of the nested mock. - mock style. null if no value defined. - - - - Represents a delegate in an expectation that can be matched - - - - - Initializes an instance of this class with a to match. - - - - - - - Determines if this delegate matches the specified parameter - - The delegate to match - true if the delegates match, false if the object is null or does not match - - - - Exception representing an expectation exception. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Creates and returns a string representation of the current exception. - - - A string representation of the current exception. - - - - - Represents an unexpected action during the course of exercising a unit test - - - - - Constructs a with the given parameters. - - The MockFactory that threw this exception - The unexpected invocation - The expectations collection to describe - A message to help the user understand what was unexpected - - - - Gets the exception's message - - - - - Represents an expectation that was not met after has been called - - - - - Initializes the exception with a message - - - - - - - Wraps an exception and provides a message - - - - - - - - - Represents an expectation that was not completely filled out - - - - - Initializes an exception with a message - - - - - - - Defines public constants - - - - - A string that represents the name and Public Key of the NMock assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - A string that represents the name and Public Key of the DynamicProxyGenAssembly assembly. - - - Use this field in your assembly when NMock needs access to internal types - - - [assembly: InternalsVisibleTo(NMock.Constants.InternalsVisibleTo)] - - - - - - The NMock Public Key string. - - - This string is used internally to reference the public key. - - - - - Action that signals an event. - You can use this action to synchronize threads when an expectation is invoked. - - - - - Stores the wait handle to be signalled. - - - - - Initializes a new instance of the class. - - The signal. - - - - Gets the signal. - You can use this signal to wait for this action beeing invoked. - - The signal. - - - - General purpose class to represent a standard pair of values. - - Type of the first value - Type of the second value - - - - Constructs a pair with its values - - - - - - - - - Manages the instantiation of s. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Creates a new logger, getting the logger name from the specified type. - - - - - Creates a new logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - NullLogFactory used when logging is turned off. - - - - - Creates an instance of ILogger with the specified name. - - Name. - - - - - - Creates an instance of ILogger with the specified name and LoggerLevel. - - Name. - Level. - - - - - - Get the proxy target (note that null is a valid target!) - - - - - - - Gets the interceptors for the proxy - - - - - - - The silverlight System.Type is missing the IsNested property so this exposes similar functionality. - - - - - - - - - Abstracts the implementation of proxy type construction. - - - - - Creates a proxy type for given , implementing , using provided. - - The class type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified class and interfaces. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type that proxies calls to members on , implementing , using provided. - - The interface type to proxy. - Additional interface types to proxy. - Type implementing on which calls to the interface members should be intercepted. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface that 'proceeds' executions to the specified target. - Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface(s) that delegate all executions to the specified interceptors - and uses an instance of the interface as their targets (i.e. ), rather than a class. All classes should then implement interface, - to allow interceptors to switch invocation target with instance of another type implementing called interface. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Creates a proxy type for given that delegates all calls to the provided interceptors. - - The interface type to proxy. - Additional interface types to proxy. - The proxy generation options. - The generated proxy type. - - Implementers should return a proxy type for the specified interface and additional interfaces that delegate all executions to the specified interceptors. - - Thrown when or any of is a generic type definition. - Thrown when or any of is not public. - Note that to avoid this exception, you can mark offending type internal, and define - pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. - - - - - Gets or sets the that this logs to. - - - - - Gets the associated with this builder. - - The module scope associated with this builder. - - - - Contract for dynamic value resolution. - - - - - Contract for typed dynamic value resolution. - - - - - - - Helper class for retrieving attributes. - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Gets the attributes. Does not consider inherited attributes! - - The member. - The member attributes. - - - - Gets the type attribute. - - The type. - The type attribute. - - - - Gets the type attributes. - - The type. - The type attributes. - - - - Gets the type converter. - - The member. - - - - - - Gets the attribute. - - The member. - The member attribute. - - - - Defines the contract for customizing dictionary access. - - - - - Copies the dictionary behavior. - - null if should not be copied. Otherwise copy. - - - - Determines relative order to apply related behaviors. - - - - - Defines the contract for building typed dictionary keys. - - - - - Builds the specified key. - - The dictionary adapter. - The current key. - The property. - The updated key - - - - Contract for editing the Dictionary adapter. - - - - - Contract for managing Dictionary adapter notifications. - - - - - Contract for validating Dictionary adapter. - - - - - Contract for creating additional Dictionary adapters. - - - - - Contract for manipulating the Dictionary adapter. - - - - - Assigns a property to a group. - - - - - Constructs a group assignment. - - The group name. - - - - Constructs a group assignment. - - The group name. - - - - Gets the group the property is assigned to. - - - - - Represents a 'streamable' resource. Can - be a file, a resource in an assembly. - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - Returns a reader for the stream - - - It's up to the caller to dispose the reader. - - - - - - - - - Returns an instance of - created according to the relativePath - using itself as the root. - - - - - - - - - - - Only valid for resources that - can be obtained through relative paths - - - - - - - - - This returns a new stream instance each time it is called. - It is the responsibility of the caller to dispose of this stream - - - - - Wraps a reference that is passed - ByRef and provides indirect load/store support. - - - - - Performs some basic screening and invokes the - to select methods. - - - - - - - - - - - - - Contract for dictionary validation. - - - - - Determines if is valid. - - The dictionary adapter. - true if valid. - - - - Validates the . - - The dictionary adapter. - The error summary information. - - - - Validates the for a property. - - The dictionary adapter. - The property to validate. - The property summary information. - - - - Invalidates any results cached by the validator. - - The dictionary adapter. - - - - Defines the contract for building typed dictionary adapters. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets a typed adapter bound to the . - - The typed interface. - The underlying source of properties. - The property descriptor. - An implementation of the typed interface bound to the dictionary. - - The type represented by T must be an interface with properties. - - - - - Gets the associated with the type. - - The typed interface. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - The property descriptor. - The adapter meta-data. - - - - Gets the associated with the type. - - The typed interface. - Another from which to copy behaviors. - The adapter meta-data. - - - - Defines the contract for retrieving dictionary values. - - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - Manages conversion between property values. - - - - - Initializes a new instance of the class. - - The converter. - - - - Gets the effective dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if return only existing. - The effective property value. - - - - - - - - Assigns a specific dictionary key. - - - - - Contract for property descriptor initialization. - - - - - Performs any initialization of the - The property descriptor. - The property behaviors. - - - - Suppress property change notifications. - - - - - Support for on-demand value resolution. - - - - - Initializes a new instance of the class. - - The hook. - - - - Initializes a new instance of the class. - - - - - Interface describing elements composing generated type - - - - - Base class that exposes the common functionalities - to proxy generation. - - - - - It is safe to add mapping (no mapping for the interface exists) - - - - - - - - - - - Generates a parameters constructor that initializes the proxy - state with just to make it non-null. - - This constructor is important to allow proxies to be XML serializable - - - - - Substitutes part of key with another string. - - - - - Initializes a new instance of the class. - - The old value. - The new value. - - - - Abstract adapter for the support - needed by the - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - An element with the same key already exists in the object. - key is null. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - key is null. - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - The object is read-only.-or- The has a fixed size. - key is null. - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - The type of the source cannot be cast automatically to the type of the destination array. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - - - - Gets a value indicating whether the object has a fixed size. - - - - true if the object has a fixed size; otherwise, false. - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - Gets or sets the with the specified key. - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Adapts a static string content as an - - - - Depicts the contract for resource factories. - - - - - Used to check whether the resource factory - is able to deal with the given resource - identifier. - - - Implementors should return true - only if the given identifier is supported - by the resource factory - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - Creates an instance - for the given resource identifier - - - - - - - - - - - Provides a factory that can produce either or - classes. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Initializes a new instance of the class. - - The name. - Type declaring the original event being overriten, or null. - - - The add method. - The remove method. - The attributes. - - - - Summary description for NewArrayExpression. - - - - - Contract for value matching. - - - - - Defines the contract for building s. - - - - - Builds the dictionary behaviors. - - - - - - - Indicates that underlying values are changeable and should not be cached. - - - - - Identifies an interface or property to be pre-fetched. - - - - - Instructs fetching to occur. - - - - - Instructs fetching according to - - - - - - Gets whether or not fetching should occur. - - - - - Defines the contract for updating dictionary values. - - - - - Sets the stored dictionary value. - - The dictionary adapter. - The key. - The stored value. - The property. - true if the property should be stored. - - - - Removes a property if matches value. - - - - - Provides appropriate Ldind.X opcode for - the type of primitive value to be loaded indirectly. - - - - - Returns list of all unique interfaces implemented given types, including their base interfaces. - - - - - - - - - Used during the target type inspection process. Implementors have a chance to customize the - proxy generation process. - - - - - Invoked by the generation process to notify that the whole process has completed. - - - - - Invoked by the generation process to notify that a member was not marked as virtual. - - The type which declares the non-virtual member. - The non-virtual member. - - This method gives an opportunity to inspect any non-proxyable member of a type that has - been requested to be proxied, and if appropriate - throw an exception to notify the caller. - - - - - Invoked by the generation process to determine if the specified method should be proxied. - - The type which declares the given method. - The method to inspect. - True if the given method should be proxied; false otherwise. - - - - Assigns a prefix to the keyed properties of an interface. - - - Key prefixes are not inherited by sub-interfaces. - - - - - Initializes a default instance of the class. - - - - - Initializes a new instance of the class. - - The prefix for the keyed properties of the interface. - - - - Gets the prefix key added to the properties of the interface. - - - - - is a interface encapsulating a configuration node - used to retrieve configuration values. - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets the name of the node. - - - The Name of the node. - - - - - Gets the value of the node. - - - The Value of the node. - - - - - Gets an of - elements containing all node children. - - The Collection of child nodes. - - - - Gets an of the configuration attributes. - - - - - This is an abstract implementation - that deals with methods that can be abstracted away - from underlying implementations. - - - - AbstractConfiguration makes easier to implementers - to create a new version of - - - - - Gets the value of the node and converts it - into specified . - - The - - The Default value returned if the conversion fails. - - The Value converted into the specified type. - - - - Gets node attributes. - - - All attributes of the node. - - - - - Gets all child nodes. - - The of child nodes. - - - - Gets the name of the . - - - The Name of the . - - - - - Gets the value of . - - - The Value of the . - - - - - Summary description for MutableConfiguration. - - - - - Initializes a new instance of the class. - - The name. - - - - Gets the value of . - - - The Value of the . - - - - - Manages logging. - - - This is a facade for the different logging subsystems. - It offers a simplified interface that follows IOC patterns - and a simplified priority/level/severity abstraction. - - - - - Create a new child logger. - The name of the child logger is [current-loggers-name].[passed-in-name] - - The Subname of this logger. - The New ILogger instance. - If the name has an empty element name. - - - - Logs a debug message. - - The message to log - - - - Logs a debug message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs a info message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message with lazily constructed message. The message will be constructed only if the is true. - - - - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Determines if messages of priority "debug" will be logged. - - True if "debug" messages will be logged. - - - - Determines if messages of priority "error" will be logged. - - True if "error" messages will be logged. - - - - Determines if messages of priority "fatal" will be logged. - - True if "fatal" messages will be logged. - - - - Determines if messages of priority "info" will be logged. - - True if "info" messages will be logged. - - - - Determines if messages of priority "warn" will be logged. - - True if "warn" messages will be logged. - - - - Interface for Context Properties implementations - - - - This interface defines a basic property get set accessor. - - - Based on the ContextPropertiesBase of log4net, by Nicko Cadell. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Creates a new lock. - - - - - - - Encapsulates an invocation of a proxied method. - - - - - Gets the value of the argument at the specified . - - The index. - The value of the argument at the specified . - - - - Returns the concrete instantiation of the on the proxy, with any generic - parameters bound to real types. - - - The concrete instantiation of the on the proxy, or the if - not a generic method. - - - Can be slower than calling . - - - - - Returns the concrete instantiation of , with any - generic parameters bound to real types. - For interface proxies, this will point to the on the target class. - - The concrete instantiation of , or - if not a generic method. - - In debug builds this can be slower than calling . - - - - - Proceeds the call to the next interceptor in line, and ultimately to the target method. - - - Since interface proxies without a target don't have the target implementation to proceed to, - it is important, that the last interceptor does not call this method, otherwise a - will be thrown. - - - - - Overrides the value of an argument at the given with the - new provided. - - - This method accepts an , however the value provided must be compatible - with the type of the argument defined on the method, otherwise an exception will be thrown. - - The index of the argument to override. - The new value for the argument. - - - - Gets the arguments that the has been invoked with. - - The arguments the method was invoked with. - - - - Gets the generic arguments of the method. - - The generic arguments, or null if not a generic method. - - - - Gets the object on which the invocation is performed. This is different from proxy object - because most of the time this will be the proxy target object. - - - The invocation target. - - - - Gets the representing the method being invoked on the proxy. - - The representing the method being invoked. - - - - For interface proxies, this will point to the on the target class. - - The method invocation target. - - - - Gets the proxy object on which the intercepted method is invoked. - - Proxy object on which the intercepted method is invoked. - - - - Gets or sets the return value of the method. - - The return value of the method. - - - - Gets the type of the target object for the intercepted method. - - The type of the target object. - - - - Conract for traversing a . - - - - - Provides functionality for disassembling instances of attributes to CustomAttributeBuilder form, during the process of emiting new types by Dynamic Proxy. - - - - - Disassembles given attribute instance back to corresponding CustomAttributeBuilder. - - An instance of attribute to disassemble - - corresponding 1 to 1 to given attribute instance, or null reference. - - Implementers should return that corresponds to given attribute instance 1 to 1, - that is after calling specified constructor with specified arguments, and setting specified properties and fields with values specified - we should be able to get an attribute instance identical to the one passed in . Implementer can return null - if it wishes to opt out of replicating the attribute. Notice however, that for some cases, like attributes passed explicitly by the user - it is illegal to return null, and doing so will result in exception. - - - - - Because we need to cache the types based on the mixed in mixins, we do the following here: - - Get all the mixin interfaces - - Sort them by full name - - Return them by position - - The idea is to have reproducible behavior for the case that mixins are registered in different orders. - This method is here because it is required - - - - - Identifies a property should be represented as a delimited string value. - - - - - Gets the separator. - - - - - Identifies the dictionary adapter types. - - - - - Represents the scope of uniquenes of names for types and their members - - - - - Gets a unique name based on - Name suggested by the caller - Unique name based on . - - Implementers should provide name as closely resembling as possible. - Generally if no collision occurs it is suggested to return suggested name, otherwise append sequential suffix. - Implementers must return deterministic names, that is when is called twice - with the same suggested name, the same returned name should be provided each time. Non-deterministic return - values, like appending random suffices will break serialization of proxies. - - - - - Returns new, disposable naming scope. It is responsibilty of the caller to make sure that no naming collision - with enclosing scope, or other subscopes is possible. - - New naming scope. - - - - Generates the constructor for the class that extends - - - - - - - - - - - Contract for dictionary meta-data initialization. - - - - - Initializes the given object. - - The dictionary adapter factory. - The dictionary adapter meta. - - - - Determines whether the given behavior should be included in a new - object. - - A dictionary behavior or annotation. - True if the behavior should be included; otherwise, false. - - behaviors are always included, - regardless of the result of this method. - - - - - Contract for dictionary initialization. - - - - - Performs any initialization of the - The dictionary adapter. - The dictionary behaviors. - - - - Enable access to files on network shares - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Creates a new extended logger, getting the logger name from the specified type. - - - - - Creates a new extended logger. - - - - - Gets the configuration file. - - i.e. log4net.config - - - - - - Provides an extension point that allows proxies to choose specific interceptors on - a per method basis. - - - - - Selects the interceptors that should intercept calls to the given . - - The type declaring the method to intercept. - The method that will be intercepted. - All interceptors registered with the proxy. - An array of interceptors to invoke upon calling the . - - This method is called only once per proxy instance, upon the first call to the - . Either an empty array or null are valid return values to indicate - that no interceptor should intercept calls to the method. Although it is not advised, it is - legal to return other implementations than these provided in - . - - - - - Determines whether the specified method is internal. - - The method. - - true if the specified method is internal; otherwise, false. - - - - - Determines whether this assembly has internals visible to dynamic proxy. - - The assembly to inspect. - - - - Checks if the method is public or protected. - - - - - - - - - Provides appropriate Stind.X opcode - for the type of primitive value to be stored indirectly. - - - - - Emits a load indirect opcode of the appropriate type for a value or object reference. - Pops a pointer off the evaluation stack, dereferences it and loads - a value of the specified type. - - - - - - - - - Emits a load opcode of the appropriate kind for a constant string or - primitive value. - - - - - - - - - Emits a load opcode of the appropriate kind for the constant default value of a - type, such as 0 for value types and null for reference types. - - - - - Emits a store indirectopcode of the appropriate type for a value or object reference. - Pops a value of the specified type and a pointer off the evaluation stack, and - stores the value. - - - - - - - - - Registers custom disassembler to handle disassembly of specified type of attributes. - - Type of attributes to handle - Disassembler converting existing instances of Attributes to CustomAttributeBuilders - - When disassembling an attribute Dynamic Proxy will first check if an custom disassembler has been registered to handle attributes of that type, - and if none is found, it'll use the . - - - - - Attributes should be replicated if they are non-inheritable, - but there are some special cases where the attributes means - something to the CLR, where they should be skipped. - - - - - Supporting Logger levels. - - - - - Logging will be off - - - - - Fatal logging level - - - - - Error logging level - - - - - Warn logging level - - - - - Info logging level - - - - - Debug logging level - - - - - Describes a dictionary property. - - - - - Initializes an empty class. - - - - - Initializes a new instance of the class. - - The property. - The annotations. - - - - Initializes a new instance class. - - - - - Copies an existinginstance of the class. - - - - - - - - - Gets the key. - - The dictionary adapter. - The key. - The descriptor. - - - - - - Gets the property value. - - The dictionary adapter. - The key. - The stored value. - The descriptor. - true if return only existing. - - - - - - Sets the property value. - - The dictionary adapter. - The key. - The value. - The descriptor. - - - - - - Adds a single behavior. - - The behavior. - - - - Adds the behaviors. - - The behaviors. - - - - Adds the behaviors. - - The behaviors. - - - - Copies the behaviors to the other - - - - - - - - Copies the - - - - - - - - - - Gets the property name. - - - - - Gets the property type. - - - - - Gets the property. - - The property. - - - - Returns true if the property is dynamic. - - - - - Gets additional state. - - - - - Determines if property should be fetched. - - - - - Determines if property must exist first. - - - - - Determines if notifications should occur. - - - - - Gets the property behaviors. - - - - - Gets the type converter. - - The type converter. - - - - Gets the extended properties. - - - - - Gets the setter. - - The setter. - - - - Gets the key builders. - - The key builders. - - - - Gets the setter. - - The setter. - - - - Gets the getter. - - The getter. - - - - Gets the initializers. - - The initializers. - - - - Gets the meta-data initializers. - - The meta-data initializers. - - - - Converts all properties to strings. - - - - - Gets or sets the format. - - The format. - - - - Constant to use when making assembly internals visible to Castle.Core - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToCastleCore)] - - - - Constant to use when making assembly internals visible to proxy types generated by DynamicProxy. Required when proxying internal types. - [assembly: InternalsVisibleTo(CoreInternalsVisible.ToDynamicProxyGenAssembly2)] - - - - Checks whether or not collection is null or empty. Assumes colleciton can be safely enumerated multiple times. - - - - - - - - - Provides an interface that supports and - allows the storage and retrieval of Contexts. These are supported in - both log4net and NLog. - - - - - Exposes the Global Context of the extended logger. - - - - - Exposes the Thread Context of the extended logger. - - - - - Exposes the Thread Stack of the extended logger. - - - - - Increments IServiceProvider with a generic service resolution operation. - - - - - Defines that the implementation wants a - in order to - access other components. The creator must be aware - that the component might (or might not) implement - the interface. - - - Used by Castle Project components to, for example, - gather logging factories - - - - - Initializes a new instance of the class. - - Target element. This is either target type or target method for invocation types. - The type of the proxy. This is base type for invocation types. - The interfaces. - The options. - - - - Initializes a new instance of the class. - - Type of the target. - The interfaces. - The options. - - - - Default implementation of interface producing in-memory proxy assemblies. - - - - - Initializes a new instance of the class with new . - - - - - Initializes a new instance of the class. - - The module scope for generated proxy types. - - - - Requests support for multi-level editing. - - - - - Suppresses any on-demand behaviors. - - - - - Specifies assignment by reference rather than by copying. - - - - - Holds objects representing methods of class. - - - - - Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue - where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded. - - - - - Summary description for PropertiesCollection. - - - - - Handles error during disassembly process - - Type of the attribute being disassembled - Exception thrown during the process - usually null, or (re)throws the exception - - - - Here we try to match a constructor argument to its value. - Since we can't get the values from the assembly, we use some heuristics to get it. - a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument - b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string). - - - - - We have the following rules here. - Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that - we can convert it. - - - - - Attributes can only accept simple types, so we return null for null, - if the value is passed as string we call to string (should help with converting), - otherwise, we use the value as is (enums, integer, etc). - - - - - Provides simple string formatting from existing properties. - - - - - Gets the string format. - - - - - Gets the format properties. - - - - - Assigns a specific dictionary key. - - - - - Initializes a new instance of the class. - - The key. - - - - Initializes a new instance of the class. - - The compound key. - - - - Removes a property if null or empty string, guid or collection. - - - - - The Level Filtered Logger class. This is a base clase which - provides a LogLevel attribute and reroutes all functions into - one Log method. - - - - - Creates a new LevelFilteredLogger. - - - - - Logs a debug message. - - The message to log - - - - Logs a debug message. - - The exception to log - The message to log - - - - Logs a debug message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a debug message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The message to log - - - - Logs an info message. - - The exception to log - The message to log - - - - Logs an info message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an info message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The message to log - - - - Logs a warn message. - - The exception to log - The message to log - - - - Logs a warn message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a warn message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The message to log - - - - Logs an error message. - - The exception to log - The message to log - - - - Logs an error message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs an error message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The message to log - - - - Logs a fatal message. - - The exception to log - The message to log - - - - Logs a fatal message. - - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Logs a fatal message. - - The exception to log - The format provider to use - Format string for the message to log - Format arguments for the message to log - - - - Implementors output the log content by implementing this method only. - Note that exception can be null - - - - - - - - - - - - - The LoggerLevel that this logger - will be using. Defaults to LoggerLevel.Off - - - - The name that this logger will be using. - Defaults to String.Empty - - - - Determines if messages of priority "debug" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "info" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "warn" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "error" will be logged. - - - true if log level flags include the bit - - - - Determines if messages of priority "fatal" will be logged. - - - true if log level flags include the bit - - - - The Logger sending everything to the standard output streams. - This is mainly for the cases when you have a utility that - does not have a logger to supply. - - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug and the Name - set to String.Empty. - - - - - Creates a new ConsoleLogger with the Name - set to String.Empty. - - The logs Level. - - - - Creates a new ConsoleLogger with the Level - set to LoggerLevel.Debug. - - The logs Name. - - - - Creates a new ConsoleLogger. - - The logs Name. - The logs Level. - - - - A Common method to log. - - The level of logging - The name of the logger - The Message - The Exception - - - - Returns a new ConsoleLogger with the name - added after this loggers name, with a dot in between. - - The added hierarchical name. - A new ConsoleLogger. - - - - Exposes means to change target objects of proxies and invocations - - - - - Changes the target object () of current . - - The new value of target of invocation. - - Although the method takes the actual instance must be of type assignable to , otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - Permanently changes the target object of the proxy. This does not affect target of the current invocation. - - The new value of target of the proxy. - - Although the method takes the actual instance must be of type assignable to proxy's target type, otherwise an will be thrown. - Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target. - In this case last interceptor in the pipeline mustn't call or a will be throws. - Also while it's technically legal to pass proxy itself as , this would create stack overflow. - In this case last interceptor in the pipeline mustn't call or a will be throws. - - Thrown when is not assignable to the proxied type. - - - - This interface should be implemented by classes - that are available in a bigger context, exposing - the container to different areas in the same application. - - For example, in Web application, the (global) HttpApplication - subclasses should implement this interface to expose - the configured container - - - - - - - - - A collection of objects. - - - - - Creates a new instance of ConfigurationCollection. - - - - - Creates a new instance of ConfigurationCollection. - - - - - The Null Logger class. This is useful for implementations where you need - to provide a logger to a utility class, but do not want any output from it. - It also helps when you have a utility that does not have a logger to supply. - - - - - Returns this NullLogger. - - Ignored - This ILogger instance. - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - - - - No-op. - - Ignored - Ignored - Ignored - Ignored - - - - Returns empty context properties. - - - - - Returns empty context properties. - - - - - Returns empty context stacks. - - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - No-op. - - false - - - - New interface that is going to be used by DynamicProxy 2 - - - - - Summary description for ModuleScope. - - - - - The default file name used when the assembly is saved using . - - - - - The default assembly (simple) name used for the assemblies generated by a instance. - - - - - Initializes a new instance of the class; assemblies created by this instance will not be saved. - - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance - should be saved and what simple names are to be assigned to them. - - If set to true saves the generated module. - If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions. - Naming scope used to provide unique names to generated types and their members (usually via sub-scopes). - The simple name of the strong-named assembly generated by this . - The path and file name of the manifest module of the strong-named assembly generated by this . - The simple name of the weak-named assembly generated by this . - The path and file name of the manifest module of the weak-named assembly generated by this . - - - - Returns a type from this scope's type cache, or null if the key cannot be found. - - The key to be looked up in the cache. - The type from this scope's type cache matching the key, or null if the key cannot be found - - - - Registers a type in this scope's type cache. - - The key to be associated with the type. - The type to be stored in the cache. - - - - Gets the key pair used to sign the strong-named assembly generated by this . - - - - - - - Gets the specified module generated by this scope, creating a new one if none has yet been generated. - - If set to true, a strong-named module is returned; otherwise, a weak-named module is returned. - A strong-named or weak-named module generated by this scope, as specified by the parameter. - - - - Gets the strong-named module generated by this scope, creating a new one if none has yet been generated. - - A strong-named module generated by this scope. - - - - Gets the weak-named module generated by this scope, creating a new one if none has yet been generated. - - A weak-named module generated by this scope. - - - - Users of this should use this lock when accessing the cache. - - - - - Gets the strong-named module generated by this scope, or if none has yet been generated. - - The strong-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the strongly named module generated by this scope. - - The file name of the strongly named module generated by this scope. - - - - Gets the weak-named module generated by this scope, or if none has yet been generated. - - The weak-named module generated by this scope, or if none has yet been generated. - - - - Gets the file name of the weakly named module generated by this scope. - - The file name of the weakly named module generated by this scope. - - - - - - - - Readonly implementation of which uses an anonymous object as its source. Uses names of properties as keys, and property values as... well - values. Keys are not case sensitive. - - - - - Initializes a new instance of the class. - - The target. - - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - - is null. - An element with the same key already exists in the object. - The is read-only.-or- The has a fixed size. - - - - Removes all elements from the object. - - The object is read-only. - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - true if the contains an element with the key; otherwise, false. - - - is null. - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - - is null. - The object is read-only.-or- The has a fixed size. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Reads values of properties from and inserts them into using property names as keys. - - - - - - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - Gets a value indicating whether the object is read-only. - - - - true if the object is read-only; otherwise, false. - - - - Gets or sets the with the specified key. - - - - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - Abstract implementation of . - - - - - List of utility methods related to dynamic proxy operations - - - - - Determines whether the specified type is a proxy generated by - DynamicProxy (1 or 2). - - The type. - - true if it is a proxy; otherwise, false. - - - - - The Stream Logger class. This class can stream log information - to any stream, it is suitable for storing a log file to disk, - or to a MemoryStream for testing your components. - - - This logger is not thread safe. - - - - - Creates a new StreamLogger with default encoding - and buffer size. Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - - - Creates a new StreamLogger with default buffer size. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - - - Creates a new StreamLogger. - Initial Level is set to Debug. - - - The name of the log. - - - The stream that will be used for logging, - seeking while the logger is alive - - - The encoding that will be used for this stream. - - - The buffer size that will be used for this stream. - - - - - Creates a new StreamLogger with - Debug as default Level. - - The name of the log. - The StreamWriter the log will write to. - - - - Provides proxy objects for classes and interfaces. - - - - - Initializes a new instance of the class. - - Proxy types builder. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - If true forces all types to be generated into an unsigned module. - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - Object proxying calls to members of on object. - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target - use method. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on object with given . - Interceptors can use interface to provide other target for method invocation than default . - - Type of the interface implemented by which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - Thrown when given does not implement interface. - Thrown when no default constructor exists on actual type of object. - Thrown when default constructor of actual type of throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of types on generated target object. - - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - As a result of that also at least one implementation must be provided. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of type on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not an interface type. - - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . - - Type of the interface which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - Object proxying calls to members of and types on generated target object. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given array is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not an interface type. - - Since this method uses an empty-shell implementation of to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. - They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The target object, calls to which will be intercepted. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no parameterless constructor exists on type . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of type. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no default constructor exists on type . - Thrown when default constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . - - Type of class which will be proxied. - Additional interface types. Calls to their members will be proxied as well. - The proxy generation options used to influence generated proxy type and object. - Arguments of constructor of type which should be used to create a new instance of that type. - The interceptors called during the invocation of proxied methods. - - New object of type proxying calls to virtual members of and types. - - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given object is a null reference (Nothing in Visual Basic). - Thrown when given or any of is a generic type definition. - Thrown when given is not a class type. - Thrown when no constructor exists on type with parameters matching . - Thrown when constructor of type throws an exception. - - This method uses implementation to generate a proxy type. - As such caller should expect any type of exception that given implementation may throw. - - - - - Creates the proxy type for class proxy with given class, implementing given and using provided . - - The base class for proxy type. - The interfaces that proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - Actual type that the proxy type will encompass. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy with target interface for given interface, implementing given on given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Creates the proxy type for interface proxy without target for given interface, implementing given and using provided . - - The interface proxy type should implement. - The additional interfaces proxy type should implement. - The options for proxy generation process. - - of proxy. - - - - Gets or sets the that this log to. - - - - - Gets the proxy builder instance used to generate proxy types. - - The proxy builder. - - - - s - Provides appropriate Ldc.X opcode for the type of primitive value to be loaded. - - - - - Assigns a prefix to the keyed properties using the interface name. - - - - - Identifies a property should be represented as a nested component. - - - - - Applies no prefix. - - - - - Gets or sets the prefix. - - The prefix. - - - - Uses Reflection.Emit to expose the properties of a dictionary - through a dynamic implementation of a typed interface. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generates a new GUID on demand. - - - - \ No newline at end of file diff --git a/scripts/generateRequestFactorySpecified.cmd b/scripts/generateRequestFactorySpecified.cmd index b6620f0d..fe4c28a8 100644 --- a/scripts/generateRequestFactorySpecified.cmd +++ b/scripts/generateRequestFactorySpecified.cmd @@ -13,7 +13,7 @@ SET SRCDIR=Authorize.NET\Api\Contracts\V1 SET OUTFILE=%SRCDIR%\RequestFactoryWithSpecified.generated.org SET INFILE=%SRCDIR%\AnetApiSchema.generated.cs SET BACKUPFILE=%OUTDIR%\RequestFactoryWithSpecified_Backup.generated.org -SET SPECIFIEDFILE=%OUTDIR%\splst.txt +SET SPECIFIEDFILE=%OUTDIR%\splst.txt IF NOT EXIST "%CYGWIN_EXE%" ( @ECHO "%CYGWIN_EXE%" DOES NOT EXIST @@ -52,7 +52,7 @@ IF EXIST "%OUTFILE%" ( @ECHO public static class RequestFactoryWithSpecified >> %OUTFILE% @ECHO {>> %OUTFILE% -"%CYGWIN_EXE%\grep.exe" -i "class\|specified\|typeof\|type\|public" %INFILE% | "%CYGWIN_EXE%\grep.exe" -i -v "string\|event" >> %OUTFILE% +"%CYGWIN_EXE%\grep.exe" -i "class\|specified\|typeof\|type\|public" %INFILE% | "%CYGWIN_EXE%\grep.exe" -i -v "string\|event" >> %OUTFILE% rem creating a back up file "%CYGWIN_EXE%\cp.exe" -f %OUTFILE% %BACKUPFILE% @@ -60,11 +60,11 @@ rem creating a back up file @rem replacing public partial class with public static void "%CYGWIN_EXE%\perl.exe" -p -i -e 's/public partial class/ }\n }\n public static void/g' %OUTFILE% -@ECHO ### Deleting unwanted lines from file - may take sometime +@ECHO ### Deleting unwanted lines from file - may take sometime @rem remove everything after colon public partial class merchantAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged { "%CYGWIN_EXE%\perl.exe" -p -i -e 's/:.*/\n {\n if(null != argument) \n {\n/g if /: object/' %OUTFILE% -@rem remove everything after colon public partial class authenticateTestRequest : ANetApiRequest +@rem remove everything after colon public partial class authenticateTestRequest : ANetApiRequest "%CYGWIN_EXE%\perl.exe" -p -i -e 's/:.*/\n {\n if(null != argument) \n {\n/g if /: ANetApi/' %OUTFILE% @ rem remove "public enum bankAccountTypeEnum" @@ -117,13 +117,13 @@ rem creating a back up file "%CYGWIN_EXE%\perl.exe" -pi -w -e 's/^ *([A-Za-z0-9]*)\[\] *([A-Za-z0-9]*);/ if(null != argument.$2){ foreach( var value in argument.$2) { $1(value);} } /g' "%OUTFILE%" @rem grep all the lines having specified word -"%CYGWIN_EXE%\grep.exe" -i "Specified" %OUTFILE% | "%CYGWIN_EXE%\grep.exe" -v "class" | "%CYGWIN_EXE%\sort.exe" -u > %SPECIFIEDFILE% +"%CYGWIN_EXE%\grep.exe" -i "Specified" %OUTFILE% | "%CYGWIN_EXE%\grep.exe" -v "class" | "%CYGWIN_EXE%\sort.exe" -u > %SPECIFIEDFILE% @rem removing specified word "%CYGWIN_EXE%\perl.exe" -p -i -e 's/Specified;*//g' %SPECIFIEDFILE% @ECHO ### Processing function name - Creating functions @rem replacing "public static void ARBGetSubscriptionListRequest" with "XYZ ARBGetSubscriptionListRequest ABC ARBGetSubscriptionListRequest argument XXX" -"%CYGWIN_EXE%\perl.exe" -pi -w -e 's/^ *public *static *void *([A-Za-z0-9]*)/XYZ $1ABC$1 argumentXXX/g' %OUTFILE% +"%CYGWIN_EXE%\perl.exe" -pi -w -e 's/^ *public *static *void *([A-Za-z0-9]*)/XYZ $1ABC$1 argumentXXX/g' %OUTFILE% @ECHO ### Processing Specified List - Adding if block also may take time FOR /f %%i IN ( %SPECIFIEDFILE%) DO ( @@ -131,14 +131,14 @@ FOR /f %%i IN ( %SPECIFIEDFILE%) DO ( "%CYGWIN_EXE%\perl.exe" -p -i -e 's/ ^ *%%i;//g if ! /specified/' %OUTFILE% "%CYGWIN_EXE%\perl.exe" -p -i -e 's/^ %%iSpecified;/ ifABCargument.%%iXXX { argument.%%iSpecified123=true;}/g if /%%iSpecified/' %OUTFILE% ) - + @rem replace xyz in "XYZ paymentMaskedType ABCpaymentMaskedType argumentXXX" with public static void "%CYGWIN_EXE%\perl.exe" -p -i -e 's/XYZ/ public static void/g' %OUTFILE% @rem replace ABC with ( "%CYGWIN_EXE%\perl.exe" -p -i -e 's/ABC/(/g' %OUTFILE% @rem replace XXX with ) "%CYGWIN_EXE%\perl.exe" -p -i -e 's/XXX/)/g' %OUTFILE% -@rem remove 123 from "argument.taxExemptSpecified123=true; " +@rem remove 123 from "argument.taxExemptSpecified123=true; " "%CYGWIN_EXE%\perl.exe" -p -i -e 's/123//g if /Specified/' %OUTFILE% @rem replacing the string of type "customerPaymentProfileType paymentProfile;" to "customerPaymentProfileType(argument.paymentProfile);" @@ -167,7 +167,7 @@ FOR /f %%i IN ( %SPECIFIEDFILE%) DO ( @ECHO createTransactionRequest >> %OUTFILE% @ECHO getSettledBatchListRequest >> %OUTFILE% @ECHO mobileDeviceRegistrationRequest >> %OUTFILE% -@ECHO updateCustomerPaymentProfileRequest >> %OUTFILE% +@ECHO UpdateCustomerPaymentProfileRequest >> %OUTFILE% @ECHO XXDoNotUseDummyRequest >> %OUTFILE% @ECHO >> %OUTFILE% @ECHO */ >> %OUTFILE% @@ -180,7 +180,7 @@ FOR /f %%i IN ( %SPECIFIEDFILE%) DO ( @ECHO batchDetailsType >> %OUTFILE% @ECHO batchStatisticType >> %OUTFILE% @ECHO customerDataType >> %OUTFILE% -@ECHO customerPaymentProfileBaseType >> %OUTFILE% +@ECHO customerPaymentProfileBaseType >> %OUTFILE% @ECHO customerPaymentProfileExType >> %OUTFILE% @ECHO customerPaymentProfileMaskedType >> %OUTFILE% @ECHO customerPaymentProfileType >> %OUTFILE% @@ -217,9 +217,9 @@ FOR /f %%i IN ( %SPECIFIEDFILE%) DO ( @rem deleting the .bak file created by perl command del /S /Q *.bak > NUL @ECHO The RequestFactoryWithSpecified file is generated @location: "%OUTFILE%" - + @ECHO ************************************************************************ -@ECHO Next Steps: +@ECHO Next Steps: @ECHO 1. Compare the generated file with the previous version of file on Github (.org) @ECHO 2. Run the diff on both the files and apply the differences in RequestFactoryWithSpecified.cs file. @ECHO 3. Commit the new .org file and RequestFactoryWithSpecified.cs file on Github.