Permalink
Browse files

Correcting concrete identities.

Kudos to Kerry C. Street for catching this.
  • Loading branch information...
1 parent a1a3292 commit 4b2cbf9b0df5f877562b60b301652634a87f0bc6 @abdullin abdullin committed Jul 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 SaaS.Contracts/ConcreteIdentity.cs
@@ -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;
}

0 comments on commit 4b2cbf9

Please sign in to comment.