Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correcting concrete identities.

Kudos to Kerry C. Street for catching this.
  • Loading branch information...
commit 4b2cbf9b0df5f877562b60b301652634a87f0bc6 1 parent a1a3292
Rinat Abdullin abdullin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 SaaS.Contracts/ConcreteIdentity.cs
6 SaaS.Contracts/ConcreteIdentity.cs
View
@@ -57,7 +57,7 @@ public sealed class UserId : AbstractIdentity<long>
public UserId(long id)
{
if (id <= 0)
- throw new InvalidOperationException("Tried to assemble non-existent login");
+ throw new InvalidOperationException("Tried to assemble non-existent user");
Id = id;
}
@@ -102,12 +102,12 @@ public override string ToString()
[DataContract(Namespace = "Sample")]
public sealed class CustomerId : AbstractIdentity<long>
{
- public const string TagValue = "user";
+ public const string TagValue = "customer";
public CustomerId(long id)
{
if (id <= 0)
- throw new InvalidOperationException("Tried to assemble non-existent login");
+ throw new InvalidOperationException("Tried to assemble non-existent customer");
Id = id;
}
Please sign in to comment.
Something went wrong with that request. Please try again.