sharee.bike-App/TestFramework/Model/Device/DeviceMock.cs

48 lines
995 B
C#
Raw Normal View History

2022-09-16 11:19:46 +02:00
using TINK.Model.Device;
2022-08-30 15:42:25 +02:00
using Xamarin.Essentials;
2021-07-12 21:31:46 +02:00
2021-11-14 23:27:29 +01:00
namespace TestFramework.Model.Device
2021-07-12 21:31:46 +02:00
{
2022-09-06 16:08:19 +02:00
public class DeviceMock : ISmartDevice
{
/// <summary>
/// Holds the id of the device.
/// </summary>
private string m_strDeviceId = "522c6ff6886198fd";
2022-09-16 11:19:46 +02:00
public string Manufacturer => "Faiphone";
2022-09-06 16:08:19 +02:00
2022-09-16 11:19:46 +02:00
public string Model => "987";
2022-09-06 16:08:19 +02:00
public DevicePlatform Platform => DevicePlatform.UWP;
2022-09-16 11:19:46 +02:00
public string VersionText => "17.11";
2022-09-06 16:08:19 +02:00
/// <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()
{
}
}
2021-07-12 21:31:46 +02:00
}