Exemplo n.º 1
0
 protected CommonProfile(string nickname, string email, int age, int level, string sign, ProfileGender gender)
 {
     Nickname = nickname;
     Email    = email;
     Age      = age;
     Level    = level;
     Sign     = sign;
     Gender   = gender;
 }
Exemplo n.º 2
0
 private void initializeTestData()
 {
     id           = GetRandom.String();
     name         = GetRandom.String();
     location     = GetRandom.String();
     gender       = ProfileGender.Female;
     birthDay     = GetRandom.DateTime();
     aboutText    = GetRandom.String();
     occupation   = GetRandom.String();
     profileImage = GetRandom.String();
 }
Exemplo n.º 3
0
 private void validateResults(string i        = Constants.Unspecified,
                              string n        = Constants.Unspecified, string l  = Constants.Unspecified,
                              ProfileGender g = ProfileGender.Female, DateTime?b = null,
                              string oc       = Constants.Unspecified, string a  = Constants.Unspecified,
                              string p        = Constants.Unspecified)
 {
     Assert.AreEqual(i, o.DbRecord.ID);
     Assert.AreEqual(n, o.DbRecord.Name);
     Assert.AreEqual(l, o.DbRecord.Location);
     Assert.AreEqual(g, o.DbRecord.Gender);
     Assert.AreEqual(b, o.DbRecord.BirthDay);
     Assert.AreEqual(oc, o.DbRecord.Occupation);
     Assert.AreEqual(a, o.DbRecord.AboutText);
     Assert.AreEqual(p, o.DbRecord.ProfileImage);
 }
Exemplo n.º 4
0
        public static ProfileObject Create(string id, string name, string location,
                                           ProfileGender gender, DateTime birthDay, string occupation, string aboutText, string profileImage)
        {
            var o = new ProfileDbRecord
            {
                ID           = id,
                Name         = name,
                Location     = location,
                Gender       = gender,
                BirthDay     = birthDay,
                AboutText    = aboutText,
                Occupation   = occupation,
                ProfileImage = profileImage
            };

            return(new ProfileObject(o));
        }