mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 07:06:33 +01:00
47 lines
1,023 B
C#
47 lines
1,023 B
C#
using ShareeBike.Model.Device;
|
|
using Xamarin.Essentials;
|
|
|
|
namespace SharedBusinessLogic.Tests.Framework.Model.Device
|
|
{
|
|
public class DeviceMock : ISmartDevice
|
|
{
|
|
/// <summary>
|
|
/// Holds the id of the device.
|
|
/// </summary>
|
|
private string m_strDeviceId = "522c6ff6886198fd";
|
|
|
|
public string Manufacturer => "Faiphone";
|
|
|
|
public string Model => "987";
|
|
|
|
public DevicePlatform Platform => DevicePlatform.UWP;
|
|
|
|
public string VersionText => "17.11";
|
|
|
|
/// <summary>
|
|
/// Constructs a device mock object setting device id to default value.
|
|
/// </summary>
|
|
public DeviceMock()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constructs a device mock object.
|
|
/// </summary>
|
|
/// <param name="p_strDeviceId">Mocked Id</param>
|
|
public DeviceMock(string p_strDeviceId)
|
|
{
|
|
m_strDeviceId = p_strDeviceId;
|
|
}
|
|
|
|
/// <summary> Gets the device ID.</summary>
|
|
/// <returns></returns>
|
|
public string Identifier
|
|
=> m_strDeviceId;
|
|
|
|
/// <summary> Close the application. </summary>
|
|
public void CloseApplication()
|
|
{
|
|
}
|
|
}
|
|
}
|