Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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)
 {
 }
Exemple #5
0
 public ActOfService(ILegalProperty property) : base(property)
 {
 }
Exemple #6
0
 public Copyright(ILegalProperty property) : base(property)
 {
 }
Exemple #7
0
 public TangiblePersonalProperty(ILegalProperty property) : base(property)
 {
 }
Exemple #8
0
 public Trademark(ILegalProperty property) : base(property)
 {
 }
Exemple #9
0
 public UtilityPatent(ILegalProperty property) : base(property)
 {
 }
Exemple #10
0
 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)
 {
 }
Exemple #15
0
 public ThirdPartyRentTerm(string name, ILegalProperty reference) : base(name, reference)
 {
 }
Exemple #16
0
 public ThirdPartyRentTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories)
 {
 }
Exemple #17
0
 public Sabotage(string propertyName)
 {
     _govProperty = new GovernmentProperty(propertyName);
 }
Exemple #18
0
 public Patent(ILegalProperty property) : base(property)
 {
 }
Exemple #19
0
 public PersonalProperty(ILegalProperty property) : base(property)
 {
 }
Exemple #20
0
 public DesignPatent(ILegalProperty property) : base(property)
 {
 }
Exemple #21
0
 public ResNullius(ILegalProperty property) : base(property)
 {
 }
Exemple #22
0
 public ExpensesTerm(string name, ILegalProperty reference, params ITermCategory[] categories) : base(name, reference, categories)
 {
 }
Exemple #23
0
 public RealProperty(ILegalProperty property) : base(property)
 {
 }
Exemple #24
0
 public ResDerelictae(ILegalProperty property) : base(property)
 {
 }
Exemple #25
0
 public GovernmentProperty(ILegalProperty property) : base(property)
 {
 }