public void GetClaims_ShouldReturnListOfClaimsWithAdministoratorClaimWhenUserIsAdministrator() { //arrange var userModel = UserModelHelper.GetAdministratorUser(); var appSettings = Options.Create(new AppSettings()); var tokenManager = new TokenManager(appSettings); //act var result = tokenManager.GetClaims(userModel); //assert Assert.True(Convert.ToBoolean(result.ToList().FirstOrDefault(i => i.Type == AutoRenterClaimNames.IsAdministrator).Value)); }