Esempio n. 1
0
        public void ShouldReturnEnergyChargesWhenUnitsConsumedForSlab4()
        {
            EnergyCharges       energycharges = new EnergyCharges();
            EnergyChargesBilled result        = energycharges.EnergyChargesCalculation(301);
            double actual   = result.TotalEnergyCharges;
            double expected = 1649.00;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public EnergyChargesBilled Calculation(int units)
        {
            EnergyCharges       energyCharges = new EnergyCharges();
            EnergyChargesBilled ecbilled      = new EnergyChargesBilled();

            ecbilled = energyCharges.EnergyChargesCalculation(units);

            return(ecbilled);
        }
Esempio n. 3
0
        public void ShouldReturnEnergyChargesWhenUnitsConsumedForSlab4()
        {
            EnergyCharges energycharges = new EnergyCharges();

            energycharges.Units = 301;
            double result   = energycharges.EnergyChargesCalculation();
            double expected = 1649.00;

            Assert.AreEqual(expected, result);
        }
Esempio n. 4
0
        public void ShouldReturnEnergyChargesWhenUnitsConsumedIsOneForSlab1()
        {
            EnergyCharges energycharges = new EnergyCharges();

            energycharges.Units = 1;
            double result   = energycharges.EnergyChargesCalculation();
            double expected = 4.05;

            Assert.AreEqual(expected, result);
        }
Esempio n. 5
0
        public EnergyChargesBilled Calculation(int units)
        {
            EnergyChargesBilled _eModel = energyCharges.EnergyChargesCalculation(units);

            return(_eModel);
        }