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