sharee.bike-App/TestTINKLib/Mocks/Services/GeolocationMock.cs
2021-08-28 10:04:10 +02:00

23 lines
593 B
C#

using System;
using System.Threading;
using System.Threading.Tasks;
using TINK.Model.Services.Geolocation;
using Xamarin.Essentials;
namespace TestTINKLib.Mocks.Services
{
public class GeolocationMock : IGeolocation
{
public Task<Location> GetAsync(CancellationToken? cancelToken = null, DateTime? timeStamp = null)
{
throw new NotImplementedException();
}
/// <summary> If true location data returned is simulated.</summary>
public bool IsSimulation { get => true; }
public bool IsGeolcationEnabled => true;
}
}