public void ShouldDeleteUsersAsync() { // Arrange ISystemApi systemApi = CreateSystemApi(); // Act & Assert systemApi.DeleteUsersAsync(new SqlQuery(), 1); Should.Throw <ArgumentException>(() => systemApi.DeleteUsersAsync(new SqlQuery())); }
private static async Task DeleteUser(UserResponse user, ISystemApi systemApi) { Debug.Assert(user.id.HasValue, "User ID must be set"); await systemApi.DeleteUsersAsync(user.id.Value); Console.WriteLine("DeleteUsersAsync():: id={0}", user.id); }