public void UnlimitedCustomer_IsChargedAFlatRatePerMonth()
        {
            var customer = new UnlimitedCustomer();
            var usage    = new MonthlyUsage {
                CallMinutes = 100, SmsCount = 100
            };
            var statement = customer.GenerateStatement(usage);

            Assert.AreEqual(0, statement.CallCost);
            Assert.AreEqual(0, statement.SMSCost);
            Assert.AreEqual(54.90f, statement.TotalCost);
        }
Example #2
0
        static void ShorUnlimitedCustomer()
        {
            var unlimitedCustomer = new UnlimitedCustomer();
            var usage             = new MonthlyUsage {
                CallMinutes = 100, SmsCount = 100
            };
            var statement = unlimitedCustomer.GenerateStatement(usage);

            var mcc = statement.CallCost;
            var msc = statement.SMSCost;
            var mtc = statement.TotalCost;

            Console.WriteLine($"CustomerType=PayAsYouGo: mvc={mcc}, msc={msc}, mtc={mtc}");
        }