Beispiel #1
0
        public void GivenNonEmptyList_ShouldReturnMaskedList()
        {
            var algorithm  = new CharacterMasking <string>(p => p.Age);
            var anonymized = algorithm.GetAnonymizedData(new List <Person>());

            Assert.IsTrue(anonymized.All(p => p.Age == "*"));
        }
Beispiel #2
0
        public void GivenEmptyPeopleList_ShouldReturn_EmptyList()
        {
            var algorithm  = new CharacterMasking <string>(p => p.Age);
            var anonymized = algorithm.GetAnonymizedData(new List <Person>());

            Assert.IsTrue(!anonymized.Any());
        }