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