public ProfileCollection(ProfileCollection other) { _accountName = other._accountName; _profiles = other.Profiles.Values.Select(p => new ProfileDomainObject(p)).ToDictionary(p => p.Name); ProfileRepository = other.ProfileRepository; EventAggregator = other.EventAggregator; }
public AccountDomainObject(AccountDomainObject other) { _accountName = other._accountName; _profileCollection = new ProfileCollection(other._profileCollection); }
public AccountDomainObject(AccountName accountName, ProfileCollection profileCollection) { _accountName = accountName; _profileCollection = profileCollection; }