Tests fixed.

This commit is contained in:
Oliver Hauff 2021-11-08 23:11:56 +01:00
parent 4df8aa98aa
commit 8aa3089f32
15 changed files with 779 additions and 82 deletions

View file

@ -6,12 +6,12 @@ namespace TINK.Model.User.Account
public static class AccountExtensions
{
/// <summary> Gets information whether user is logged in or not from account object. </summary>
/// <param name="p_oAccount">Object to get information from.</param>
/// <param name="account">Object to get information from.</param>
/// <returns>True if user is logged in, false if not.</returns>
public static bool GetIsLoggedIn(this IAccount p_oAccount)
public static bool GetIsLoggedIn(this IAccount account)
{
return !string.IsNullOrEmpty(p_oAccount.Mail)
&& !string.IsNullOrEmpty(p_oAccount.SessionCookie);
return !string.IsNullOrEmpty(account.Mail)
&& !string.IsNullOrEmpty(account.SessionCookie);
}
/// <summary>

View file

@ -12,10 +12,6 @@ namespace TINK.Model.User.Account
/// </summary>
private Account m_oAccount;
/// <summary> Prevents an invalid instance to be created. </summary>
private AccountMutable()
{
}
public AccountMutable(IAccount p_oSource)
{