public Household(int communityHouseCount, IEnumerable <Appliance> appliances, ITime clock) { _id = ++communityHouseCount; _appliances = new Appliances(clock); _usage = new PowerUsage(); foreach (var appliance in appliances) { _appliances.Add(appliance); } }
public void AddAppliance(Appliance appliance) { _appliances.Add(appliance); }