mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 23:26:31 +01:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using NUnit.Framework;
|
|
using TINK.ViewModel.CopriWebView;
|
|
|
|
namespace TestShareeLib.ViewModel.CopriWebView
|
|
{
|
|
[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"));
|
|
|
|
[Test]
|
|
public void TestUrl()
|
|
{
|
|
var viewModel = new PasswordForgottonViewModel("Merchant", null /* lang */, "Hosti");
|
|
Assert.AreEqual("https://Hosti/app/Account?sessionid=Merchant", viewModel.Uri);
|
|
}
|
|
|
|
[Test]
|
|
public void TestUrl_TINKLive()
|
|
{
|
|
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);
|
|
}
|
|
|
|
[Test]
|
|
public void TestUrl_TINK()
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|