Пример #1
0
 static double CalculateMoneySpent(Residents resident, TerritoryCleaning territoryCleaning)
 {
     return(resident.FlatArea * territoryCleaning.PriceForSquare);
 }
Пример #2
0
 static bool CheckForAdultsAndKids(Residents resident, TerritoryCleaning territoryCleaning)
 {
     return(resident.AmountOfAdults == territoryCleaning.CleaningAmountOfAdults &&
            resident.AmountOfKids == territoryCleaning.CleaningAmountOfKids);
 }