sharee.bike-App/SharedBusinessLogic.Tests/ViewModel/CopriWebView/TestPasswordForgottonViewModel.cs
2024-04-09 12:53:23 +02:00

36 lines
1.1 KiB
C#

using NUnit.Framework;
using ShareeBike.ViewModel.CopriWebView;
namespace SharedBusinessLogic.Tests.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.That(viewModel.Uri, Is.EqualTo("https://Hosti/app/Account?sessionid=Merchant"));
}
[Test]
public void TestUrl_ShareeBikeLive()
{
var viewModel = new PasswordForgottonViewModel("Merchant", "us", "app.tink-konstanz.de");
Assert.That(viewModel.Uri, Is.EqualTo("https://app.tink-konstanz.de/app/Account?sessionid=Merchant&lang=us"));
}
[Test]
public void TestUrl_ShareeBike()
{
var viewModel = new PasswordForgottonViewModel("Merchant", "de", "tinkwwp.copri-bike.de");
Assert.That(viewModel.Uri, Is.EqualTo("https://tinkwwp.copri-bike.de/app/Account?sessionid=Merchant&lang=de"));
}
}
}