コード例 #1
0
        public void MaskMultipleNames()
        {
            var printer = new PrettyPrinter(new [] { "lastname", "PASSWORD", "email" });
            var result  = printer.Print(ForMasking.Build());

            result.Should().Be("UserId: user; Password: ****; Email: ****; FirstName: first; LastName: ****; AnotherEmailAddress: ****; MailAddress: mailing");
        }
コード例 #2
0
        public void MaskSingleVariableExactWordMatchDifferentCase()
        {
            var printer = new PrettyPrinter(new [] { "password" });
            var result  = printer.Print(ForMasking.Build());

            result.Should().Be("UserId: user; Password: ****; Email: email; FirstName: first; LastName: last; AnotherEmailAddress: another email; MailAddress: mailing");
        }
コード例 #3
0
        public void MaskMultiplePropertiesFromSingleName()
        {
            var printer = new PrettyPrinter(new [] { "email" });
            var result  = printer.Print(ForMasking.Build());

            result.Should().Be("UserId: user; Password: password; Email: ****; FirstName: first; LastName: last; AnotherEmailAddress: ****; MailAddress: mailing");
        }