Class CompatibilityProxyBase
Base class for proxies that need to inject application ID handling methods for unit testing.
For internal use only.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.InventoryService.Compatibility
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public abstract class CompatibilityProxyBase
Constructors
CompatibilityProxyBase(Func<Guid>, Action<Guid>, Func<IEnumerable<Guid>>)
Creates a new instance of WarehouseInventoryProxy with delegates to isolate external dependencies.
Declaration
protected CompatibilityProxyBase(Func<Guid> getApplicationId, Action<Guid> setApplicationId, Func<IEnumerable<Guid>> listApplicationIds)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Guid> | getApplicationId | A function returning the current application ID. |
System.Action<System.Guid> | setApplicationId | An action setting the current application ID. |
System.Func<System.Collections.Generic.IEnumerable<System.Guid>> | listApplicationIds | A function listing all known application IDs. |
Methods
AsApplication(Guid, Action)
Declaration
protected void AsApplication(Guid applicationId, Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | applicationId | |
System.Action | action |
GetApplicationId()
Declaration
protected Guid GetApplicationId()
Returns
Type | Description |
---|---|
System.Guid |
ListApplicationIds()
Declaration
protected IEnumerable<Guid> ListApplicationIds()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Guid> |
SetApplicationId(Guid)
Declaration
protected void SetApplicationId(Guid value)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | value |