public async Task UserManagementService_CheckIfUserDisabledAsync_UserIsDisabledSuccess(bool isTemp, string username, string name, string email, string phoneNumber, string password, int isDisabled, string userType, string salt) { // Arrange: Create a disabled user. // Arrange: Create user UserRecord user = new UserRecord(username, name, email, phoneNumber, password, Constants.DisabledStatus, Constants.CustomerUserType, salt, Constants.NoValueLong, Constants.NoValueString, Constants.NoValueLong, Constants.NoValueInt, Constants.NoValueLong, Constants.NoValueInt, Constants.NoValueInt); bool createResult = await _userManagementService.CreateUserAsync(isTemp, user).ConfigureAwait(false); Assert.IsTrue(createResult); // Act: Check that the disabled is disabled. bool result = await _userManagementService.CheckIfUserDisabledAsync(username).ConfigureAwait(false); Assert.IsTrue(result); // Cleanup: Delete that user. bool deleteResult = await _userManagementService.DeleteUserAsync(username).ConfigureAwait(false); Assert.IsTrue(deleteResult); }