Пример #1
0
        public Account BuildSavingAccount(IAccountBuilder builder)
        {
            builder.AddAccountNumber(654356);
            builder.WithSavingBalance();

            return(builder.GetAccount());
        }
Пример #2
0
        public Account BuildLoanAccount(IAccountBuilder builder)
        {
            builder.AddAccountNumber(123456);
            builder.WithLoanAmount(500000);
            builder.AddInterestRate(10.5);

            return(builder.GetAccount());
        }
Пример #3
0
 public ApplicationUser GetAccount()
 {
     return(_builder.GetAccount());
 }