Show / Hide Table of Contents

Class MockSystem

Represents mock payment service (can be used for testing). Mock provider is driven by card pool configured in 'accounts" section (see sample config in ExternalCfg.LACONF)

Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<System.Object>
ServiceWithInstrumentationBase<System.Object>
PaySystem
MockSystem
Implements
IApplicationComponent
System.IDisposable
IService
ILocalizedTimeProvider
IWebClientCaller
IPaySystemImplementation
IPaySystem
INamed
IConfigurable
IInstrumentable
IExternallyParameterized
Inherited Members
PaySystem.CONFIG_PAYMENT_PROCESSING_SECTION
PaySystem.CONFIG_CURRENCY_MARKET_SECTION
PaySystem.CONFIG_CURRENCIES_SECTION
PaySystem.CONFIG_PAY_SYSTEM_HOST_SECTION
PaySystem.CONFIG_PAY_SYSTEM_SECTION
PaySystem.CONFIG_AUTO_START_ATTR
PaySystem.CONFIG_FEE_FLAT_ATTR
PaySystem.CONFIG_FEE_PCT_ATTR
PaySystem.CONFIG_FEE_TRAN_TYPE_ATTR
PaySystem.PaySystemHost
PaySystem.IsPaySystemHost
PaySystem.___SetPaySystemHost(IPaySystemHostImplementation)
PaySystem.Instances
PaySystem.AutoStartSystems()
PaySystem.Make<TPaySystem>(String, IConfigSectionNode)
PaySystem.Make<TPaySystem>(String, String, String)
PaySystem.Destructor()
PaySystem.Sessions
PaySystem.ChargeFeeKind
PaySystem.TransferFeeKind
PaySystem.SupportedCurrencies
PaySystem.InstrumentationEnabled
PaySystem.DefaultSessionConnectParamsCfg
PaySystem.CurrenciesCfg
PaySystem.LogLevel
PaySystem.WebServiceCallTimeoutMs
PaySystem.KeepAlive
PaySystem.Pipelined
PaySystem.StartSession(ConnectionParameters, IPaySessionContext)
PaySystem.IsTransactionTypeSupported(TransactionType, String)
PaySystem.DefaultSessionConnectParams
PaySystem.DoVerifyPotentialTransaction(PaySession, TransactionType, Account, Account, Amount)
PaySystem.DoRefresh(PaySession, Transaction, Object)
PaySystem.DoConfigure(IConfigSectionNode)
PaySystem.DoStart()
PaySystem.DoWaitForCompleteStop()
PaySystem.DoAcceptManagerVisit(Object, DateTime)
PaySystem.Log(MessageType, String, String, Exception, Nullable<Guid>, String)
PaySystem.StatChargeError()
PaySystem.StatCharge(Amount)
PaySystem.StatCaptureError()
PaySystem.StatCapture(Transaction, Nullable<Decimal>)
PaySystem.StatRefundError()
PaySystem.StatRefund(Transaction, Nullable<Decimal>)
PaySystem.StatVoidError()
PaySystem.StatVoid(Transaction)
PaySystem.StatTransferError()
PaySystem.StatTransfer(Amount)
ServiceWithInstrumentationBase<Object>.ExternalParameters
ServiceWithInstrumentationBase<Object>.ExternalParametersForGroups(String[])
ServiceWithInstrumentationBase<Object>.ExternalGetParameter(String, Object, String[])
ServiceWithInstrumentationBase<Object>.ExternalSetParameter(String, Object, String[])
Service<Object>.ComponentDirector
Service.CONFIG_NAME_ATTR
Service.ApplicationDontAutoStartService
Service.Status
Service.Running
Service.Name
Service.TimeLocation
Service.LocalizedTime
Service.Configure(IConfigSectionNode)
Service.Start()
Service.SignalStop()
Service.CheckForCompleteStop()
Service.WaitForCompleteStop()
Service.AcceptManagerVisit(Object, DateTime)
Service.UniversalTimeToLocalizedTime(DateTime)
Service.LocalizedTimeToUniversalTime(DateTime)
Service.AbortStart()
Service.DoSignalStop()
Service.DoCheckForCompleteStop()
Service.CheckServiceInactive()
Service.CheckServiceActive()
Service.CheckServiceActiveOrStarting()
Service.____ObtainPrivateServiceStatusLockObject()
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web.Pay.Mock
Assembly: NFX.Web.dll
Syntax
public sealed class MockSystem : PaySystem, IApplicationComponent, IDisposable, IService, ILocalizedTimeProvider, IWebClientCaller, IPaySystemImplementation, IPaySystem, INamed, IConfigurable, IInstrumentable, IExternallyParameterized

Constructors

MockSystem(String, IConfigSectionNode)

Declaration
public MockSystem(string name, IConfigSectionNode node)
Parameters
Type Name Description
System.String name
IConfigSectionNode node

MockSystem(String, IConfigSectionNode, Object)

Declaration
public MockSystem(string name, IConfigSectionNode node, object director)
Parameters
Type Name Description
System.String name
IConfigSectionNode node
System.Object director

Fields

CONFIG_ACCOUNT_DATA_NODE

Declaration
public const string CONFIG_ACCOUNT_DATA_NODE = "account-data"
Field Value
Type Description
System.String

CONFIG_ACCOUNTS_SECTION

Declaration
public const string CONFIG_ACCOUNTS_SECTION = "accounts"
Field Value
Type Description
System.String

Properties

AccountsCfg

Declaration
[Config("accounts")]
public IConfigSectionNode AccountsCfg { get; set; }
Property Value
Type Description
IConfigSectionNode

ComponentCommonName

Declaration
public override string ComponentCommonName { get; }
Property Value
Type Description
System.String
Overrides
ApplicationComponent.ComponentCommonName

WebTerminal

Declaration
public override IPayWebTerminal WebTerminal { get; }
Property Value
Type Description
IPayWebTerminal
Overrides
PaySystem.WebTerminal

Methods

DoCapture(PaySession, Transaction, Nullable<Decimal>, String, Object)

Declaration
protected override bool DoCapture(PaySession session, Transaction charge, decimal ? amount = default (decimal ? ), string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
System.Nullable<System.Decimal> amount
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoCapture(PaySession, Transaction, Nullable<Decimal>, String, Object)

DoCharge(PaySession, Account, Account, Amount, Boolean, String, Object)

Declaration
protected override Transaction DoCharge(PaySession session, Account from, Account to, Amount amount, bool capture = true, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Account from
Account to
Amount amount
System.Boolean capture
System.String description
System.Object extraData
Returns
Type Description
Transaction
Overrides
PaySystem.DoCharge(PaySession, Account, Account, Amount, Boolean, String, Object)

DoRefund(PaySession, Transaction, Nullable<Decimal>, String, Object)

Declaration
protected override bool DoRefund(PaySession session, Transaction charge, decimal ? amount = default (decimal ? ), string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
System.Nullable<System.Decimal> amount
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoRefund(PaySession, Transaction, Nullable<Decimal>, String, Object)

DoStartSession(ConnectionParameters, IPaySessionContext)

Declaration
protected override PaySession DoStartSession(ConnectionParameters cParams, IPaySessionContext context = null)
Parameters
Type Name Description
ConnectionParameters cParams
IPaySessionContext context
Returns
Type Description
PaySession
Overrides
PaySystem.DoStartSession(ConnectionParameters, IPaySessionContext)

DoTransfer(PaySession, Account, Account, Amount, String, Object)

Declaration
protected override Transaction DoTransfer(PaySession session, Account from, Account to, Amount amount, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Account from
Account to
Amount amount
System.String description
System.Object extraData
Returns
Type Description
Transaction
Overrides
PaySystem.DoTransfer(PaySession, Account, Account, Amount, String, Object)

DoVoid(PaySession, Transaction, String, Object)

Declaration
protected override bool DoVoid(PaySession session, Transaction charge, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoVoid(PaySession, Transaction, String, Object)

MakeDefaultSessionConnectParams(IConfigSectionNode)

Declaration
protected override ConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
Parameters
Type Name Description
IConfigSectionNode paramsSection
Returns
Type Description
ConnectionParameters
Overrides
PaySystem.MakeDefaultSessionConnectParams(IConfigSectionNode)

Implements

IApplicationComponent
System.IDisposable
IService
ILocalizedTimeProvider
IWebClientCaller
IPaySystemImplementation
IPaySystem
INamed
IConfigurable
IInstrumentable
IExternallyParameterized

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX