sharee.bike-App/TestTINKLib/Mocks/Services/GeolocationMock.cs

23 lines
593 B
C#
Raw Normal View History

2021-07-12 21:31:46 +02:00
using System;
using System.Threading;
2021-07-12 21:31:46 +02:00
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)
2021-07-12 21:31:46 +02:00
{
throw new NotImplementedException();
}
/// <summary> If true location data returned is simulated.</summary>
public bool IsSimulation { get => true; }
public bool IsGeolcationEnabled => true;
}
}