Skip to content

Commit

Permalink
Updated service test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JKHeadley committed Apr 20, 2016
1 parent 9ac7531 commit ed3d318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ServiceTests/MyServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public void TestSomeServiceCalls()
{
using (var svc = new ServiceClient())
{
//NOTE: Running this test twice will result in a duplicate error since two users can't have the same Id. This error
//will be logged and can viewed in the LogEvent table as an error example.
UserDTO rootUser = new UserDTO { Username = "rootUser", Id = Guid.Parse("86f0f79c-3ae9-4393-a437-f691f408135f") };
svc.CreateUser(rootUser);
OrganizationDTO org = new OrganizationDTO { Name = "MyOrg" };
var createdOrg = svc.CreateOrganization(org);
createdOrg.Name = "BobsOrg";
Expand Down

0 comments on commit ed3d318

Please sign in to comment.