public static Account CreateAccount(string accountHolder, double interestRate, InterestTypes interestType = InterestTypes.None)
        {
            var result = new Account();

            var metadata = new AccountMetadata();
            metadata.accountNumber = Guid.NewGuid().ToString();
            metadata.accountHolder = accountHolder;
            metadata.interestRate = interestRate;
            metadata.interestType = interestType;

            result.metadata = metadata;

            return result;
        }
Exemple #2
0
        public static Account CreateAccount(string accountHolder, double interestRate, InterestTypes interestType = InterestTypes.None)
        {
            var result = new Account();

            var metadata = new AccountMetadata();

            metadata.accountNumber = Guid.NewGuid().ToString();
            metadata.accountHolder = accountHolder;
            metadata.interestRate  = interestRate;
            metadata.interestType  = interestType;

            result.metadata = metadata;

            return(result);
        }