Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Last active August 29, 2015 14:01

Revisions

  1. wayne-o revised this gist May 25, 2014. 1 changed file with 15 additions and 14 deletions.
    29 changes: 15 additions & 14 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,18 @@
    [Test]
    public async void CanGetAccount()
    {
    var user = await Client.PostAsync(new PostUserAccountRequest
    {
    Name = UserName,
    Slug = UserName,
    Username = UserName,
    ThirdPartyUsername = UserName
    });
    {
    var user = await Client.PostAsync(new PostUserAccountRequest
    {
    Name = UserName,
    Slug = UserName,
    Username = UserName,
    ThirdPartyUsername = UserName
    });

    var response = await Client.GetAsync(new GetUserAccountRequest
    {
    Id = user.Results[0].Id
    });
    var response = await Client.GetAsync(new GetUserAccountRequest
    {
    Id = user.Results[0].Id
    });

    response.Results[0].Id.Should().NotBeNull();
    }
    response.Results[0].Id.Should().NotBeNull();
    }
  2. wayne-o created this gist May 25, 2014.
    17 changes: 17 additions & 0 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    public async void CanGetAccount()
    {
    var user = await Client.PostAsync(new PostUserAccountRequest
    {
    Name = UserName,
    Slug = UserName,
    Username = UserName,
    ThirdPartyUsername = UserName
    });

    var response = await Client.GetAsync(new GetUserAccountRequest
    {
    Id = user.Results[0].Id
    });

    response.Results[0].Id.Should().NotBeNull();
    }