Example #1
0
        public override MonthlyStatement GenerateStatement(MonthlyUsage usage)
        {
            var statement = new MonthlyStatement();

            statement.TotalCost = 54.90f;
            return(statement);
        }
        public override MonthlyStatement GenerateStatement(MonthlyUsage usage)
        {
            var statement = new MonthlyStatement();

            statement.CallCost  = 0.12f * usage.CallMinutes;
            statement.SmsCost   = 0.12f * usage.SmsCount;
            statement.TotalCost = statement.CallCost + statement.SmsCost;
            return(statement);
        }
Example #3
0
 public abstract MonthlyStatement GenerateStatement(MonthlyUsage usage);