示例#1
0
        public void ShouldDeleteUsersAsync()
        {
            // Arrange
            ISystemApi systemApi = CreateSystemApi();

            // Act & Assert
            systemApi.DeleteUsersAsync(new SqlQuery(), 1);

            Should.Throw <ArgumentException>(() => systemApi.DeleteUsersAsync(new SqlQuery()));
        }
示例#2
0
        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);
        }
示例#3
0
 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);
 }