public LegalProperty(ILegalProperty property) { if (property == null) { return; } CopyNamesFrom(property); _isEntitledTo = property.IsEntitledTo ?? (lp => false); _isInPossessionOf = property.IsInPossessionOf ?? (lp => false); _propertyValue = property.CurrentPropertyValue; foreach (var msg in property.GetReasonEntries()) { _reasons.Add(msg); } }
public static bool PropertyOwnerIsInPossession(this IRationale lc, ILegalProperty SubjectProperty, ILegalPerson subj) { if (subj == null) { return(false); } var title = subj.GetLegalPersonTypeName(); if (SubjectProperty == null) { lc.AddReasonEntry($"{title} {subj.Name}, {nameof(SubjectProperty)} is unassigned"); return(false); } var hasPossession = SubjectProperty.IsInPossessionOf != null && SubjectProperty.IsInPossessionOf(subj); var isIsNot = hasPossession ? "is in possession" : "is not in possession"; lc.AddReasonEntry( $"{title} {subj.Name}, {isIsNot} " + $"of {SubjectProperty.GetType().Name} " + $"named '{SubjectProperty.Name}'"); return(hasPossession); }
public static bool PropertyOwnerIsSubjectPerson(this IRationale lc, ILegalProperty property, ILegalPerson person) { if (person == null) { return(false); } var title = person.GetLegalPersonTypeName(); if (property == null) { lc.AddReasonEntry($"{title} {person.Name}, {nameof(property)} is unassigned"); return(false); } var isOwner = property.IsEntitledTo != null && property.IsEntitledTo(person); var isIsNot = isOwner ? "is owner" : "is not owner"; lc.AddReasonEntry( $"{title} {person.Name}, {isIsNot} " + $"of {property.GetType().Name} " + $"named '{property.Name}'"); return(isOwner); }
public UndividedInterestTerm(string name, ILegalProperty reference) : base(name, reference) { }
public ActOfService(ILegalProperty property) : base(property) { }
public Copyright(ILegalProperty property) : base(property) { }
public TangiblePersonalProperty(ILegalProperty property) : base(property) { }
public Trademark(ILegalProperty property) : base(property) { }
public UtilityPatent(ILegalProperty property) : base(property) { }
public ExpensesTerm(string name, ILegalProperty reference) : base(name, reference) { }
public UndividedInterestTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories) { }
public IntellectualProperty(ILegalProperty property) : base(property) { }
public NoCotenantRentTerm(string name, ILegalProperty reference) : base(name, reference) { }
public NoCotenantRentTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories) { }
public ThirdPartyRentTerm(string name, ILegalProperty reference) : base(name, reference) { }
public ThirdPartyRentTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories) { }
public Sabotage(string propertyName) { _govProperty = new GovernmentProperty(propertyName); }
public Patent(ILegalProperty property) : base(property) { }
public PersonalProperty(ILegalProperty property) : base(property) { }
public DesignPatent(ILegalProperty property) : base(property) { }
public ResNullius(ILegalProperty property) : base(property) { }
public ExpensesTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories) { }
public RealProperty(ILegalProperty property) : base(property) { }
public ResDerelictae(ILegalProperty property) : base(property) { }
public GovernmentProperty(ILegalProperty property) : base(property) { }