Exemplo n.º 1
0
 double CalculateMoneySpent(Residents resident, TerritoryCleaning territoryCleaning)
 {
     return(resident.FlatArea * territoryCleaning.PriceForSquare);
 }
Exemplo n.º 2
0
 static bool CheckForAdultsAndKids(Residents resident, TerritoryCleaning territoryCleaning)
 {
     return(resident.AmountOfAdults == territoryCleaning.CleaningAmountOfAdults &&
            resident.AmountOfKids == territoryCleaning.CleaningAmountOfKids);
 }