示例#1
0
        public void AddedUserShouldBeRetrievable()
        {
            var userMapper = new UserMapper();
            var guid       = userMapper.AddUser("user", "first", "last", new string[0]);
            var user       = userMapper.GetUserFromIdentifier(guid, null);

            user.UserName.Should().Be("user");
            user.Claims.Should().BeEmpty();
        }
示例#2
0
        public void AddUserShouldReturnGuid()
        {
            var userMapper = new UserMapper();

            userMapper.AddUser("user", "first", "last", new string[0]).Should().NotBeEmpty();
        }