2021-07-12 21:31:46 +02:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model.User.Account;
|
2021-07-12 21:31:46 +02:00
|
|
|
|
|
|
|
|
|
namespace UITest.Fixtures.ObjectTests.User.Account
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestStore
|
|
|
|
|
{
|
|
|
|
|
[Test, Explicit("Did never ran, file load exception.")]
|
|
|
|
|
public void TestLoadSaveRoundtrip()
|
|
|
|
|
{
|
|
|
|
|
var l_oStore = new Store("4711");
|
2024-04-09 12:53:23 +02:00
|
|
|
|
l_oStore.Save(new ShareeBike.Model.User.Account.Account("a@b", "112", "3330", new List<string> { "Honkey", "Tonkey" }, 17));
|
2021-07-12 21:31:46 +02:00
|
|
|
|
var l_oAccount = l_oStore.Load();
|
|
|
|
|
Assert.AreEqual("a@b", l_oAccount.Mail);
|
|
|
|
|
Assert.AreEqual("112", l_oAccount.Pwd);
|
|
|
|
|
Assert.AreEqual("3330", l_oAccount.SessionCookie);
|
|
|
|
|
Assert.AreEqual("Honkey,Tonkey", String.Join(",", l_oAccount.Group));
|
|
|
|
|
Assert.AreEqual(17, l_oAccount.DebugLevel);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|