Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public void AddAppliance(Appliance appliance)
 {
     _appliances.Add(appliance);
 }