Class DeviceFactoryStubBase
The abstract base class for all device factory stubs.
Namespace: Phoenix.Test.DeviceMockSystem
Assembly: Phoenix.Test.Infrastructure.dll
Syntax
public abstract class DeviceFactoryStubBase : IDeviceFactory
Constructors
View SourceDeviceFactoryStubBase(DeviceStubExporter, String)
Initializes a new instance of the DeviceFactoryStubBase class.
Declaration
protected DeviceFactoryStubBase(DeviceStubExporter exporter, string deviceName)
Parameters
Type | Name | Description |
---|---|---|
DeviceStubExporter | exporter | The device stub exporter. |
System.String | deviceName | The name of the device. |
Properties
View SourceDeviceTypeAliases
Declaration
public IEnumerable<string> DeviceTypeAliases { get; protected set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
DeviceTypeDisplayName
Gets or sets the display name of the device.
Declaration
public string DeviceTypeDisplayName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
DeviceTypeName
Gets or sets the name of the device.
Declaration
public string DeviceTypeName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
IconUri
Gets or sets a value representing the URI for the device type icon.
Declaration
public Uri IconUri { get; protected set; }
Property Value
Type | Description |
---|---|
System.Uri |
Methods
View SourceCreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)
Creates an instance of the device from an IP Address.
Declaration
public IDevice CreateDeviceInstance(IPAddress address, string name, string alias, string configType, string configuration, string deviceId, Guid phoenixId)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address | The IP address of the device. |
System.String | name | The name of the device if known. |
System.String | alias | The alias of the device if known. |
System.String | configType | Device specific configuration type. |
System.String | configuration | Device specific configuration string. |
System.String | deviceId | The expected device id that will be matched to the id the device provides. |
System.Guid | phoenixId | The id for the device |
Returns
Type | Description |
---|---|
IDevice | The created device. |