mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-07-07 20:16:44 +02:00
Version 3.0.376
This commit is contained in:
parent
ca080c87c0
commit
f963c0a219
158 changed files with 3228 additions and 1279 deletions
|
@ -162,7 +162,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.ViewModel
|
|||
permissions,
|
||||
bluetooth,
|
||||
Device.Android,
|
||||
new TINK.Model.Stations.StationNS.Station("102", new List<string>(), null), // Station 102
|
||||
new TINK.Model.Stations.StationNS.Station("102", new List<string>(), null /* position*/, operatorUri: new Uri("https://shareeapp-fr01.copri.eu//APIjsonserver")), // Station 102
|
||||
() => tinkApp.GetIsConnected(),
|
||||
(isConnected) => tinkApp.GetConnector(isConnected),
|
||||
geolocation.Active, // geolocation
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
using NUnit.Framework;
|
||||
using TINK.ViewModel.Info;
|
||||
|
||||
namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.Info
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestInfoViewModel
|
||||
{
|
||||
[Test]
|
||||
public void TestOnAppearing()
|
||||
{
|
||||
var viewModel = new InfoPageViewModel(
|
||||
"Hosti",
|
||||
"agbResourcePath",
|
||||
"privacyResourcePath",
|
||||
"impressResourcePath",
|
||||
false,
|
||||
(url) => string.Empty,
|
||||
() => null,
|
||||
(resourceUrls) => { });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using NUnit.Framework;
|
||||
using TINK.ViewModel.LegalInformation;
|
||||
|
||||
namespace TestTINKLib.Fixtures.ObjectTests.ViewModel.LegalInformation
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestLegalInformationViewModel
|
||||
{
|
||||
[Test]
|
||||
public void TestOnAppearing()
|
||||
{
|
||||
var viewModel = new LegalInformationPageViewModel(
|
||||
"Host",
|
||||
"gtcResourcePath",
|
||||
"privacyResourcePath",
|
||||
"impressResourcePath",
|
||||
false,
|
||||
(url) => string.Empty,
|
||||
() => null,
|
||||
(resourceUrls) => { });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using TINK.Model;
|
||||
using TINK.ViewModel.SelectBike;
|
||||
using TINK.ViewModel.Map;
|
||||
|
||||
namespace TestShareeLib.ViewModel.SelectBike
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSelectBikePageViewModel
|
||||
{
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeTypeCity() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState> { { "300103" /* Citybike */, TINK.Model.FilterState.On }, { "300101", TINK.Model.FilterState.Off } })),
|
||||
Is.EqualTo("City bike"));
|
||||
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeTypeCargo() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState> { { "300103" /* Citybike */, TINK.Model.FilterState.Off }, { "300101", TINK.Model.FilterState.On } })),
|
||||
Is.EqualTo("Cargo bike"));
|
||||
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeType() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState>())),
|
||||
Is.EqualTo(""));
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue