public Account(Customer customer, decimal balance, decimal interestRate, int month)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
     this.NumberOfMonths = numberOfMonths;
 }
        public void ConstructorTest()
        {
            var customer = new Customer("Zinedin Zidane", "+375445673606", 234527);

            Assert.AreEqual(customer.Name, "Zinedin Zidane");
            Assert.AreEqual(customer.Revenue, 234527);
            Assert.AreEqual(customer.ContactPhone, "+375445673606");
        }
예제 #3
0
        static void Main(string[] args)
        {
            Customer customer1 = new Customer();
            try
            {
                Console.WriteLine("Enter an e-mail: ");
                customer1.Email = Console.ReadLine();
                Console.WriteLine("Enter a password: "******"Enter a valid e-mail!");
            }
            catch (InvalidPassword)
            {
                Console.WriteLine("Enter a valid password!");
            }
            finally
            {
                Console.WriteLine("The end!");
            }
        }
 public Deposit(Customer customer, decimal balance, decimal interestRate,int depositPeriod)
     : base(customer, balance, interestRate, 0)
 {
     this.depositPeriod = depositPeriod;
 }
 public Account(Customer customer, decimal balance )
     : this(customer,  balance, 0, 0)
 {
 }
 public Loan(Customer customer, decimal balance, decimal interestRate, int loanPeriod)
     : base(customer, balance, interestRate, 0)
 {
     this.LoanPeriod = loanPeriod;
 }
 public string CustomerGlobalTest_WithStringFormat(string format)
 {
     var customer = new Customer("Zinedin Zidane", "+375445673606", 234527);
     string resultCustomer = string.Format(new FormatCustomer(), format, customer);
     return resultCustomer;
 }
 public Mortgage(Customer customer, decimal balance, decimal interestRate, int mortgagePeriod)
     : base(customer, balance, interestRate, 0)
 {
     this.MortgagePeriod = mortgagePeriod;
 }