public Operator(string login, string password, string firstName, string lastName, MonetaryAmount competenceLevel)
 {
     Login           = login;
     Password        = password;
     FirstName       = firstName;
     LastName        = lastName;
     CompetenceLevel = competenceLevel;
 }
예제 #2
0
        public Property(MonetaryAmount value, Address address)
        {
            if (value == null)
            {
                throw new ArgumentException("Value cannot be null");
            }
            if (address == null)
            {
                throw new ArgumentException("Address cannot be null");
            }
            if (value <= MonetaryAmount.Zero)
            {
                throw new ArgumentException("Property value must be higher than 0");
            }

            Value   = value;
            Address = address;
        }
 public bool CanAccept(MonetaryAmount loanLoanAmount) => loanLoanAmount <= CompetenceLevel;