Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public async Task DeleteAsync_WhenCalled_ShouldDeleteUser()
 {
     await _resource.DeleteAsync(1);
 }