mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-21 20:46:28 +02:00
Tests fixed.
This commit is contained in:
parent
4df8aa98aa
commit
8aa3089f32
15 changed files with 779 additions and 82 deletions
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue