public void CanCompareSouls() { Soul instance = new Soul(); EntityIdSetter.SetIdOf<int>(instance, 1); Soul instanceToCompareTo = new Soul(); EntityIdSetter.SetIdOf<int>(instanceToCompareTo, 1); instance.ShouldEqual(instanceToCompareTo); }
public virtual void AddUser(Soul user) { users.Add(user); user.badges.Add(this); }
/// <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; }
public virtual void AddUser(Soul user) { users.Add(user); }