public void Test_UserUniqueEmailAddressValidator_Valid()
        {
            var value = "*****@*****.**";
            var validator = new UserUniqueNameValidator(new FakeUserService());
            var results = validator.Validate(new PropertyValidatorContext("test", value, "*****@*****.**", "value"));

            Assert.IsEmpty(results.ToList());
        }
        public void Test_UserUniqueEmailAddressValidator_NotValid()
        {
            var value = "*****@*****.**";
            var validator = new UserUniqueNameValidator(new FakeUserService());
            var results = validator.Validate(new PropertyValidatorContext("test", value, "*****@*****.**", "value"));

            foreach (var result in results)
            {
                Assert.AreEqual(Errors.UserNameTaken, result.ErrorMessage);
            }
        }