Esempio n. 1
0
        public IProcessingData ProcessGarbage(IWaste garbage)
        {
            var energy = (garbage.VolumePerKg * garbage.Weight) * 80 / 100;

            var data = new ProcessingData();

            data.IncreaseEnergyBalance(energy);

            return(data);
        }
Esempio n. 2
0
        public IProcessingData ProcessGarbage(IWaste garbage)
        {
            var energy  = -((garbage.VolumePerKg * garbage.Weight) * 13 / 100);
            var capital = -((garbage.VolumePerKg * garbage.Weight) * 65 / 100);

            var data = new ProcessingData();

            data.IncreaseEnergyBalance(energy);
            data.IncreaseCapitalBalance(capital);

            return(data);
        }