Example #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);
        }
Example #2
0
 public virtual void AddUser(Soul user)
 {
     users.Add(user);
     user.badges.Add(this);
 }
Example #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;
        }
Example #4
0
 public virtual void AddUser(Soul user)
 {
     users.Add(user);
 }