1.Has method:
A.HasRequired(a => a.B);
- HasOptional: The former contains an instance of the latter or is null
- HasRequired: The former (A) contains an instance of the latter (B) that is not null
- HasMany: The former contains a collection of instances of the latter
Two.With method:
A.HasRequired(a => a.B);
- WithOptional: The latter (B) can contain an instance of the former (A) or null
- WithRequired: The latter contains a non-null instance of the former
- WithMany: The latter contains a collection of instances of the former