mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-19 03:27:29 +02:00
Removed legacy permission lib and updated code to use essentials lib.
This commit is contained in:
parent
ba3f987d2a
commit
4993778c42
21 changed files with 6 additions and 826 deletions
|
@ -9,8 +9,6 @@ using TINK.Model.Services.Geolocation;
|
|||
using TINK.Services.BluetoothLock;
|
||||
using TINK.Model.Device;
|
||||
using TINK.Model.User.Account;
|
||||
using Plugin.Permissions.Abstractions;
|
||||
|
||||
using TestShareeLib.Repository;
|
||||
|
||||
namespace TestTINKLib.Fixtures.UseCases.Logout
|
||||
|
@ -25,7 +23,6 @@ namespace TestTINKLib.Fixtures.UseCases.Logout
|
|||
var locksService = Substitute.For<ILocksService>();
|
||||
var device = Substitute.For<ISmartDevice>();
|
||||
var specialFolder = Substitute.For<ISpecialFolder>();
|
||||
var permissions = Substitute.For<IPermissions>();
|
||||
var account = Substitute.For<IAccount>();
|
||||
|
||||
accountStore.Load().Returns(account);
|
||||
|
@ -48,7 +45,6 @@ namespace TestTINKLib.Fixtures.UseCases.Logout
|
|||
device,
|
||||
specialFolder,
|
||||
null, // Cipher
|
||||
permissions,
|
||||
isConnectedFunc: () => true,
|
||||
currentVersion: new Version(3, 2, 0, 115),
|
||||
lastVersion: new Version(3, 0, 173)); // Current app version. Must be larger or equal 3.0.173 to
|
||||
|
|
|
@ -11,7 +11,6 @@ using TINK.Model.Services.Geolocation;
|
|||
using TINK.Services.BluetoothLock;
|
||||
using TINK.Model.Device;
|
||||
using TINK.Model.User.Account;
|
||||
using Plugin.Permissions.Abstractions;
|
||||
using System.Threading.Tasks;
|
||||
using TestShareeLib.Repository;
|
||||
|
||||
|
@ -27,7 +26,6 @@ namespace TestTINKLib.Fixtures.UseCases.Login
|
|||
var locksService = Substitute.For<ILocksService>();
|
||||
var device = Substitute.For<ISmartDevice>();
|
||||
var specialFolder = Substitute.For<ISpecialFolder>();
|
||||
var permissions = Substitute.For<IPermissions>();
|
||||
|
||||
// No user logged in is initial state to verify.
|
||||
var l_oTinkApp = new TinkApp(
|
||||
|
@ -44,7 +42,6 @@ namespace TestTINKLib.Fixtures.UseCases.Login
|
|||
device,
|
||||
specialFolder,
|
||||
null, // Cipher
|
||||
permissions,
|
||||
isConnectedFunc: () => true,
|
||||
currentVersion: new Version(3, 2, 0, 115),
|
||||
lastVersion: new Version(3, 0, 173) /* Current app version. Must be larger or equal 3.0.173 to lastVersion*/);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue