public void ShouldCreateUser()
        {
            var username  = CreateUserId();
            var succeeded = _service.CreateUser(username, Password);

            succeeded.Should().BeTrue();
        }
Example #2
0
        public void CreateUser(Guid userId, string password)
        {
            _logger.Debug("Calling AuthenticationService to create a new user with Id={0}", userId);
            var succeeded = _userDirectoryProvider.CreateUser(userId.ToString(), password);

            CheckAndThrowFailureError(succeeded, "User creation failed", ErrorCodes.UserCreationError);
        }