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