mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-23 21:36:28 +02:00
Version 3.0.373
This commit is contained in:
parent
f1cbab1d0a
commit
06428d96d9
87 changed files with 1796 additions and 1208 deletions
|
@ -1,4 +1,4 @@
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json;
|
||||
using NUnit.Framework;
|
||||
using TINK.Model.Connector.Updater;
|
||||
using TINK.Repository.Response;
|
||||
|
@ -18,15 +18,17 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""co2saving"" : ""Einsparung: 1,95 kg CO2 und 3,00 EUR bei einer Strecke von 10 KM""
|
||||
""bike_returned"" : {
|
||||
""co2saving"" : ""1,95 kg CO2""
|
||||
}
|
||||
}
|
||||
}");
|
||||
|
||||
var bookingFinshed = response.shareejson.Create();
|
||||
|
||||
Assert.That(
|
||||
bookingFinshed.Co2Saving,
|
||||
Is.EqualTo("Einsparung: 1,95 kg CO2 und 3,00 EUR bei einer Strecke von 10 KM"));
|
||||
Is.EqualTo("1,95 kg CO2"));
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
|
@ -38,7 +40,9 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""user_miniquery"" : {
|
||||
""bike_returned"" : {
|
||||
},
|
||||
""user_miniquery"" : {
|
||||
""title"" : ""Bitte unterstützen Sie unsere Begleitforschung"",
|
||||
""footer"" : ""Herzlichen Dank und viel Spaß bei der nächsten Fahrt!"",
|
||||
""questions"" : {
|
||||
|
@ -114,6 +118,8 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""bike_returned"" : {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -151,10 +157,12 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""user_miniquery"" : {
|
||||
},
|
||||
}
|
||||
}
|
||||
""user_miniquery"" : {
|
||||
},
|
||||
""bike_returned"" : {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
");
|
||||
|
||||
|
@ -186,7 +194,9 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""user_miniquery"" : {
|
||||
""bike_returned"" : {
|
||||
},
|
||||
""user_miniquery"" : {
|
||||
""title"" : ""Bitte unterstützen Sie unsere Begleitforschung"",
|
||||
""footer"" : ""Herzlichen Dank und viel Spaß bei der nächsten Fahrt!"",
|
||||
""questions"" : {
|
||||
|
@ -230,7 +240,9 @@ namespace TestShareeLib.Model.Connector.Updater
|
|||
var response = JsonConvert.DeserializeObject<ResponseContainer<DoReturnResponse>>(@"
|
||||
{
|
||||
""shareejson"" : {
|
||||
""user_miniquery"" : {
|
||||
""bike_returned"" : {
|
||||
},
|
||||
""user_miniquery"" : {
|
||||
""title"" : ""Bitte unterstützen Sie unsere Begleitforschung"",
|
||||
""footer"" : ""Herzlichen Dank und viel Spaß bei der nächsten Fahrt!"",
|
||||
""questions"" : {
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
{
|
||||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StartAsync(); // polling must be restarted again
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
|
@ -167,7 +167,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "Make sure you have granted Bluetooth permission to the app. Step as close as possible to the bike lock and try again.", "OK");
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -230,7 +230,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "The process is motion sensitive. Step close to the lock, do not move, and try again.", "OK");
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -294,7 +294,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "Lock bolt is blocked. Make sure that no spoke or any other obstacle prevents the lock from closing and try again.", "OK");
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -365,7 +365,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
#if USELOCALINSTANCE
|
||||
locks.Received()[0].CloseAsync(); // Lock must be closed
|
||||
#endif
|
||||
|
@ -444,7 +444,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
#if USELOCALINSTANCE
|
||||
locks.Received()[0].CloseAsync(); // Lock must be closed
|
||||
connector.Command.UpdateLockingStateAsync(bike, Arg.Any<LocationDto>());
|
||||
|
@ -520,7 +520,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
#if USELOCALINSTANCE
|
||||
locks.Received()[0].CloseAsync(); // Lock must be closed
|
||||
connector.Command.UpdateLockingStateAsync(bike, Arg.Any<LocationDto>());
|
||||
|
@ -597,7 +597,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
#if USELOCALINSTANCE
|
||||
locks.Received()[0].CloseAsync(); // Lock must be closed
|
||||
connector.Command.UpdateLockingStateAsync(bike, Arg.Any<LocationDto>());
|
||||
|
|
|
@ -792,7 +792,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StartAsync(); // polling must be restarted again
|
||||
|
@ -857,7 +857,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "Make sure you have granted Bluetooth permission to the app. Step as close as possible to the bike lock and try again.", "OK");
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -922,7 +922,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert(
|
||||
"Lock could not be closed!",
|
||||
|
@ -991,7 +991,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Internet must be available for updating lock status. Please establish an Internet connection!";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
@ -1057,7 +1057,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Connection error on updating locking status.";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
@ -1123,7 +1123,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Status error on updating lock state.";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
|
|
@ -93,7 +93,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Disconnecting lock...";
|
||||
locks.DisconnectAsync(Arg.Any<int>(), Arg.Any<Guid>());
|
||||
|
@ -158,7 +158,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "Make sure you have granted Bluetooth permission to the app. Step as close as possible to the bike lock and try again.", "OK");
|
||||
|
@ -223,7 +223,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAdvancedAlert(
|
||||
|
@ -362,7 +362,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
"Bike could not be rented!",
|
||||
"A stable Internet connection is required. Connect to WIFI or to mobile network and activate mobile data. Try again.",
|
||||
"OK");
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Disconnecting lock...";
|
||||
locks.DisconnectAsync(Arg.Any<int>(), Arg.Any<Guid>());
|
||||
|
@ -432,7 +432,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
connector.Command.DoBookAsync(bike);
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Bike could not be rented!", "Exception message.", "OK");
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Disconnecting lock...";
|
||||
locks.DisconnectAsync(Arg.Any<int>(), Arg.Any<Guid>());
|
||||
|
|
|
@ -162,7 +162,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
"Bike could not be rented!",
|
||||
"A stable Internet connection is required. Connect to WIFI or to mobile network and activate mobile data. Try again.",
|
||||
"OK");
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
pollingManager.StartAsync(); // polling must be restarted again
|
||||
|
@ -232,7 +232,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
"Exception message.",
|
||||
"Please try again.",
|
||||
"OK");
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
pollingManager.StartAsync(); // polling must be restarted again
|
||||
|
@ -292,7 +292,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Canceling reservation...";
|
||||
connector.Command.DoCancelReservation(bike);
|
||||
|
@ -361,7 +361,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert(
|
||||
|
@ -432,7 +432,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert(
|
||||
|
@ -510,7 +510,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Canceling reservation...";
|
||||
connector.Command.DoCancelReservation(bike);
|
||||
|
@ -581,7 +581,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Canceling reservation...";
|
||||
connector.Command.DoCancelReservation(bike);
|
||||
|
@ -652,7 +652,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.Re
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
locks[0].CloseAsync();
|
||||
bikesViewModel.ActionText = "Canceling reservation...";
|
||||
connector.Command.DoCancelReservation(bike);
|
||||
|
|
|
@ -682,7 +682,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StartAsync(); // polling must be restarted again
|
||||
|
@ -743,7 +743,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert("Lock could not be closed!", "Make sure you have granted Bluetooth permission to the app. Step as close as possible to the bike lock and try again.", "OK");
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -808,7 +808,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
viewService.DisplayAlert(
|
||||
"Lock could not be closed!",
|
||||
|
@ -877,7 +877,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Internet must be available for updating lock status. Please establish an Internet connection!";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
@ -943,7 +943,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Connection error on updating locking status.";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
@ -1009,7 +1009,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
bikesViewModel.ActionText = "Updating lock state...";
|
||||
bikesViewModel.ActionText = "Status error on updating lock state.";
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock
|
|||
//Step.StartingQueryingLocation
|
||||
bikesViewModel.ActionText = "Start query location...";
|
||||
//Step.ClosingLock
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
//Step.WaitStopPollingQueryLocation
|
||||
bikesViewModel.ActionText = "Query location...";
|
||||
//Step.UpdateLockingState
|
||||
|
@ -166,7 +166,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.BluetoothLock
|
|||
//Step.StartingQueryingLocation
|
||||
bikesViewModel.ActionText = "Start query location...";
|
||||
//Step.ClosingLock
|
||||
bikesViewModel.ActionText = "Stay with the bike until the lock is closed.";
|
||||
bikesViewModel.ActionText = "The lock bolt moves through the spokes of the rear wheel.";
|
||||
//Step.WaitStopPollingQueryLocation
|
||||
bikesViewModel.ActionText = "Query location...";
|
||||
//Step.UpdateLockingState
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.CopriLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>(), Arg.Any<string>());
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>());
|
||||
bikesViewModel.ActionText = "Submitting feedback...";
|
||||
connector.Command.DoSubmitFeedback(Arg.Any<TINK.Model.Connector.IUserFeedback>(), Arg.Any<Uri>()); // Booking must be performed
|
||||
bikesViewModel.ActionText = string.Empty;
|
||||
|
@ -117,7 +117,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.CopriLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>(), Arg.Any<string>());
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>());
|
||||
bikesViewModel.ActionText = "Submitting feedback...";
|
||||
connector.Command.DoSubmitFeedback(Arg.Any<TINK.Model.Connector.IUserFeedback>(), Arg.Any<Uri>()); // Booking must be performed
|
||||
bikesViewModel.ActionText = "Updating...";
|
||||
|
@ -176,7 +176,7 @@ namespace TestShareeLib.ViewModel.Bikes.Bike.CopriLock.RequestHandler
|
|||
bikesViewModel.Received(1).IsIdle = false; // GUI must be locked
|
||||
bikesViewModel.ActionText = "One moment please...";
|
||||
pollingManager.StopAsync(); // Polling must be stopped before any COPR and lock service action
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>(), Arg.Any<string>());
|
||||
viewService.DisplayUserFeedbackPopup(Arg.Any<IBatteryMutable>());
|
||||
bikesViewModel.ActionText = "Submitting feedback...";
|
||||
connector.Command.DoSubmitFeedback(Arg.Any<TINK.Model.Connector.IUserFeedback>(), Arg.Any<Uri>()); // Booking must be performed
|
||||
viewService.PushModalAsync(ViewTypes.MiniSurvey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue