Exemple #1
0
        public void Constructor_CreatesUserWithTempIdAndPseudonym()
        {
            var target = new PinVerifiedUser("pseudo-1");

            target.Id.Should().NotBeEmpty();
            target.Pseudonym.Should().Be("pseudo-1");
            target.NationalIdentifier.Should().Be(Option.None <string>());
        }
Exemple #2
0
        public void GetCustomClaims_ReturnsNationalIdAndPseudonym()
        {
            var target = new PinVerifiedUser("pseudo-id-1");

            var customClaims = target.GetCustomClaims().ToList();

            customClaims.Should().Contain(x => x.Type == InternalClaims.PinVerified && x.Value == "true");
            customClaims.Should().Contain(x => x.Type == InternalClaims.Pseudonym && x.Value == "pseudo-id-1");
        }
Exemple #3
0
        public void IsPinVerified_ShouldBeTrue()
        {
            var target = new PinVerifiedUser("pseudo-1");

            target.IsPinVerified.Should().BeTrue();
        }