2023-04-05 15:02:10 +02:00
|
|
|
using System;
|
2021-08-28 10:04:10 +02:00
|
|
|
using System.Threading;
|
2021-07-12 21:31:46 +02:00
|
|
|
using System.Threading.Tasks;
|
2024-04-09 12:53:23 +02:00
|
|
|
using ShareeBike.Services.Geolocation;
|
2021-07-12 21:31:46 +02:00
|
|
|
using Xamarin.Essentials;
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
namespace SharedBusinessLogic.Tests.Framework.Model.Services.Geolocation
|
2021-07-12 21:31:46 +02:00
|
|
|
{
|
2023-04-05 15:02:10 +02:00
|
|
|
public class GeolocationMock : IGeolocationService
|
2022-09-06 16:08:19 +02:00
|
|
|
{
|
2021-07-12 21:31:46 +02:00
|
|
|
|
2023-04-05 15:02:10 +02:00
|
|
|
public Task<IGeolocation> GetAsync(CancellationToken? cancelToken = null, DateTime? timeStamp = null)
|
2022-09-06 16:08:19 +02:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
2021-07-12 21:31:46 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary> If true location data returned is simulated.</summary>
|
|
|
|
public bool IsSimulation { get => true; }
|
2021-07-12 21:31:46 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
public bool IsGeolcationEnabled => true;
|
|
|
|
}
|
2021-07-12 21:31:46 +02:00
|
|
|
}
|