Esempio n. 1
0
        public async Task New_User_Could_Have_Claim_Picture()
        {
            var command = UserViewModelFaker.GenerateUserViewModel().Generate();
            var result  = await _userAppService.Register(command);

            result.Should().BeTrue();

            var userClaims = await _userManagerAppService.GetClaims(command.Username);

            userClaims.FirstOrDefault(f => f.Type == JwtClaimTypes.Picture).Should().NotBeNull();
        }
Esempio n. 2
0
        public async Task <ActionResult <IEnumerable <ClaimViewModel> > > Claims(string userName)
        {
            var clients = await _userManageAppService.GetClaims(userName);

            return(ResponseGet(clients));
        }