Unit Testing Rich Domain Model
问题 This was the anemic domain model: public partial class Person { public virtual int PersonId { get; internal protected set; } public virtual string Title { get; internal protected set; } public virtual string FirstName { get; internal protected set; } public virtual string MiddleName { get; internal protected set; } public virtual string LastName { get; internal protected set; } } And this is its behavior: public static class Services { public static void UpdatePerson(Person p, string