Add default fake location in settings
This commit is contained in:
parent
d8969aa60a
commit
80c10a1465
@ -32,6 +32,8 @@ namespace eShopOnContainers.Core.Helpers
|
|||||||
private static readonly string IdTokenDefault = string.Empty;
|
private static readonly string IdTokenDefault = string.Empty;
|
||||||
private static readonly bool UseMocksDefault = true;
|
private static readonly bool UseMocksDefault = true;
|
||||||
private static readonly bool UseFakeLocationDefault = false;
|
private static readonly bool UseFakeLocationDefault = false;
|
||||||
|
private static readonly double FakeLatitudeValue = 47.604610d;
|
||||||
|
private static readonly double FakeLongitudeValue = -122.315752d;
|
||||||
private static readonly string UrlBaseDefault = GlobalSetting.Instance.BaseEndpoint;
|
private static readonly string UrlBaseDefault = GlobalSetting.Instance.BaseEndpoint;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -106,7 +108,7 @@ namespace eShopOnContainers.Core.Helpers
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return AppSettings.GetValueOrDefault<double>(IdFakeLatitude);
|
return AppSettings.GetValueOrDefault<double>(IdFakeLatitude, FakeLatitudeValue);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
@ -117,7 +119,7 @@ namespace eShopOnContainers.Core.Helpers
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return AppSettings.GetValueOrDefault<double>(IdFakeLongitude);
|
return AppSettings.GetValueOrDefault<double>(IdFakeLongitude, FakeLongitudeValue);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user