Class DeviceStub
The device stub implementation for unit tests.
Implements
Inherited Members
Namespace: Phoenix.Test.DeviceMockSystem
Assembly: Phoenix.Test.Infrastructure.dll
Syntax
public class DeviceStub : CapabilityStubBase
Constructors
View SourceDeviceStub(IPAddress, String, String)
Initializes a new instance of the DeviceStub class.
Declaration
public DeviceStub(IPAddress ipAddress, string name, string configuration = "")
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | ipAddress | The IP address of the device. |
System.String | name | The name of the device if known. |
System.String | configuration | Device configuration. |
Properties
View SourceAlias
Gets or sets a user defined alias for the device.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AttachedObjectModel
Declaration
public object AttachedObjectModel { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Configuration
Gets or sets the configuration string for this device.
Declaration
public string Configuration { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ConfigurationType
Declaration
public string ConfigurationType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ConnectionStatus
Gets or sets a value indicating the device connection status.
Declaration
public DeviceConnectionStatus ConnectionStatus { get; set; }
Property Value
Type | Description |
---|---|
DeviceConnectionStatus |
DeviceImplementation
Gets or sets the underlying device implementation.
Declaration
public object DeviceImplementation { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
DeviceTypeDisplayName
Gets or sets the display name of the device type.
Declaration
public string DeviceTypeDisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DeviceTypeName
Gets or sets the device type name.
Declaration
public string DeviceTypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
Gets the display name for UI and logging. This is the Name if valid or the IPAddress.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets or sets the unique identifier for the device.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IPAddress
Gets or sets the IPAddress of the device.
Declaration
public IPAddress IPAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
Name
Gets or sets the name of the device.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PhoenixId
Gets a value representing the identifier phoenix places on the device for tracking.
Declaration
public Guid PhoenixId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
XboxLiveDeviceId
Gets a value representing the XBL device Id.
Declaration
public string XboxLiveDeviceId { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceCleanup()
Performs device cleanup
Declaration
public virtual void Cleanup()
Serialize()
Declaration
public SerializableIDevice Serialize()
Returns
Type | Description |
---|---|
SerializableIDevice |