Show / Hide Table of Contents

Class DeviceStub

The device stub implementation for unit tests.

Inheritance
System.Object
CapabilityStubBase
DeviceStub
Implements
IDevice
Inherited Members
CapabilityStubBase.AddInterfaceCapabilityStub(Type, Object)
CapabilityStubBase.SetDeviceCapabilityMap(Dictionary<Type, Object>)
CapabilityStubBase.GetCapabilityInterface<T>()
CapabilityStubBase.HasCapabilityInterface(Type)
Namespace: Phoenix.Test.DeviceMockSystem
Assembly: Phoenix.Test.Infrastructure.dll
Syntax
public class DeviceStub : CapabilityStubBase

Constructors

View Source

DeviceStub(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 Source

Alias

Gets or sets a user defined alias for the device.

Declaration
public string Alias { get; set; }
Property Value
Type Description
System.String
View Source

AttachedObjectModel

Declaration
public object AttachedObjectModel { get; set; }
Property Value
Type Description
System.Object
View Source

Configuration

Gets or sets the configuration string for this device.

Declaration
public string Configuration { get; set; }
Property Value
Type Description
System.String
View Source

ConfigurationType

Declaration
public string ConfigurationType { get; set; }
Property Value
Type Description
System.String
View Source

ConnectionStatus

Gets or sets a value indicating the device connection status.

Declaration
public DeviceConnectionStatus ConnectionStatus { get; set; }
Property Value
Type Description
DeviceConnectionStatus
View Source

DeviceImplementation

Gets or sets the underlying device implementation.

Declaration
public object DeviceImplementation { get; set; }
Property Value
Type Description
System.Object
View Source

DeviceTypeDisplayName

Gets or sets the display name of the device type.

Declaration
public string DeviceTypeDisplayName { get; set; }
Property Value
Type Description
System.String
View Source

DeviceTypeName

Gets or sets the device type name.

Declaration
public string DeviceTypeName { get; set; }
Property Value
Type Description
System.String
View Source

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
View Source

Id

Gets or sets the unique identifier for the device.

Declaration
public string Id { get; set; }
Property Value
Type Description
System.String
View Source

IPAddress

Gets or sets the IPAddress of the device.

Declaration
public IPAddress IPAddress { get; set; }
Property Value
Type Description
System.Net.IPAddress
View Source

Name

Gets or sets the name of the device.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
View Source

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
View Source

XboxLiveDeviceId

Gets a value representing the XBL device Id.

Declaration
public string XboxLiveDeviceId { get; }
Property Value
Type Description
System.String

Methods

View Source

Cleanup()

Performs device cleanup

Declaration
public virtual void Cleanup()
View Source

Serialize()

Declaration
public SerializableIDevice Serialize()
Returns
Type Description
SerializableIDevice

Implements

IDevice
  • View Source
In This Article
Back to top Generated by DocFX