mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 03:56:29 +02:00
Merge branch 'master' into US-166/location-permission
# Conflicts: # TINK/TINK/View/Map/MapPage.xaml.cs # TINKLib/ViewModel/Map/MapPageViewModel.cs # TestFramework/Services/Permissions/PermissionsMock.cs # TestTINKLib/TestTINKLib.csproj
This commit is contained in:
commit
30c4e4879b
80 changed files with 2737 additions and 481 deletions
|
@ -1,6 +1,8 @@
|
|||
using Newtonsoft.Json;
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
using TestFramework;
|
||||
using TestShareeLib;
|
||||
using TINK.Model.State;
|
||||
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ using TINK.Services.BluetoothLock;
|
|||
using TINK.Model.Device;
|
||||
using TINK.Model.User.Account;
|
||||
using TestShareeLib.Repository;
|
||||
using TestFramework.Repository;
|
||||
|
||||
namespace TestTINKLib.Fixtures.UseCases.Logout
|
||||
{
|
||||
|
@ -52,7 +53,7 @@ namespace TestTINKLib.Fixtures.UseCases.Logout
|
|||
Assert.IsTrue(l_oTinkApp.ActiveUser.IsLoggedIn);
|
||||
// There are 6 bikes available and 2, one reserved and one rented by javaminsiter.
|
||||
Assert.AreEqual(
|
||||
8,
|
||||
10,
|
||||
l_oTinkApp.GetConnector(true).Query.GetBikesAsync().Result.Response.Count,
|
||||
"Sum of bikes is 6 occupied plus 2 occupied.");
|
||||
Assert.AreEqual(2,
|
||||
|
@ -66,7 +67,7 @@ namespace TestTINKLib.Fixtures.UseCases.Logout
|
|||
|
||||
Assert.IsFalse(l_oTinkApp.ActiveUser.IsLoggedIn);
|
||||
Assert.AreEqual(
|
||||
6,
|
||||
8,
|
||||
l_oTinkApp.GetConnector(true).Query.GetBikesAsync().Result.Response.Count,
|
||||
"Sum of bikes is 6 occupied, no one occupied because no user is logged in");
|
||||
Assert.AreEqual(
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
using System;
|
||||
using TINK.Model;
|
||||
using TINK.Model.Connector;
|
||||
using TINK.Repository;
|
||||
using TINK.Model.Services.CopriApi.ServerUris;
|
||||
using static TINK.Repository.CopriCallsMemory;
|
||||
using TINK.Services;
|
||||
using NSubstitute;
|
||||
using TINK.Model.Services.Geolocation;
|
||||
|
@ -12,9 +10,9 @@ using TINK.Services.BluetoothLock;
|
|||
using TINK.Model.Device;
|
||||
using TINK.Model.User.Account;
|
||||
using System.Threading.Tasks;
|
||||
using TestShareeLib.Repository;
|
||||
using TestFramework.Repository;
|
||||
|
||||
namespace TestTINKLib.Fixtures.UseCases.Login
|
||||
namespace TestShareeLib.UseCases.Login
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestTinkApp
|
||||
|
@ -48,7 +46,7 @@ namespace TestTINKLib.Fixtures.UseCases.Login
|
|||
|
||||
Assert.IsFalse(l_oTinkApp.ActiveUser.IsLoggedIn);
|
||||
Assert.AreEqual(
|
||||
6,
|
||||
8,
|
||||
l_oTinkApp.GetConnector(true).Query.GetBikesAsync().Result.Response.Count,
|
||||
"Sum of bikes is 6 occupied, no one occupied because no user is logged in");
|
||||
Assert.AreEqual(
|
||||
|
@ -63,7 +61,7 @@ namespace TestTINKLib.Fixtures.UseCases.Login
|
|||
|
||||
Assert.IsTrue(l_oTinkApp.ActiveUser.IsLoggedIn);
|
||||
Assert.AreEqual(
|
||||
8,
|
||||
10,
|
||||
l_oTinkApp.GetConnector(true).Query.GetBikesAsync().Result.Response.Count,
|
||||
"Sum of bikes is 6 occupied plus 2 occupied.");
|
||||
Assert.AreEqual(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue