Version 3.0.376

This commit is contained in:
Anja 2023-11-21 15:26:57 +01:00
parent ca080c87c0
commit f963c0a219
158 changed files with 3228 additions and 1279 deletions

View file

@ -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

View file

@ -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) => { });
}
}
}

View file

@ -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) => { });
}
}
}

View file

@ -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(""));
}
}