2021-07-12 21:31:46 +02:00
|
|
|
|
using NUnit.Framework;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.ViewModel.CopriWebView;
|
2021-07-12 21:31:46 +02:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace SharedBusinessLogic.Tests.ViewModel.CopriWebView
|
2021-07-12 21:31:46 +02:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestPasswordForgottonViewModel
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestUri()
|
|
|
|
|
=> Assert.That(
|
|
|
|
|
new PasswordForgottonViewModel("merch", "de", "host").Uri,
|
|
|
|
|
Is.EqualTo("https://host/app/Account?sessionid=merch&lang=de"));
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
|
|
|
|
public void TestUrl()
|
|
|
|
|
{
|
|
|
|
|
var viewModel = new PasswordForgottonViewModel("Merchant", null /* lang */, "Hosti");
|
2024-04-09 12:53:23 +02:00
|
|
|
|
Assert.That(viewModel.Uri, Is.EqualTo("https://Hosti/app/Account?sessionid=Merchant"));
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
2021-07-12 21:31:46 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
2024-04-09 12:53:23 +02:00
|
|
|
|
public void TestUrl_ShareeBikeLive()
|
2022-09-06 16:08:19 +02:00
|
|
|
|
{
|
|
|
|
|
var viewModel = new PasswordForgottonViewModel("Merchant", "us", "app.tink-konstanz.de");
|
2024-04-09 12:53:23 +02:00
|
|
|
|
Assert.That(viewModel.Uri, Is.EqualTo("https://app.tink-konstanz.de/app/Account?sessionid=Merchant&lang=us"));
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
2021-07-12 21:31:46 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
2024-04-09 12:53:23 +02:00
|
|
|
|
public void TestUrl_ShareeBike()
|
2022-09-06 16:08:19 +02:00
|
|
|
|
{
|
|
|
|
|
var viewModel = new PasswordForgottonViewModel("Merchant", "de", "tinkwwp.copri-bike.de");
|
2024-04-09 12:53:23 +02:00
|
|
|
|
Assert.That(viewModel.Uri, Is.EqualTo("https://tinkwwp.copri-bike.de/app/Account?sessionid=Merchant&lang=de"));
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-12 21:31:46 +02:00
|
|
|
|
}
|