示例#1
0
        public void CanCompareSouls()
        {
            Soul instance = new Soul();
            EntityIdSetter.SetIdOf<int>(instance, 1);

            Soul instanceToCompareTo = new Soul();
            EntityIdSetter.SetIdOf<int>(instanceToCompareTo, 1);

            instance.ShouldEqual(instanceToCompareTo);
        }
示例#2
0
文件: Badge.cs 项目: sztupy/CodeChirp
 public virtual void AddUser(Soul user)
 {
     users.Add(user);
     user.badges.Add(this);
 }
示例#3
0
        /// <summary>
        /// Creates a valid, transient Soul; typical of something retrieved back from a form submission
        /// </summary>
        private Soul CreateTransientSoul()
        {
            Soul Soul = new Soul() {
                name = "An User",
                gravatar = "12345678901234567890123456789012",
                point = 0,
            };

            return Soul;
        }
示例#4
0
 public virtual void AddUser(Soul user)
 {
     users.Add(user);
 }