public PackageStub(BoilerId priBoiler, ContainerId?solarContainer, SolarPanelId?solar, int numberOfSolars, SolarStationId?solarStation) { var factory = new ApplianceFactory(); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetBoiler((priBoiler)), IsPrimary = true }); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(solarContainer ?? 0), IsSolarContainer = true }); for (int i = 0; i < numberOfSolars; i++) { ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetSolarPanel(solar ?? 0), IsUsedForRoomHeating = true }); } ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetSolarStation(solarStation ?? 0) }); }
public PackageStub(HeatpumpId?priPump, ContainerId?solarContain, BoilerId?secBoiler, SolarPanelId?solar, int?numberOfSolars, ContainerId?container, TempControlId?tempControl) { var factory = new ApplianceFactory(); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetHeatpump((priPump ?? 0)), IsPrimary = true }); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(solarContain ?? 0), IsSolarContainer = true }); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(container ?? 0) }); for (int i = 0; i < numberOfSolars; i++) { ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetSolarPanel(solar ?? 0), IsUsedForRoomHeating = true }); } ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetBoiler(secBoiler ?? 0) }); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetTempControl(tempControl ?? 0) }); }
public PackageStub(BoilerId primary, ContainerId?solarContainer, int numContainers, SolarPanelId?solar, int?numberOfSolars, TempControlId?tempControl) { var factory = new ApplianceFactory(); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetBoiler(primary), IsPrimary = true }); ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(solarContainer ?? 0), IsSolarContainer = true }); for (int i = 0; i < numberOfSolars; i++) { ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetSolarPanel(solar ?? 0), IsUsedForRoomHeating = true }); } ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetTempControl(tempControl ?? 0) }); for (int i = 0; i < numContainers; i++) { ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(solarContainer ?? 0), IsSolarContainer = true }); } for (int i = 0; i < numContainers - 1; i++) { ApplianceInstances.Add(new ApplianceInstance() { Appliance = factory.GetContainer(solarContainer ?? 0), IsSolarContainer = true }); } }