Removed legacy permission lib and updated code to use essentials lib.

This commit is contained in:
Tobias Reski 2021-11-15 09:51:06 +01:00
parent ba3f987d2a
commit 4993778c42
21 changed files with 6 additions and 826 deletions

View file

@ -46,7 +46,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.Account
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -85,7 +84,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.Account
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -125,7 +123,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.Account
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -164,7 +161,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.Account
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Offline
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -214,7 +210,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.Account
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Offline
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version

View file

@ -48,7 +48,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -123,7 +122,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -197,7 +195,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
currentVersion: new Version(3, 2, 0, 115), // Current app version
lastVersion: new Version(3, 0, 173)); // Current app version. Must be larger or equal 3.0.173 to
@ -264,7 +261,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
currentVersion: new Version(3, 2, 0, 115), // Current app version
lastVersion: new Version(3, 0, 173));
@ -331,7 +327,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false,
currentVersion: new Version(3, 2, 0, 115), // Current app version
lastVersion: new Version(3, 0, 173)); // Current app version. Must be larger or equal 3.0.173 to
@ -412,7 +407,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false,
currentVersion: new Version(3, 2, 0, 115), // Current app version
lastVersion: new Version(3, 0, 173)); // Current app version. Must be larger or equal 3.0.173 to
@ -495,7 +489,6 @@ namespace TestTINKLib.Fixtures.UseCases.Startup
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false,
currentVersion: new Version(3, 2, 0, 115), // Current app version
lastVersion: new Version(3, 0, 173)); // Current app version. Must be larger or equal 3.0.173 to

View file

@ -60,7 +60,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -132,7 +131,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -209,7 +207,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -310,7 +307,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -417,7 +413,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -521,7 +516,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -623,7 +617,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -717,7 +710,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -788,7 +780,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -860,7 +851,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -933,7 +923,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Not connected.
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -1016,7 +1005,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Not connected.
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -1103,7 +1091,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Not connected.
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version

View file

@ -75,7 +75,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -166,7 +165,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -265,7 +263,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -359,7 +356,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -451,7 +447,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions,
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -537,7 +532,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => true,
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -598,7 +592,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions
isConnectedFunc: () => false, // Offline
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -673,7 +666,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
new PermissionsMock(),
isConnectedFunc: () => false, // Offline
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version
@ -751,7 +743,6 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
new DeviceMock(),
new SpecialFolderMock(),
null, // Cipher
null, // Permissions.
isConnectedFunc: () => false, // Offline
postAction: (d, obj) => d(obj),
currentVersion: new Version(3, 2, 0, 115), // Current app version