Пример #1
0
        public void ValidationTest()
        {
            UserCredits userCredits = new UserCredits();
            Assert.AreEqual("The Username field is required.", userCredits.Validate("UserName"));

            userCredits.UserName = "******";
            Assert.AreEqual("", userCredits.Validate("UserName"));
        }
Пример #2
0
 public Pop3Settings()
 {
     pop3UserCredits = new UserCredits();
     smtpUserCredits = new UserCredits();
     pop3UserCredits.Validate();
     smtpUserCredits.Validate();
 }
Пример #3
0
        public virtual UserCredits Clone()
        {
            var clone = new UserCredits()
            {
                userName = userName, password = password
            };

            clone.Validate();
            return(clone);
        }