Manually merged.

This commit is contained in:
Oliver Hauff 2021-12-08 17:58:06 +01:00
parent c7c9f252af
commit e5c09b9b8d
33 changed files with 39827 additions and 529 deletions

View file

@ -26,6 +26,7 @@ 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,6 +49,7 @@ 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

View file

@ -9,6 +9,7 @@ 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 TestFramework.Repository;
@ -24,6 +25,7 @@ namespace TestShareeLib.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(
@ -40,6 +42,7 @@ namespace TestShareeLib.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*/);