public async Task ShouldDeleteUser() { var user = await _resource.CreateAsync( new UserCreateRequest("name") { Email = "*****@*****.**", Name = "Kung Fu Wizard" }); var user1 = await _resource.GetAsync(user.Id); Assert.Equal(JsonConvert.SerializeObject(user), JsonConvert.SerializeObject(user1)); await _resource.DeleteAsync(user.Id); var user2 = await _resource.GetAsync(user.Id); Assert.Null(user2); }
public async Task DeleteAsync_WhenCalled_ShouldDeleteUser() { await _resource.DeleteAsync(1); }