public async Task GetAsync_WhenCalled_ShouldGetUser() { var org = await _resource.GetAsync(1); Assert.Equal("name.1", org.Name); Assert.Equal("1", org.ExternalId); }
public async Task ShouldGetUser() { var user = await _resource.CreateAsync( new UserCreateRequest("name") { Email = "*****@*****.**" }); var user2 = await _resource.GetAsync(user.Id); Assert.Equal(JsonConvert.SerializeObject(user), JsonConvert.SerializeObject(user2)); }