Thx for sharing.
Jonas, I think that the StoreDefaultAccount method, the way you wrote it, will always fail with an InvalidOperationException since every account's owner ID never equals the account ID.
The test should be :
if (account.OwnerId != userId)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thx for sharing.
Jonas, I think that the StoreDefaultAccount method, the way you wrote it, will always fail with an InvalidOperationException since every account's owner ID never equals the account ID.
The test should be :
if (account.OwnerId != userId)